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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h

Issue 1723663005: Revert of [DevTools] Move screen orientation override to RenderWidgetScreenMetricsEmulator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
index 0a519d328f23c2f6e7ee5530d16174aba8ee15dd..4a27fee69b0504a230b8be44fd0e00fbabc0a0ee 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
@@ -37,6 +37,9 @@
void lock(WebScreenOrientationLockType, WebLockOrientationCallback*);
void unlock();
+ void setOverride(WebScreenOrientationType, unsigned short angle);
+ void clearOverride();
+
static void provideTo(LocalFrame&, WebScreenOrientationClient*);
static ScreenOrientationController* from(LocalFrame&);
static const char* supplementName();
@@ -58,6 +61,9 @@
// Inherited from LocalFrameLifecycleObserver.
void willDetachFrameHost() override;
+ unsigned short effectiveAngle(ChromeClient&);
+ WebScreenOrientationType effectiveType(ChromeClient&);
+
void notifyDispatcher();
void updateOrientation();
@@ -69,6 +75,9 @@
PersistentWillBeMember<ScreenOrientation> m_orientation;
WebScreenOrientationClient* m_client;
Timer<ScreenOrientationController> m_dispatchEventTimer;
+ bool m_override;
+ WebScreenOrientationType m_overrideType;
+ unsigned short m_overrideAngle;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698