Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: cc/proto/property_tree.proto

Issue 1675963002: Move MaxScrollOffset to property_trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove comment. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "rectf.proto"; 7 import "rectf.proto";
8 import "scroll_offset.proto"; 8 import "scroll_offset.proto";
9 import "size.proto";
9 import "transform.proto"; 10 import "transform.proto";
10 import "vector2df.proto"; 11 import "vector2df.proto";
11 12
12 option optimize_for = LITE_RUNTIME; 13 option optimize_for = LITE_RUNTIME;
13 14
14 package cc.proto; 15 package cc.proto;
15 16
16 // The messages declared in this file correspond to the classes declared in 17 // The messages declared in this file correspond to the classes declared in
17 // cc/trees/property_tree.h 18 // cc/trees/property_tree.h
18 19
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 optional bool has_render_surface = 3; 85 optional bool has_render_surface = 3;
85 optional bool has_copy_request = 4; 86 optional bool has_copy_request = 4;
86 optional bool has_background_filters = 5; 87 optional bool has_background_filters = 5;
87 optional bool is_drawn = 6; 88 optional bool is_drawn = 6;
88 optional bool has_animated_opacity = 7; 89 optional bool has_animated_opacity = 7;
89 optional int64 num_copy_requests_in_subtree = 8; 90 optional int64 num_copy_requests_in_subtree = 8;
90 optional int64 transform_id = 9; 91 optional int64 transform_id = 9;
91 optional int64 clip_id = 10; 92 optional int64 clip_id = 10;
92 } 93 }
93 94
95 // Proto for struct ScrollNodeData
94 message ScrollNodeData { 96 message ScrollNodeData {
95 optional bool scrollable = 1; 97 optional bool scrollable = 1;
96 optional int32 main_thread_scrolling_reasons = 2; 98 optional int32 main_thread_scrolling_reasons = 2;
97 optional bool contains_non_fast_scrollable_region = 3; 99 optional bool contains_non_fast_scrollable_region = 3;
98 optional int64 transform_id = 4; 100 optional Size scroll_clip_layer_bounds = 4;
101 optional Size bounds = 5;
102 optional bool max_scroll_offset_affected_by_page_scale = 6;
103 optional bool is_inner_viewport_scroll_layer = 7;
104 optional bool is_outer_viewport_scroll_layer = 8;
99 } 105 }
100 106
101 // This defines the proto used for all types of struct TreeNode. 107 // This defines the proto used for all types of struct TreeNode.
102 message TreeNode { 108 message TreeNode {
103 // The following fields are the base TreeNode properties. This list 109 // The following fields are the base TreeNode properties. This list
104 // corresponds to the data members from struct TreeNode. 110 // corresponds to the data members from struct TreeNode.
105 optional int64 id = 1; 111 optional int64 id = 1;
106 optional int64 parent_id = 2; 112 optional int64 parent_id = 2;
107 optional int64 owner_id = 3; 113 optional int64 owner_id = 3;
108 114
(...skipping 27 matching lines...) Expand all
136 // of this property tree. 142 // of this property tree.
137 optional TransformTreeData transform_tree_data = 1000; 143 optional TransformTreeData transform_tree_data = 1000;
138 } 144 }
139 145
140 // Proto for data members of class TransformTree. 146 // Proto for data members of class TransformTree.
141 message TransformTreeData { 147 message TransformTreeData {
142 optional bool source_to_parent_updates_allowed = 1; 148 optional bool source_to_parent_updates_allowed = 1;
143 optional float page_scale_factor = 2; 149 optional float page_scale_factor = 2;
144 optional float device_scale_factor = 3; 150 optional float device_scale_factor = 3;
145 optional float device_transform_scale_factor = 4; 151 optional float device_transform_scale_factor = 4;
146 optional Vector2dF inner_viewport_bounds_delta = 5;
147 optional Vector2dF outer_viewport_bounds_delta = 6;
148 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7 152 repeated int64 nodes_affected_by_inner_viewport_bounds_delta = 7
149 [packed = true]; 153 [packed = true];
150 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8 154 repeated int64 nodes_affected_by_outer_viewport_bounds_delta = 8
151 [packed = true]; 155 [packed = true];
152 } 156 }
153 157
154 // Proto for class PropertyTrees. 158 // Proto for class PropertyTrees.
159 // NEXT ID: 11
155 message PropertyTrees { 160 message PropertyTrees {
156 optional PropertyTree transform_tree = 1; 161 optional PropertyTree transform_tree = 1;
157 optional PropertyTree effect_tree = 2; 162 optional PropertyTree effect_tree = 2;
158 optional PropertyTree clip_tree = 3; 163 optional PropertyTree clip_tree = 3;
159 optional PropertyTree scroll_tree = 7; 164 optional PropertyTree scroll_tree = 7;
160 165
161 optional bool needs_rebuild = 4; 166 optional bool needs_rebuild = 4;
162 optional bool non_root_surfaces_enabled = 5; 167 optional bool non_root_surfaces_enabled = 5;
163 optional int64 sequence_number = 6; 168 optional int64 sequence_number = 6;
169
170 optional Vector2dF inner_viewport_container_bounds_delta = 8;
171 optional Vector2dF outer_viewport_container_bounds_delta = 9;
172 optional Vector2dF inner_viewport_scroll_bounds_delta = 10;
164 } 173 }
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698