OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file intentionally does not have header guards because this file | 5 // This file intentionally does not have header guards because this file |
6 // is meant to be included inside a macro to generate enum values. | 6 // is meant to be included inside a macro to generate enum values. |
7 | 7 |
8 // This file contains a list of events relating to selection and insertion, used | 8 // This file contains a list of events relating to selection and insertion, used |
9 // for notifying Java when the renderer selection has changed. | 9 // for notifying Java when the renderer selection has changed. |
10 | 10 |
11 #ifndef DEFINE_SELECTION_EVENT_TYPE | 11 #ifndef DEFINE_SELECTION_EVENT_TYPE |
12 #error "Please define DEFINE_SELECTION_EVENT_TYPE before including this file." | 12 #error "Please define DEFINE_SELECTION_EVENT_TYPE before including this file." |
13 #endif | 13 #endif |
14 | 14 |
15 DEFINE_SELECTION_EVENT_TYPE(SELECTION_SHOWN, 0) | 15 DEFINE_SELECTION_EVENT_TYPE(SELECTION_SHOWN, 0) |
16 DEFINE_SELECTION_EVENT_TYPE(SELECTION_CLEARED, 1) | 16 DEFINE_SELECTION_EVENT_TYPE(SELECTION_CLEARED, 1) |
17 DEFINE_SELECTION_EVENT_TYPE(INSERTION_SHOWN, 2) | 17 DEFINE_SELECTION_EVENT_TYPE(INSERTION_SHOWN, 2) |
18 DEFINE_SELECTION_EVENT_TYPE(INSERTION_MOVED, 3) | 18 DEFINE_SELECTION_EVENT_TYPE(INSERTION_MOVED, 3) |
19 DEFINE_SELECTION_EVENT_TYPE(INSERTION_TAPPED, 4) | 19 DEFINE_SELECTION_EVENT_TYPE(INSERTION_TAPPED, 4) |
20 DEFINE_SELECTION_EVENT_TYPE(INSERTION_CLEARED, 5) | 20 DEFINE_SELECTION_EVENT_TYPE(INSERTION_CLEARED, 5) |
| 21 DEFINE_SELECTION_EVENT_TYPE(INSERTION_DRAG_STARTED, 6) |
OLD | NEW |