Index: webkit/support/test_webkit_platform_support.cc |
diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc |
index 84e4cd5ef276581ad2e18807488311219a94123e..841b8034adf8154bd99cb3a8de3e23e2c7436752 100644 |
--- a/webkit/support/test_webkit_platform_support.cc |
+++ b/webkit/support/test_webkit_platform_support.cc |
@@ -72,7 +72,8 @@ TestWebKitPlatformSupport::TestWebKitPlatformSupport(bool unit_test_mode, |
WebKit::Platform* shadow_platform_delegate) |
: unit_test_mode_(unit_test_mode), |
shadow_platform_delegate_(shadow_platform_delegate), |
- threaded_compositing_enabled_(false) { |
+ threaded_compositing_enabled_(false), |
+ device_motion_listener_(0) { |
v8::V8::SetCounterFunction(base::StatsTable::FindLocation); |
WebKit::initialize(this); |
@@ -457,6 +458,11 @@ void TestWebKitPlatformSupport::setGamepadData( |
gamepad_data_ = data; |
} |
+void TestWebKitPlatformSupport::setDeviceMotionListener( |
+ WebKit::WebDeviceMotionListener* listener) { |
+ device_motion_listener_ = listener; |
+} |
+ |
void TestWebKitPlatformSupport::GetPlugins( |
bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
if (refresh) |