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

Unified Diff: chrome/browser/android/activity_type_ids.h

Issue 659493003: Final step of the java_cpp_template -> java_cpp_enum migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete some more template files Created 6 years, 2 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
Index: chrome/browser/android/activity_type_ids.h
diff --git a/chrome/browser/android/activity_type_ids.h b/chrome/browser/android/activity_type_ids.h
index 606f8759519b596cddfa6a33e8807a8c43cb4f5d..91e5cd0e55ae5570439751ca30d99198a344f7ef 100644
--- a/chrome/browser/android/activity_type_ids.h
+++ b/chrome/browser/android/activity_type_ids.h
@@ -9,11 +9,19 @@
namespace ActivityTypeIds {
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser
+// GENERATED_JAVA_CLASS_NAME_OVERRIDE: ActivityTypeIds
+// GENERATED_JAVA_PREFIX_TO_STRIP: ACTIVITY_
enum Type {
-#define DEFINE_ACTIVITY_ID(id,value) ACTIVITY_##id = (value),
-#include "activity_type_id_list.h"
-#undef DEFINE_ACTIVITY_ID
-}; // enum Type
+ ACTIVITY_NONE = 0,
+ ACTIVITY_UNKNOWN = 1,
+ ACTIVITY_MAIN = 2,
+ ACTIVITY_PREFERENCES = 3,
+ ACTIVITY_WEBAPPACTIVITY = 4,
+ ACTIVITY_FULLSCREENACTIVITY = 5,
+ ACTIVITY_MAX_VALUE = 6
+};
// Takes an int corresponding to a Type and returns the corresponding Type.
Type GetActivityType(int type_id);

Powered by Google App Engine
This is Rietveld 408576698