Index: content/public/common/screen_orientation_values_list.h |
diff --git a/content/public/common/screen_orientation_values_list.h b/content/public/common/screen_orientation_values_list.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46ef678c9c28e09e37908faa7920d5a34e0f7600 |
--- /dev/null |
+++ b/content/public/common/screen_orientation_values_list.h |
@@ -0,0 +1,24 @@ |
+// 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. |
+ |
+#ifndef CONTENT_PUBLIC_COMMON_SCREEN_ORIENTATION_VALUES_LIST_H_ |
+#define CONTENT_PUBLIC_COMMON_SCREEN_ORIENTATION_VALUES_LIST_H_ |
+ |
+#ifndef DEFINE_SCREEN_ORIENTATION_VALUE |
+#error "DEFINE_SCREEN_ORIENTATION_VALUE should be defined before including this" |
+#endif |
+ |
+// These values are defined with macros so that a Java class can be generated |
+// for them. |
+DEFINE_SCREEN_ORIENTATION_VALUE(DEFAULT, 0) |
+DEFINE_SCREEN_ORIENTATION_VALUE(PORTRAIT_PRIMARY, 1) |
+DEFINE_SCREEN_ORIENTATION_VALUE(PORTRAIT_SECONDARY, 2) |
+DEFINE_SCREEN_ORIENTATION_VALUE(LANDSCAPE_PRIMARY, 3) |
+DEFINE_SCREEN_ORIENTATION_VALUE(LANDSCAPE_SECONDARY, 4) |
+DEFINE_SCREEN_ORIENTATION_VALUE(ANY, 5) |
+DEFINE_SCREEN_ORIENTATION_VALUE(LANDSCAPE, 6) |
+DEFINE_SCREEN_ORIENTATION_VALUE(PORTRAIT, 7) |
+DEFINE_SCREEN_ORIENTATION_VALUE(NATURAL, 8) |
+ |
+#endif // CONTENT_PUBLIC_COMMON_SCREEN_ORIENTATION_VALUES_LIST_H_ |