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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 namespace ppapi { 52 namespace ppapi {
53 struct Preferences; 53 struct Preferences;
54 } 54 }
55 55
56 namespace skia { 56 namespace skia {
57 class PlatformCanvas; 57 class PlatformCanvas;
58 } 58 }
59 59
60 namespace WebKit { 60 namespace WebKit {
61 class WebFileChooserCompletion; 61 class WebFileChooserCompletion;
62 class WebGamepads;
62 struct WebCursorInfo; 63 struct WebCursorInfo;
63 struct WebFileChooserParams; 64 struct WebFileChooserParams;
64 } 65 }
65 66
66 namespace webkit_glue { 67 namespace webkit_glue {
67 class P2PTransport; 68 class P2PTransport;
68 } // namespace webkit_glue 69 } // namespace webkit_glue
69 70
70 namespace webkit { 71 namespace webkit {
71 namespace ppapi { 72 namespace ppapi {
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // instance. 509 // instance.
509 virtual void DidChangeCursor(PluginInstance* instance, 510 virtual void DidChangeCursor(PluginInstance* instance,
510 const WebKit::WebCursorInfo& cursor) = 0; 511 const WebKit::WebCursorInfo& cursor) = 0;
511 512
512 // Notifies that |instance| has received a mouse event. 513 // Notifies that |instance| has received a mouse event.
513 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0; 514 virtual void DidReceiveMouseEvent(PluginInstance* instance) = 0;
514 515
515 // Determines if the browser entered fullscreen mode. 516 // Determines if the browser entered fullscreen mode.
516 virtual bool IsInFullscreenMode() = 0; 517 virtual bool IsInFullscreenMode() = 0;
517 518
519 // Retrieve current gamepad data.
520 virtual void SampleGamepads(WebKit::WebGamepads* data) = 0;
521
518 // Returns true if the containing page is visible. 522 // Returns true if the containing page is visible.
519 virtual bool IsPageVisible() const = 0; 523 virtual bool IsPageVisible() const = 0;
520 }; 524 };
521 525
522 } // namespace ppapi 526 } // namespace ppapi
523 } // namespace webkit 527 } // namespace webkit
524 528
525 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 529 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698