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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed Darin's comments Created 7 years, 7 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: Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp
index 99d4ae92b5e32e25117adfd9436db13ed04e6ad5..7b2a693573d3ba0e1597bd81266acc9061c6e322 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/WebTestProxy.cpp
@@ -33,6 +33,7 @@
#include "AccessibilityControllerChromium.h"
#include "EventSender.h"
+#include "MockWebDeviceMotionProvider.h"
#include "MockWebSpeechInputController.h"
#include "MockWebSpeechRecognizer.h"
#include "SpellCheckClient.h"
@@ -686,6 +687,13 @@ WebDeviceOrientationClientMock* WebTestProxyBase::deviceOrientationClientMock()
return m_deviceOrientationClient.get();
}
+MockWebDeviceMotionProvider* WebTestProxyBase::deviceMotionProviderMock()
+{
+ if (!m_deviceMotionProvider.get())
+ m_deviceMotionProvider.reset(new MockWebDeviceMotionProvider());
+ return m_deviceMotionProvider.get();
+}
+
#if ENABLE_INPUT_SPEECH
MockWebSpeechInputController* WebTestProxyBase::speechInputControllerMock()
{

Powered by Google App Engine
This is Rietveld 408576698