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 #ifndef SelectionState_h | 5 #ifndef SelectionState_h |
6 #define SelectionState_h | 6 #define SelectionState_h |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 enum SelectionState { | 10 enum SelectionState { |
11 SelectionNone, // The object is not selected. | 11 // The object is not selected. |
12 SelectionStart, // The object either contains the start of a selection run o
r is the start of a run. | 12 SelectionNone, |
13 SelectionInside, // The object is fully encompassed by a selection run. | 13 // The object either contains the start of a selection run or is the start of |
14 SelectionEnd, // The object either contains the end of a selection run or is
the end of a run. | 14 // a run. |
15 SelectionBoth // The object contains an entire run or is the sole selected ob
ject in that run. | 15 SelectionStart, |
| 16 // The object is fully encompassed by a selection run. |
| 17 SelectionInside, |
| 18 // The object either contains the end of a selection run or is the end of a |
| 19 // run. |
| 20 SelectionEnd, |
| 21 // The object contains an entire run or is the sole selected object in that |
| 22 // run. |
| 23 SelectionBoth |
16 }; | 24 }; |
17 | 25 |
18 } // namespace blink | 26 } // namespace blink |
19 | 27 |
20 #endif // SelectionState_h | 28 #endif // SelectionState_h |
OLD | NEW |