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

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.h

Issue 171683015: Screen Orientation API: Add support for lockOrientation() / unlockOrientation() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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/ScreenOrientation.h
diff --git a/Source/modules/screen_orientation/ScreenOrientation.h b/Source/modules/screen_orientation/ScreenOrientation.h
index 58943495c28b10bbb1d7a781f1f142afb582e84c..5f9d0a83848ed9316d449972dce7c6778afa4572 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.h
+++ b/Source/modules/screen_orientation/ScreenOrientation.h
@@ -8,6 +8,8 @@
#include "core/events/EventTarget.h"
#include "core/frame/DOMWindowProperty.h"
#include "platform/Supplementable.h"
+#include "platform/Timer.h"
+#include "public/platform/WebScreenOrientation.h"
#include "wtf/Vector.h"
#include "wtf/text/AtomicString.h"
#include "wtf/text/WTFString.h"
@@ -31,8 +33,15 @@ public:
private:
explicit ScreenOrientation(Screen&);
+
+ void lockOrientationAsync(blink::WebScreenOrientations);
+ void orientationLockTimerFired(Timer<ScreenOrientation>*);
+
static const char* supplementName();
Document& document() const;
+
+ Timer<ScreenOrientation> m_orientationLockTimer;
+ blink::WebScreenOrientations m_lockedOrientations;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698