blob: 98574dd17280c09b6d3ecaecac3ab30cb7be2c7d [file] [log] [blame]
Sunny Goyal25972b12022-07-06 15:39:50 -07001/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package com.android.launcher3.view;
20
21option java_outer_classname = "ViewCaptureData";
22
23message ExportedData {
24
25 repeated FrameData frameData = 1;
26}
27
28message FrameData {
29 optional int64 timestamp = 1;
30 optional ViewNode node = 2;
31}
32
33message ViewNode {
34 optional string classname = 1;
35 optional string id = 2;
36 optional int32 left = 3;
37 optional int32 top = 4;
38 optional int32 width = 5;
39 optional int32 height = 6;
40 optional int32 scrollX = 7;
41 optional int32 scrollY = 8;
42
43 optional float translationX = 9;
44 optional float translationY = 10;
45 optional float scaleX = 11 [default = 1];
46 optional float scaleY = 12 [default = 1];
47 optional float alpha = 13 [default = 1];
48
49 optional bool willNotDraw = 14;
50 optional bool clipChildren = 15;
51 optional int32 visibility = 16;
52
53 repeated ViewNode children = 17;
54}