OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
| 7 import "element_id.proto"; |
7 import "rectf.proto"; | 8 import "rectf.proto"; |
8 import "scroll_offset.proto"; | 9 import "scroll_offset.proto"; |
9 import "size.proto"; | 10 import "size.proto"; |
10 import "synced_property.proto"; | 11 import "synced_property.proto"; |
11 import "transform.proto"; | 12 import "transform.proto"; |
12 import "vector2df.proto"; | 13 import "vector2df.proto"; |
13 | 14 |
14 option optimize_for = LITE_RUNTIME; | 15 option optimize_for = LITE_RUNTIME; |
15 | 16 |
16 package cc.proto; | 17 package cc.proto; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 optional bool has_potential_opacity_animation = 7; | 100 optional bool has_potential_opacity_animation = 7; |
100 optional bool is_currently_animating_opacity = 16; | 101 optional bool is_currently_animating_opacity = 16; |
101 optional bool effect_changed = 11; | 102 optional bool effect_changed = 11; |
102 optional int64 num_copy_requests_in_subtree = 8; | 103 optional int64 num_copy_requests_in_subtree = 8; |
103 optional int64 transform_id = 9; | 104 optional int64 transform_id = 9; |
104 optional int64 clip_id = 10; | 105 optional int64 clip_id = 10; |
105 optional int64 target_id = 12; | 106 optional int64 target_id = 12; |
106 } | 107 } |
107 | 108 |
108 // Proto for struct ScrollNodeData | 109 // Proto for struct ScrollNodeData |
109 // NEXT ID: 15 | 110 // NEXT ID: 16 |
110 message ScrollNodeData { | 111 message ScrollNodeData { |
111 optional bool scrollable = 1; | 112 optional bool scrollable = 1; |
112 optional int32 main_thread_scrolling_reasons = 2; | 113 optional int32 main_thread_scrolling_reasons = 2; |
113 optional bool contains_non_fast_scrollable_region = 3; | 114 optional bool contains_non_fast_scrollable_region = 3; |
114 optional Size scroll_clip_layer_bounds = 4; | 115 optional Size scroll_clip_layer_bounds = 4; |
115 optional Size bounds = 5; | 116 optional Size bounds = 5; |
116 optional bool max_scroll_offset_affected_by_page_scale = 6; | 117 optional bool max_scroll_offset_affected_by_page_scale = 6; |
117 optional bool is_inner_viewport_scroll_layer = 7; | 118 optional bool is_inner_viewport_scroll_layer = 7; |
118 optional bool is_outer_viewport_scroll_layer = 8; | 119 optional bool is_outer_viewport_scroll_layer = 8; |
119 optional Vector2dF offset_to_transform_parent = 9; | 120 optional Vector2dF offset_to_transform_parent = 9; |
120 optional bool should_flatten = 10; | 121 optional bool should_flatten = 10; |
121 optional bool user_scrollable_horizontal = 13; | 122 optional bool user_scrollable_horizontal = 13; |
122 optional bool user_scrollable_vertical = 14; | 123 optional bool user_scrollable_vertical = 14; |
123 optional int64 element_id = 12; | 124 optional ElementId element_id = 15; |
124 optional int64 transform_id = 11; | 125 optional int64 transform_id = 11; |
125 } | 126 } |
126 | 127 |
127 // This defines the proto used for all types of struct TreeNode. | 128 // This defines the proto used for all types of struct TreeNode. |
128 message TreeNode { | 129 message TreeNode { |
129 // The following fields are the base TreeNode properties. This list | 130 // The following fields are the base TreeNode properties. This list |
130 // corresponds to the data members from struct TreeNode. | 131 // corresponds to the data members from struct TreeNode. |
131 optional int64 id = 1; | 132 optional int64 id = 1; |
132 optional int64 parent_id = 2; | 133 optional int64 parent_id = 2; |
133 optional int64 owner_id = 3; | 134 optional int64 owner_id = 3; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 optional bool full_tree_damaged = 12; | 202 optional bool full_tree_damaged = 12; |
202 optional int64 sequence_number = 6; | 203 optional int64 sequence_number = 6; |
203 optional bool is_main_thread = 13; | 204 optional bool is_main_thread = 13; |
204 optional bool is_active = 14; | 205 optional bool is_active = 14; |
205 | 206 |
206 optional Vector2dF inner_viewport_container_bounds_delta = 8; | 207 optional Vector2dF inner_viewport_container_bounds_delta = 8; |
207 optional Vector2dF outer_viewport_container_bounds_delta = 9; | 208 optional Vector2dF outer_viewport_container_bounds_delta = 9; |
208 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; | 209 optional Vector2dF inner_viewport_scroll_bounds_delta = 10; |
209 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; | 210 repeated int64 always_use_active_tree_opacity_effect_ids = 15 [packed = true]; |
210 } | 211 } |
OLD | NEW |