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

Unified Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 22599005: Blink-side layout tests for the new Device Orientation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased once more Created 7 years, 3 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
« no previous file with comments | « LayoutTests/inspector/device-orientation-success-expected.txt ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorPageAgent.cpp
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp
index 602d8d18c45f4ebccfd61b145f0d18d87b92fee4..5816b479e93fd71b3f2c4faff64f5d3d26919c46 100644
--- a/Source/core/inspector/InspectorPageAgent.cpp
+++ b/Source/core/inspector/InspectorPageAgent.cpp
@@ -36,7 +36,6 @@
#include "bindings/v8/DOMWrapperWorld.h"
#include "bindings/v8/ScriptController.h"
#include "core/dom/DOMImplementation.h"
-#include "core/dom/DeviceOrientationController.h"
#include "core/dom/Document.h"
#include "core/dom/UserGestureIndicator.h"
#include "core/fetch/CSSStyleSheetResource.h"
@@ -69,6 +68,7 @@
#include "core/platform/Cookie.h"
#include "core/platform/JSONValues.h"
#include "core/platform/text/RegularExpression.h"
+#include "modules/device_orientation/NewDeviceOrientationController.h"
#include "modules/geolocation/GeolocationController.h"
#include "weborigin/SecurityOrigin.h"
#include "wtf/CurrentTime.h"
@@ -1194,7 +1194,7 @@ GeolocationPosition* InspectorPageAgent::overrideGeolocationPosition(Geolocation
void InspectorPageAgent::setDeviceOrientationOverride(ErrorString* error, double alpha, double beta, double gamma)
{
- DeviceOrientationController* controller = DeviceOrientationController::from(m_page);
+ NewDeviceOrientationController* controller = NewDeviceOrientationController::from(mainFrame()->document());
if (!controller) {
*error = "Internal error: unable to override device orientation";
return;
« no previous file with comments | « LayoutTests/inspector/device-orientation-success-expected.txt ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698