| 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: 57 |
| 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; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 optional bool user_scrollable_horizontal = 38; | 115 optional bool user_scrollable_horizontal = 38; |
| 116 optional bool user_scrollable_vertical = 39; | 116 optional bool user_scrollable_vertical = 39; |
| 117 | 117 |
| 118 optional int32 scroll_parent_id = 40; | 118 optional int32 scroll_parent_id = 40; |
| 119 repeated int32 scroll_children_ids = 41; | 119 repeated int32 scroll_children_ids = 41; |
| 120 | 120 |
| 121 optional int32 clip_parent_id = 42; | 121 optional int32 clip_parent_id = 42; |
| 122 repeated int32 clip_children_ids = 43; | 122 repeated int32 clip_children_ids = 43; |
| 123 | 123 |
| 124 optional ScrollOffset scroll_offset = 44; | 124 optional ScrollOffset scroll_offset = 44; |
| 125 optional ScrollOffset overscroll = 55; |
| 126 optional bool can_overscroll = 56; |
| 125 | 127 |
| 126 optional Rect update_rect = 46; | 128 optional Rect update_rect = 46; |
| 127 | 129 |
| 128 // TODO(nyquist): Figure out what to do with LayerAnimationController. | 130 // TODO(nyquist): Figure out what to do with LayerAnimationController. |
| 129 // optional LayerAnimationController layer_animation_controller = ???; | 131 // optional LayerAnimationController layer_animation_controller = ???; |
| 130 } | 132 } |
| 131 | 133 |
| 132 message PictureLayerProperties { | 134 message PictureLayerProperties { |
| 133 optional RecordingSource recording_source = 1; | 135 optional RecordingSource recording_source = 1; |
| 134 optional Region invalidation = 2; | 136 optional Region invalidation = 2; |
| 135 optional Rect last_updated_visible_layer_rect = 3; | 137 optional Rect last_updated_visible_layer_rect = 3; |
| 136 optional bool is_mask = 4; | 138 optional bool is_mask = 4; |
| 137 optional bool nearest_neighbor = 5; | 139 optional bool nearest_neighbor = 5; |
| 138 | 140 |
| 139 optional int64 update_source_frame_number = 6; | 141 optional int64 update_source_frame_number = 6; |
| 140 } | 142 } |
| 141 | 143 |
| 142 message SolidColorScrollbarLayerProperties { | 144 message SolidColorScrollbarLayerProperties { |
| 143 enum ScrollbarOrientation { | 145 enum ScrollbarOrientation { |
| 144 HORIZONTAL = 0; | 146 HORIZONTAL = 0; |
| 145 VERTICAL = 1; | 147 VERTICAL = 1; |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 optional int32 scroll_layer_id = 1; | 150 optional int32 scroll_layer_id = 1; |
| 149 optional int32 thumb_thickness = 2; | 151 optional int32 thumb_thickness = 2; |
| 150 optional int32 track_start = 3; | 152 optional int32 track_start = 3; |
| 151 optional bool is_left_side_vertical_scrollbar = 4; | 153 optional bool is_left_side_vertical_scrollbar = 4; |
| 152 optional ScrollbarOrientation orientation = 5; | 154 optional ScrollbarOrientation orientation = 5; |
| 153 } | 155 } |
| OLD | NEW |