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

Unified Diff: ui/base/window_open_disposition.h

Issue 484603004: New C++ -> Java enum build rule + parser/generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « ui/android/ui_android.gyp ('k') | ui/base/window_open_disposition_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/window_open_disposition.h
diff --git a/ui/base/window_open_disposition.h b/ui/base/window_open_disposition.h
index fe96aac5f07aeacb3eb9307983738b4877557b28..b548984e7928c02f25d4ed691e871764a62968aa 100644
--- a/ui/base/window_open_disposition.h
+++ b/ui/base/window_open_disposition.h
@@ -7,12 +7,23 @@
#include "ui/base/ui_base_export.h"
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui
enum WindowOpenDisposition {
-
-#define WINDOW_OPEN_DISPOSITION(label, value) label = value,
-#include "window_open_disposition_list.h"
-#undef WINDOW_OPEN_DISPOSITION
-
+ UNKNOWN,
+ SUPPRESS_OPEN,
+ CURRENT_TAB,
+ // Indicates that only one tab with the url should exist in the same window.
+ SINGLETON_TAB,
+ NEW_FOREGROUND_TAB,
+ NEW_BACKGROUND_TAB,
+ NEW_POPUP,
+ NEW_WINDOW,
+ SAVE_TO_DISK,
+ OFF_THE_RECORD,
+ IGNORE_ACTION,
+ // Update when adding a new disposition.
+ WINDOW_OPEN_DISPOSITION_LAST = IGNORE_ACTION
};
namespace ui {
« no previous file with comments | « ui/android/ui_android.gyp ('k') | ui/base/window_open_disposition_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698