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

Unified Diff: Source/modules/screen_orientation/ScreenOrientationController.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: Source/modules/screen_orientation/ScreenOrientationController.h
diff --git a/Source/modules/screen_orientation/ScreenOrientationController.h b/Source/modules/screen_orientation/ScreenOrientationController.h
index 79c850b8ce5b610296c02b1524055e3a67b11774..9bcb7914a7687c8de815fa09eda6879317082a65 100644
--- a/Source/modules/screen_orientation/ScreenOrientationController.h
+++ b/Source/modules/screen_orientation/ScreenOrientationController.h
@@ -6,7 +6,7 @@
#define ScreenOrientationController_h
#include "core/dom/DocumentSupplementable.h"
-#include "public/platform/WebScreenOrientation.h"
+#include "public/platform/WebScreenOrientationType.h"
namespace WebCore {
@@ -14,9 +14,9 @@ class ScreenOrientationController FINAL : public DocumentSupplement {
public:
virtual ~ScreenOrientationController();
- void didChangeScreenOrientation(blink::WebScreenOrientation);
+ void didChangeScreenOrientation(blink::WebScreenOrientationType);
- blink::WebScreenOrientation orientation() const { return m_orientation; }
+ blink::WebScreenOrientationType orientation() const { return m_orientation; }
// DocumentSupplement API.
static ScreenOrientationController& from(Document&);
@@ -28,7 +28,7 @@ private:
void dispatchOrientationChangeEvent();
Document& m_document;
- blink::WebScreenOrientation m_orientation;
+ blink::WebScreenOrientationType m_orientation;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698