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

Unified Diff: Source/modules/device_orientation/DeviceOrientationInspectorAgent.h

Issue 209333008: [DevTools] Support device orientation override on device with sensors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaselined test 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/device_orientation/DeviceOrientationInspectorAgent.h
diff --git a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.h b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.h
index 217e5e1aca83d5b99c33943015da407d8c1e8e42..a77363f055d86bc064a0477880f27cda4269ba12 100644
--- a/Source/modules/device_orientation/DeviceOrientationInspectorAgent.h
+++ b/Source/modules/device_orientation/DeviceOrientationInspectorAgent.h
@@ -10,6 +10,7 @@
namespace WebCore {
+class DeviceOrientationController;
class Page;
typedef String ErrorString;
@@ -25,8 +26,14 @@ public:
virtual void setDeviceOrientationOverride(ErrorString*, double, double, double) OVERRIDE;
virtual void clearDeviceOrientationOverride(ErrorString*) OVERRIDE;
+ // Inspector Controller API.
+ virtual void clearFrontend() OVERRIDE;
+ virtual void restore() OVERRIDE;
+ virtual void didCommitLoadForMainFrame() OVERRIDE;
+
private:
explicit DeviceOrientationInspectorAgent(Page&);
+ DeviceOrientationController& controller();
Page& m_page;
};

Powered by Google App Engine
This is Rietveld 408576698