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