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

Unified Diff: content/public/common/screen_orientation_values.h

Issue 615893003: Use the new java_cpp_enum rule in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix aosp 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/public/common/result_codes_list.h ('k') | content/public/common/screen_orientation_values_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/screen_orientation_values.h
diff --git a/content/public/common/screen_orientation_values.h b/content/public/common/screen_orientation_values.h
index fe421a2b79332f46664c4cf71c6fd5108e510b7a..422344d9c1d972426bafbd33d3ee13dccd463d8c 100644
--- a/content/public/common/screen_orientation_values.h
+++ b/content/public/common/screen_orientation_values.h
@@ -7,10 +7,18 @@
namespace content {
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content_public.common
enum ScreenOrientationValues {
-#define DEFINE_SCREEN_ORIENTATION_VALUE(name, value) name = value,
-#include "content/public/common/screen_orientation_values_list.h"
-#undef DEFINE_SCREEN_ORIENTATION_VALUE
+ SCREEN_ORIENTATION_VALUES_DEFAULT,
+ SCREEN_ORIENTATION_VALUES_PORTRAIT_PRIMARY,
+ SCREEN_ORIENTATION_VALUES_PORTRAIT_SECONDARY,
+ SCREEN_ORIENTATION_VALUES_LANDSCAPE_PRIMARY,
+ SCREEN_ORIENTATION_VALUES_LANDSCAPE_SECONDARY,
+ SCREEN_ORIENTATION_VALUES_ANY,
+ SCREEN_ORIENTATION_VALUES_LANDSCAPE,
+ SCREEN_ORIENTATION_VALUES_PORTRAIT,
+ SCREEN_ORIENTATION_VALUES_NATURAL,
};
} // namespace content
« no previous file with comments | « content/public/common/result_codes_list.h ('k') | content/public/common/screen_orientation_values_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698