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

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, 9 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: public/platform/WebScreenOrientation.h
diff --git a/public/platform/WebScreenOrientation.h b/public/platform/WebScreenOrientation.h
index ed9684c8fc15c6139b7e8992ccfd9565ee836c5a..43498c1ad2e9c71c982c32ff76c94abad90cfec6 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 depend on it.
Inactive 2014/04/01 17:34:24 nit: depends
mlamouri (slow - plz ping) 2014/04/01 19:37:53 Done.
+
+#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;

Powered by Google App Engine
This is Rietveld 408576698