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 "layer_position_constraint.proto"; | 7 import "layer_position_constraint.proto"; |
8 import "point3f.proto"; | 8 import "point3f.proto"; |
9 import "pointf.proto"; | 9 import "pointf.proto"; |
10 import "recording_source.proto"; | 10 import "recording_source.proto"; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // for their specific properties. | 60 // for their specific properties. |
61 optional BaseLayerProperties base = 5; | 61 optional BaseLayerProperties base = 5; |
62 | 62 |
63 // Only one of these fields may be set per LayerProperties. | 63 // Only one of these fields may be set per LayerProperties. |
64 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See | 64 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
65 // crbug.com/570371. | 65 // crbug.com/570371. |
66 optional PictureLayerProperties picture = 6; | 66 optional PictureLayerProperties picture = 6; |
67 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7; | 67 optional SolidColorScrollbarLayerProperties solid_scrollbar = 7; |
68 } | 68 } |
69 | 69 |
70 // NEXT ID: 55 | 70 // NEXT ID: 56 |
71 message BaseLayerProperties { | 71 message BaseLayerProperties { |
72 optional Point3F transform_origin = 1; | 72 optional Point3F transform_origin = 1; |
73 optional uint32 background_color = 2; | 73 optional uint32 background_color = 2; |
74 optional uint32 safe_opaque_background_color = 53; | 74 optional uint32 safe_opaque_background_color = 53; |
75 optional Size bounds = 3; | 75 optional Size bounds = 3; |
76 optional int64 transform_free_index = 4; | 76 optional int64 transform_free_index = 4; |
77 optional int64 effect_tree_index = 5; | 77 optional int64 effect_tree_index = 5; |
78 optional int64 clip_tree_index = 6; | 78 optional int64 clip_tree_index = 6; |
79 optional int64 scroll_tree_index = 50; | 79 optional int64 scroll_tree_index = 50; |
80 optional Vector2dF offset_to_transform_parent = 7; | 80 optional Vector2dF offset_to_transform_parent = 7; |
81 optional bool double_sided = 8; | 81 optional bool double_sided = 8; |
82 optional bool draws_content = 9; | 82 optional bool draws_content = 9; |
| 83 optional bool may_contain_video = 55; |
83 optional bool hide_layer_and_subtree = 10; | 84 optional bool hide_layer_and_subtree = 10; |
84 optional bool subtree_property_changed = 47; | 85 optional bool subtree_property_changed = 47; |
85 optional bool layer_property_changed = 54; | 86 optional bool layer_property_changed = 54; |
86 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | 87 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
87 // repeated FilterOperation filters = 12; | 88 // repeated FilterOperation filters = 12; |
88 // repeated FilterOperation background_filters = 13; | 89 // repeated FilterOperation background_filters = 13; |
89 optional bool masks_to_bounds = 14; | 90 optional bool masks_to_bounds = 14; |
90 optional uint32 main_thread_scrolling_reasons = 15; | 91 optional uint32 main_thread_scrolling_reasons = 15; |
91 optional bool have_scroll_event_handlers = 17; | 92 optional bool have_scroll_event_handlers = 17; |
92 optional Region non_fast_scrollable_region = 18; | 93 optional Region non_fast_scrollable_region = 18; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 HORIZONTAL = 0; | 145 HORIZONTAL = 0; |
145 VERTICAL = 1; | 146 VERTICAL = 1; |
146 }; | 147 }; |
147 | 148 |
148 optional int32 scroll_layer_id = 1; | 149 optional int32 scroll_layer_id = 1; |
149 optional int32 thumb_thickness = 2; | 150 optional int32 thumb_thickness = 2; |
150 optional int32 track_start = 3; | 151 optional int32 track_start = 3; |
151 optional bool is_left_side_vertical_scrollbar = 4; | 152 optional bool is_left_side_vertical_scrollbar = 4; |
152 optional ScrollbarOrientation orientation = 5; | 153 optional ScrollbarOrientation orientation = 5; |
153 } | 154 } |
OLD | NEW |