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

Unified Diff: public/platform/WebScreenOrientation.h

Issue 219463003: Screen Orientation API: cleanup, simplify and fix implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | « public/platform/Platform.h ('k') | public/platform/WebScreenOrientationListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebScreenOrientation.h
diff --git a/public/platform/WebScreenOrientation.h b/public/platform/WebScreenOrientation.h
index ed9684c8fc15c6139b7e8992ccfd9565ee836c5a..dc88b8b29b050554f1c98f7ab56097f46cbec3e5 100644
--- a/public/platform/WebScreenOrientation.h
+++ b/public/platform/WebScreenOrientation.h
@@ -5,14 +5,12 @@
#ifndef WebScreenOrientation_h
#define WebScreenOrientation_h
-namespace blink {
+// FIXME: this file should be removed as soon as Chrome will no longer depends on it.
+
+#include "WebScreenOrientationType.h"
+#define WebScreenOrientation WebScreenOrientationType
-enum WebScreenOrientation {
- WebScreenOrientationPortraitPrimary = 1,
- WebScreenOrientationLandscapePrimary = 1 << 1,
- WebScreenOrientationPortraitSecondary = 1 << 2,
- WebScreenOrientationLandscapeSecondary = 1 << 3,
-};
+namespace blink {
typedef unsigned char WebScreenOrientations;
« no previous file with comments | « public/platform/Platform.h ('k') | public/platform/WebScreenOrientationListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698