/*
 * Copyright (C) 2024 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

import "protos/perfetto/trace/android/graphics/rect.proto";
import "protos/perfetto/trace/android/graphics/corner_radii.proto";
import "protos/perfetto/trace/android/view/displaycutout.proto";
import "protos/perfetto/trace/android/view/windowlayoutparams.proto";

package perfetto.protos;

// Represents a {@link android.view.ViewRootImpl} object
message ViewRootImplProto {
  optional string view = 1;
  optional int32 display_id = 2;
  optional bool app_visible = 3;
  optional int32 width = 4;
  optional int32 height = 5;
  optional bool is_animating = 6;
  optional RectProto visible_rect = 7;
  optional bool is_drawing = 8;
  optional bool added = 9;
  optional RectProto win_frame = 10;
  optional DisplayCutoutProto pending_display_cutout = 11 [deprecated = true];
  optional string last_window_insets = 12;
  optional string soft_input_mode = 13;
  optional int32 scroll_y = 14;
  optional int32 cur_scroll_y = 15;
  optional bool removed = 16;
  optional WindowLayoutParamsProto window_attributes = 17;
  optional CornerRadiiProto corner_radii = 18;
  optional RectProto last_set_client_drawn_radii_bounds = 19;
}