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

Unified Diff: content/renderer/gamepad_shared_memory_reader.h

Issue 304403002: Gamepad: add test support for page visibility behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: trivial rebase Created 6 years, 6 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: content/renderer/gamepad_shared_memory_reader.h
diff --git a/content/renderer/gamepad_shared_memory_reader.h b/content/renderer/gamepad_shared_memory_reader.h
index 3846176107c3fdd3bd9276cac8587dd9878e3a4b..9c76ec7d27a81e905c5b3df8550fb28492a022bb 100644
--- a/content/renderer/gamepad_shared_memory_reader.h
+++ b/content/renderer/gamepad_shared_memory_reader.h
@@ -9,21 +9,26 @@
#include "base/memory/shared_memory.h"
#include "content/common/gamepad_messages.h"
#include "content/public/renderer/render_process_observer.h"
+#include "content/public/renderer/renderer_gamepad_provider.h"
#include "third_party/WebKit/public/platform/WebGamepads.h"
-namespace blink { class WebGamepadListener; }
-
namespace content {
struct GamepadHardwareBuffer;
+class RendererWebKitPlatformSupportImpl;
-class GamepadSharedMemoryReader : public RenderProcessObserver {
+class GamepadSharedMemoryReader
+ : public RenderProcessObserver
+ , public RendererGamepadProvider {
jam 2014/06/18 23:23:42 ditto
jam 2014/06/19 16:21:10 this was referring to the ','
public:
- GamepadSharedMemoryReader();
+ GamepadSharedMemoryReader(
+ RendererWebKitPlatformSupportImpl* webkit_platform_support);
virtual ~GamepadSharedMemoryReader();
- void SampleGamepads(blink::WebGamepads& gamepads);
- void SetGamepadListener(blink::WebGamepadListener* listener);
+ // RendererGamepadProvider implementation.
+ virtual void SampleGamepads(blink::WebGamepads& gamepads) OVERRIDE;
+ virtual void SetGamepadListener(
+ blink::WebGamepadListener* listener) OVERRIDE;
// RenderProcessObserver implementation.
virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698