Index: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
index 0117c96c6736eea467226c7e058ab269f03424e0..0eaf63e5512970227f9a4768091120b40b4305d1 100644 |
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp |
@@ -41,8 +41,7 @@ DeviceOrientationController& DeviceOrientationInspectorAgent::controller() { |
*m_page->deprecatedLocalMainFrame()->document()); |
} |
-void DeviceOrientationInspectorAgent::setDeviceOrientationOverride( |
- ErrorString* error, |
+Response DeviceOrientationInspectorAgent::setDeviceOrientationOverride( |
double alpha, |
double beta, |
double gamma) { |
@@ -53,19 +52,21 @@ void DeviceOrientationInspectorAgent::setDeviceOrientationOverride( |
m_state->setDouble(DeviceOrientationInspectorAgentState::gamma, gamma); |
controller().setOverride( |
DeviceOrientationData::create(alpha, beta, gamma, false)); |
+ return Response::OK(); |
} |
-void DeviceOrientationInspectorAgent::clearDeviceOrientationOverride( |
- ErrorString* error) { |
+Response DeviceOrientationInspectorAgent::clearDeviceOrientationOverride() { |
m_state->setBoolean(DeviceOrientationInspectorAgentState::overrideEnabled, |
false); |
controller().clearOverride(); |
+ return Response::OK(); |
} |
-void DeviceOrientationInspectorAgent::disable(ErrorString*) { |
+Response DeviceOrientationInspectorAgent::disable() { |
m_state->setBoolean(DeviceOrientationInspectorAgentState::overrideEnabled, |
false); |
controller().clearOverride(); |
+ return Response::OK(); |
} |
void DeviceOrientationInspectorAgent::restore() { |