Chromium Code Reviews

Unified Diff: components/bookmarks/common/android/bookmark_type.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: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: components/bookmarks/common/android/bookmark_type.h
diff --git a/components/bookmarks/common/android/bookmark_type.h b/components/bookmarks/common/android/bookmark_type.h
index 0c4c3e2af6823cc471353395a6047f78e5525bb7..75d213863334eff69e2d68d02c6b5c1f8df84660 100644
--- a/components/bookmarks/common/android/bookmark_type.h
+++ b/components/bookmarks/common/android/bookmark_type.h
@@ -7,10 +7,11 @@
namespace bookmarks {
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.bookmarks
enum BookmarkType {
-#define DEFINE_BOOKMARK_TYPE(name, value) name = value,
-#include "components/bookmarks/common/android/bookmark_type_list.h"
-#undef DEFINE_BOOKMARK_TYPE
+ BOOKMARK_TYPE_NORMAL,
+ BOOKMARK_TYPE_PARTNER,
};
}
« no previous file with comments | « components/bookmarks/common/android/BUILD.gn ('k') | components/bookmarks/common/android/bookmark_type_list.h » ('j') | no next file with comments »

Powered by Google App Engine