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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.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
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/string16.h" 16 #include "base/string16.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "ppapi/c/dev/pp_cursor_type_dev.h" 18 #include "ppapi/c/dev/pp_cursor_type_dev.h"
19 #include "ppapi/c/dev/ppb_gamepad_dev.h"
19 #include "ppapi/c/dev/ppp_printing_dev.h" 20 #include "ppapi/c/dev/ppp_printing_dev.h"
20 #include "ppapi/c/dev/ppp_find_dev.h" 21 #include "ppapi/c/dev/ppp_find_dev.h"
21 #include "ppapi/c/dev/ppp_selection_dev.h" 22 #include "ppapi/c/dev/ppp_selection_dev.h"
22 #include "ppapi/c/dev/ppp_zoom_dev.h" 23 #include "ppapi/c/dev/ppp_zoom_dev.h"
23 #include "ppapi/c/pp_completion_callback.h" 24 #include "ppapi/c/pp_completion_callback.h"
24 #include "ppapi/c/pp_instance.h" 25 #include "ppapi/c/pp_instance.h"
25 #include "ppapi/c/pp_resource.h" 26 #include "ppapi/c/pp_resource.h"
26 #include "ppapi/c/pp_var.h" 27 #include "ppapi/c/pp_var.h"
27 #include "ppapi/c/ppb_input_event.h" 28 #include "ppapi/c/ppb_input_event.h"
28 #include "ppapi/c/ppp_graphics_3d.h" 29 #include "ppapi/c/ppp_graphics_3d.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // Returns true on success, false on failure (e.g. trying to enter fullscreen 281 // Returns true on success, false on failure (e.g. trying to enter fullscreen
281 // when not processing a user gesture or trying to set fullscreen when 282 // when not processing a user gesture or trying to set fullscreen when
282 // already in fullscreen mode). 283 // already in fullscreen mode).
283 bool SetFullscreen(bool fullscreen); 284 bool SetFullscreen(bool fullscreen);
284 285
285 // Implementation of PPB_Flash. 286 // Implementation of PPB_Flash.
286 int32_t Navigate(PPB_URLRequestInfo_Impl* request, 287 int32_t Navigate(PPB_URLRequestInfo_Impl* request,
287 const char* target, 288 const char* target,
288 bool from_user_action); 289 bool from_user_action);
289 290
291 // Implementation of PPB_Gamepad.
292 void SampleGamepads(PP_Instance instance, PP_GamepadsData_Dev* data)
293 OVERRIDE;
294
290 // Implementation of PPP_Messaging. 295 // Implementation of PPP_Messaging.
291 void HandleMessage(PP_Var message); 296 void HandleMessage(PP_Var message);
292 297
293 PluginDelegate::PlatformContext3D* CreateContext3D(); 298 PluginDelegate::PlatformContext3D* CreateContext3D();
294 299
295 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe 300 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe
296 // or embedded in a page). 301 // or embedded in a page).
297 bool IsFullPagePlugin() const; 302 bool IsFullPagePlugin() const;
298 303
299 void OnLockMouseACK(int32_t result); 304 void OnLockMouseACK(int32_t result);
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 611
607 PP_CompletionCallback lock_mouse_callback_; 612 PP_CompletionCallback lock_mouse_callback_;
608 613
609 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 614 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
610 }; 615 };
611 616
612 } // namespace ppapi 617 } // namespace ppapi
613 } // namespace webkit 618 } // namespace webkit
614 619
615 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 620 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698