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 15 matching lines...) Expand all Loading... |
26 message LayerNode { | 26 message LayerNode { |
27 // Identifies the type of cc:Layer a LayerNode represents. It is used to | 27 // Identifies the type of cc:Layer a LayerNode represents. It is used to |
28 // facilitate reconstruction of a Layer of the correct type on the client. | 28 // facilitate reconstruction of a Layer of the correct type on the client. |
29 enum Type { | 29 enum Type { |
30 UNKNOWN = 0; | 30 UNKNOWN = 0; |
31 LAYER = 1; | 31 LAYER = 1; |
32 PICTURE_LAYER = 2; | 32 PICTURE_LAYER = 2; |
33 HEADS_UP_DISPLAY_LAYER = 3; | 33 HEADS_UP_DISPLAY_LAYER = 3; |
34 SOLID_COLOR_SCROLLBAR_LAYER = 4; | 34 SOLID_COLOR_SCROLLBAR_LAYER = 4; |
35 | 35 |
| 36 // Layer Types for testing only. |
| 37 FAKE_PICTURE_LAYER = 5; |
| 38 |
36 // TODO(nyquist): Add the rest of the necessary LayerTypes. | 39 // TODO(nyquist): Add the rest of the necessary LayerTypes. |
37 }; | 40 }; |
38 | 41 |
39 // required | 42 // required |
40 optional int32 id = 1; | 43 optional int32 id = 1; |
41 // required | 44 // required |
42 optional Type type = 2; | 45 optional Type type = 2; |
43 optional int32 parent_id = 3; | 46 optional int32 parent_id = 3; |
44 // A List of all the children of the current LayerNode. | 47 // A List of all the children of the current LayerNode. |
45 repeated LayerNode children = 4; | 48 repeated LayerNode children = 4; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 HORIZONTAL = 0; | 171 HORIZONTAL = 0; |
169 VERTICAL = 1; | 172 VERTICAL = 1; |
170 }; | 173 }; |
171 | 174 |
172 optional int32 scroll_layer_id = 1; | 175 optional int32 scroll_layer_id = 1; |
173 optional int32 thumb_thickness = 2; | 176 optional int32 thumb_thickness = 2; |
174 optional int32 track_start = 3; | 177 optional int32 track_start = 3; |
175 optional bool is_left_side_vertical_scrollbar = 4; | 178 optional bool is_left_side_vertical_scrollbar = 4; |
176 optional ScrollbarOrientation orientation = 5; | 179 optional ScrollbarOrientation orientation = 5; |
177 } | 180 } |
OLD | NEW |