Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index e571411555def940f310a1936024f6893408741b..a096e65406ba6a18b6c084e1b937e4c9e3f27cbc 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -20,6 +20,7 @@ |
#include "content/common/webmessageportchannel_impl.h" |
#include "content/public/common/content_switches.h" |
#include "content/public/renderer/content_renderer_client.h" |
+#include "content/renderer/gamepad_util.h" |
#include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
#include "content/renderer/media/audio_device.h" |
#include "content/renderer/media/audio_hardware.h" |
@@ -33,6 +34,7 @@ |
#include "ipc/ipc_sync_message_filter.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebBlobRegistry.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebGamepads.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" |
@@ -76,6 +78,7 @@ using WebKit::WebAudioDevice; |
using WebKit::WebBlobRegistry; |
using WebKit::WebFileSystem; |
using WebKit::WebFrame; |
+using WebKit::WebGamepads; |
using WebKit::WebIDBFactory; |
using WebKit::WebIDBKey; |
using WebKit::WebIDBKeyPath; |
@@ -619,6 +622,14 @@ WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
return blob_registry_.get(); |
} |
+//------------------------------------------------------------------------------ |
+ |
+void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
+ if (!gamepad_util_.get()) |
+ gamepad_util_.reset(new GamepadUtil); |
+ gamepad_util_->SampleGamepads(gamepads); |
+} |
+ |
WebKit::WebString RendererWebKitPlatformSupportImpl::userAgent( |
const WebKit::WebURL& url) { |
return WebKitPlatformSupportImpl::userAgent(url); |