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 "point.proto"; | 7 import "point.proto"; |
8 import "size.proto"; | |
9 | 8 |
10 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
11 | 10 |
12 package cc.proto; | 11 package cc.proto; |
13 | 12 |
14 message Rect { | 13 enum SelectionBoundType { |
15 optional cc.proto.Point origin = 1; | 14 UNKNOWN = 0; |
16 optional cc.proto.Size size = 2; | 15 LEFT = 1; |
| 16 RIGHT = 2; |
| 17 CENTER = 3; |
| 18 EMPTY = 4; |
17 } | 19 } |
| 20 |
| 21 message LayerSelectionBound { |
| 22 optional SelectionBoundType type = 1; |
| 23 optional Point edge_top = 2; |
| 24 optional Point edge_bottom = 3; |
| 25 optional int32 layer_id = 4; |
| 26 } |
OLD | NEW |