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

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

Issue 1711083002: [DevTools] Move screen orientation override to RenderWidgetScreenMetricsEmulator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 4a27fee69b0504a230b8be44fd0e00fbabc0a0ee..0a519d328f23c2f6e7ee5530d16174aba8ee15dd 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.h
@@ -37,9 +37,6 @@ public:
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();
@@ -61,9 +58,6 @@ private:
// Inherited from LocalFrameLifecycleObserver.
void willDetachFrameHost() override;
- unsigned short effectiveAngle(ChromeClient&);
- WebScreenOrientationType effectiveType(ChromeClient&);
-
void notifyDispatcher();
void updateOrientation();
@@ -75,9 +69,6 @@ private:
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