Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1059)

Unified Diff: content/browser/renderer_host/input/selection_event_type_list.h

Issue 625543002: Revert of Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/input/selection_event_type.h ('k') | content/child/assert_matching_enums.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/selection_event_type_list.h
diff --git a/content/browser/renderer_host/input/selection_event_type_list.h b/content/browser/renderer_host/input/selection_event_type_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..b4f3852a999155067a21392599e65171cc1d2d97
--- /dev/null
+++ b/content/browser/renderer_host/input/selection_event_type_list.h
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file intentionally does not have header guards because this file
+// is meant to be included inside a macro to generate enum values.
+
+// This file contains a list of events relating to selection and insertion, used
+// for notifying Java when the renderer selection has changed.
+
+#ifndef DEFINE_SELECTION_EVENT_TYPE
+#error "Please define DEFINE_SELECTION_EVENT_TYPE before including this file."
+#endif
+
+DEFINE_SELECTION_EVENT_TYPE(SELECTION_SHOWN, 0)
+DEFINE_SELECTION_EVENT_TYPE(SELECTION_CLEARED, 1)
+DEFINE_SELECTION_EVENT_TYPE(SELECTION_DRAG_STARTED, 2)
+DEFINE_SELECTION_EVENT_TYPE(SELECTION_DRAG_STOPPED, 3)
+DEFINE_SELECTION_EVENT_TYPE(INSERTION_SHOWN, 4)
+DEFINE_SELECTION_EVENT_TYPE(INSERTION_MOVED, 5)
+DEFINE_SELECTION_EVENT_TYPE(INSERTION_TAPPED, 6)
+DEFINE_SELECTION_EVENT_TYPE(INSERTION_CLEARED, 7)
+DEFINE_SELECTION_EVENT_TYPE(INSERTION_DRAG_STARTED, 8)
« no previous file with comments | « content/browser/renderer_host/input/selection_event_type.h ('k') | content/child/assert_matching_enums.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698