| 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: 54 | 70 // NEXT ID: 55 |
| 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 hide_layer_and_subtree = 10; | 83 optional bool hide_layer_and_subtree = 10; |
| 84 optional bool subtree_property_changed = 47; | 84 optional bool subtree_property_changed = 47; |
| 85 optional bool layer_property_changed = 54; |
| 85 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | 86 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
| 86 // repeated FilterOperation filters = 12; | 87 // repeated FilterOperation filters = 12; |
| 87 // repeated FilterOperation background_filters = 13; | 88 // repeated FilterOperation background_filters = 13; |
| 88 optional bool masks_to_bounds = 14; | 89 optional bool masks_to_bounds = 14; |
| 89 optional uint32 main_thread_scrolling_reasons = 15; | 90 optional uint32 main_thread_scrolling_reasons = 15; |
| 90 optional bool have_scroll_event_handlers = 17; | 91 optional bool have_scroll_event_handlers = 17; |
| 91 optional Region non_fast_scrollable_region = 18; | 92 optional Region non_fast_scrollable_region = 18; |
| 92 optional Region touch_event_handler_region = 19; | 93 optional Region touch_event_handler_region = 19; |
| 93 optional bool contents_opaque = 21; | 94 optional bool contents_opaque = 21; |
| 94 optional float opacity = 22; | 95 optional float opacity = 22; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 HORIZONTAL = 0; | 144 HORIZONTAL = 0; |
| 144 VERTICAL = 1; | 145 VERTICAL = 1; |
| 145 }; | 146 }; |
| 146 | 147 |
| 147 optional int32 scroll_layer_id = 1; | 148 optional int32 scroll_layer_id = 1; |
| 148 optional int32 thumb_thickness = 2; | 149 optional int32 thumb_thickness = 2; |
| 149 optional int32 track_start = 3; | 150 optional int32 track_start = 3; |
| 150 optional bool is_left_side_vertical_scrollbar = 4; | 151 optional bool is_left_side_vertical_scrollbar = 4; |
| 151 optional ScrollbarOrientation orientation = 5; | 152 optional ScrollbarOrientation orientation = 5; |
| 152 } | 153 } |
| OLD | NEW |