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 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package cc.proto; | 11 package cc.proto; |
12 | 12 |
13 enum SelectionBoundType { | 13 message LayerSelectionBound { |
14 UNKNOWN = 0; | 14 enum SelectionBoundType { |
15 LEFT = 1; | 15 UNKNOWN = 0; |
16 RIGHT = 2; | 16 LEFT = 1; |
17 CENTER = 3; | 17 RIGHT = 2; |
18 EMPTY = 4; | 18 CENTER = 3; |
19 } | 19 EMPTY = 4; |
| 20 } |
20 | 21 |
21 message LayerSelectionBound { | |
22 optional SelectionBoundType type = 1; | 22 optional SelectionBoundType type = 1; |
23 optional Point edge_top = 2; | 23 optional Point edge_top = 2; |
24 optional Point edge_bottom = 3; | 24 optional Point edge_bottom = 3; |
25 optional int32 layer_id = 4; | 25 optional int32 layer_id = 4; |
26 } | 26 } |
27 | 27 |
28 message LayerSelection { | 28 message LayerSelection { |
29 optional LayerSelectionBound start = 1; | 29 optional LayerSelectionBound start = 1; |
30 optional LayerSelectionBound end = 2; | 30 optional LayerSelectionBound end = 2; |
31 optional bool is_editable = 3; | 31 optional bool is_editable = 3; |
32 optional bool is_empty_text_form_control = 4; | 32 optional bool is_empty_text_form_control = 4; |
33 } | 33 } |
OLD | NEW |