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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 9085027: Pepper gamepad support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove hardcoded size assert in favour of matching webkit size assert Created 8 years, 11 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
« no previous file with comments | « no previous file | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper_plugin_delegate_impl.h
diff --git a/content/renderer/pepper_plugin_delegate_impl.h b/content/renderer/pepper_plugin_delegate_impl.h
index 2ef8fb7e34b98c924f2cb588ca18fdfbd9bda270..f1e24f79b88db740a2268033febfb0fac3143231 100644
--- a/content/renderer/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper_plugin_delegate_impl.h
@@ -30,6 +30,10 @@ class FilePath;
class PepperPluginDelegateImpl;
class RenderViewImpl;
+namespace content {
+class GamepadSharedMemoryReader;
+}
+
namespace gfx {
class Point;
class Rect;
@@ -50,6 +54,7 @@ class PluginModule;
namespace WebKit {
class WebFileChooserCompletion;
+class WebGamepads;
class WebMouseEvent;
struct WebCompositionUnderline;
struct WebFileChooserParams;
@@ -385,6 +390,7 @@ class PepperPluginDelegateImpl
virtual void DidReceiveMouseEvent(
webkit::ppapi::PluginInstance* instance) OVERRIDE;
virtual bool IsInFullscreenMode() OVERRIDE;
+ virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
virtual bool IsPageVisible() const OVERRIDE;
// RenderViewObserver implementation.
@@ -496,6 +502,8 @@ class PepperPluginDelegateImpl
// when it is destroyed via InstanceDeleted().
webkit::ppapi::PluginInstance* last_mouse_event_target_;
+ scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
+
DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
};
« no previous file with comments | « no previous file | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698