| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 // This file contains a list of events relating to selection and insertion, used | |
| 11 // for notifying Java when the renderer selection has changed. | |
| 12 // | |
| 13 // A Java counterpart will be generated for this enum. | |
| 14 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content.browser.input | |
| 15 enum SelectionEventType { | 10 enum SelectionEventType { |
| 16 SELECTION_SHOWN, | 11 #define DEFINE_SELECTION_EVENT_TYPE(name, value) name = value, |
| 17 SELECTION_CLEARED, | 12 #include "content/browser/renderer_host/input/selection_event_type_list.h" |
| 18 SELECTION_DRAG_STARTED, | 13 #undef DEFINE_SELECTION_EVENT_TYPE |
| 19 SELECTION_DRAG_STOPPED, | |
| 20 INSERTION_SHOWN, | |
| 21 INSERTION_MOVED, | |
| 22 INSERTION_TAPPED, | |
| 23 INSERTION_CLEARED, | |
| 24 INSERTION_DRAG_STARTED, | |
| 25 }; | 14 }; |
| 26 | 15 |
| 27 } // namespace content | 16 } // namespace content |
| 28 | 17 |
| 29 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ | 18 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SELECTION_EVENT_TYPE_ |
| OLD | NEW |