| 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 "display_item.proto"; | 7 import "display_item.proto"; |
| 8 import "layer_position_constraint.proto"; | 8 import "layer_position_constraint.proto"; |
| 9 import "layer_sticky_position_constraint.proto"; | 9 import "layer_sticky_position_constraint.proto"; |
| 10 import "point3f.proto"; | 10 import "point3f.proto"; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // The Layer base class and each descendant have different proto messages | 66 // The Layer base class and each descendant have different proto messages |
| 67 // for their specific properties. | 67 // for their specific properties. |
| 68 optional BaseLayerProperties base = 5; | 68 optional BaseLayerProperties base = 5; |
| 69 | 69 |
| 70 // Only one of these fields may be set per LayerProperties. | 70 // Only one of these fields may be set per LayerProperties. |
| 71 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See | 71 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
| 72 // crbug.com/570371. | 72 // crbug.com/570371. |
| 73 optional PictureLayerProperties picture = 6; | 73 optional PictureLayerProperties picture = 6; |
| 74 } | 74 } |
| 75 | 75 |
| 76 // NEXT ID: 59 | 76 // NEXT ID: 61 |
| 77 message BaseLayerProperties { | 77 message BaseLayerProperties { |
| 78 // The following fields mirror the data stored in Layer::Inputs ---------- | 78 // The following fields mirror the data stored in Layer::Inputs ---------- |
| 79 optional Rect update_rect = 46; | 79 optional Rect update_rect = 46; |
| 80 optional Size bounds = 3; | 80 optional Size bounds = 3; |
| 81 optional bool masks_to_bounds = 14; | 81 optional bool masks_to_bounds = 14; |
| 82 optional float opacity = 22; | 82 optional float opacity = 22; |
| 83 optional SkXfermode.Mode blend_mode = 23; | 83 optional SkXfermode.Mode blend_mode = 23; |
| 84 optional bool is_root_for_isolated_group = 24; | 84 optional bool is_root_for_isolated_group = 24; |
| 85 optional bool contents_opaque = 21; | 85 optional bool contents_opaque = 21; |
| 86 optional PointF position = 25; | 86 optional PointF position = 25; |
| 87 optional Transform transform = 33; | 87 optional Transform transform = 33; |
| 88 optional Point3F transform_origin = 1; | 88 optional Point3F transform_origin = 1; |
| 89 optional bool is_drawable = 56; | 89 optional bool is_drawable = 56; |
| 90 optional bool double_sided = 8; | 90 optional bool double_sided = 8; |
| 91 optional bool should_flatten_transform = 28; | 91 optional bool should_flatten_transform = 28; |
| 92 optional int32 sorting_context_id = 35; | 92 optional int32 sorting_context_id = 35; |
| 93 optional bool use_parent_backface_visibility = 32; | 93 optional bool use_parent_backface_visibility = 32; |
| 94 optional uint32 background_color = 2; | 94 optional uint32 background_color = 2; |
| 95 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. | 95 // TODO(nyquist): Add support for FilterOperation. See crbug.com/541321. |
| 96 // repeated FilterOperation filters = 12; | 96 // repeated FilterOperation filters = 12; |
| 97 // repeated FilterOperation background_filters = 13; | 97 // repeated FilterOperation background_filters = 13; |
| 98 // optional PointF filters_origin = 57 | 98 // optional PointF filters_origin = 57 |
| 99 optional ScrollOffset scroll_offset = 44; | 99 optional ScrollOffset scroll_offset = 44; |
| 100 optional ScrollOffset overscroll = 59; |
| 101 optional bool can_overscroll = 60; |
| 100 optional int32 scroll_clip_layer_id = 37; | 102 optional int32 scroll_clip_layer_id = 37; |
| 101 optional bool user_scrollable_horizontal = 38; | 103 optional bool user_scrollable_horizontal = 38; |
| 102 optional bool user_scrollable_vertical = 39; | 104 optional bool user_scrollable_vertical = 39; |
| 103 optional uint32 main_thread_scrolling_reasons = 15; | 105 optional uint32 main_thread_scrolling_reasons = 15; |
| 104 | 106 |
| 105 optional Region non_fast_scrollable_region = 18; | 107 optional Region non_fast_scrollable_region = 18; |
| 106 // TODO(khushalsagar): Do we actually need these? Touch events are never sent | 108 // TODO(khushalsagar): Do we actually need these? Touch events are never sent |
| 107 // back to the engine. | 109 // back to the engine. |
| 108 optional Region touch_event_handler_region = 19; | 110 optional Region touch_event_handler_region = 19; |
| 109 | 111 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 HORIZONTAL = 0; | 173 HORIZONTAL = 0; |
| 172 VERTICAL = 1; | 174 VERTICAL = 1; |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 optional int32 scroll_layer_id = 1; | 177 optional int32 scroll_layer_id = 1; |
| 176 optional int32 thumb_thickness = 2; | 178 optional int32 thumb_thickness = 2; |
| 177 optional int32 track_start = 3; | 179 optional int32 track_start = 3; |
| 178 optional bool is_left_side_vertical_scrollbar = 4; | 180 optional bool is_left_side_vertical_scrollbar = 4; |
| 179 optional ScrollbarOrientation orientation = 5; | 181 optional ScrollbarOrientation orientation = 5; |
| 180 } | 182 } |
| OLD | NEW |