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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/pepper_plugin_delegate_impl.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) 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 CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 12 matching lines...) Expand all
23 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" 23 #include "ppapi/shared_impl/private/udp_socket_private_impl.h"
24 #include "ui/base/ime/text_input_type.h" 24 #include "ui/base/ime/text_input_type.h"
25 #include "webkit/plugins/ppapi/plugin_delegate.h" 25 #include "webkit/plugins/ppapi/plugin_delegate.h"
26 #include "webkit/plugins/ppapi/ppb_broker_impl.h" 26 #include "webkit/plugins/ppapi/ppb_broker_impl.h"
27 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" 27 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h"
28 28
29 class FilePath; 29 class FilePath;
30 class PepperPluginDelegateImpl; 30 class PepperPluginDelegateImpl;
31 class RenderViewImpl; 31 class RenderViewImpl;
32 32
33 namespace content {
34 class GamepadSharedMemoryReader;
35 }
36
33 namespace gfx { 37 namespace gfx {
34 class Point; 38 class Point;
35 class Rect; 39 class Rect;
36 } 40 }
37 41
38 namespace IPC { 42 namespace IPC {
39 struct ChannelHandle; 43 struct ChannelHandle;
40 } 44 }
41 45
42 namespace webkit { 46 namespace webkit {
43 struct WebPluginInfo; 47 struct WebPluginInfo;
44 namespace ppapi { 48 namespace ppapi {
45 class PepperFilePath; 49 class PepperFilePath;
46 class PluginInstance; 50 class PluginInstance;
47 class PluginModule; 51 class PluginModule;
48 } 52 }
49 } 53 }
50 54
51 namespace WebKit { 55 namespace WebKit {
52 class WebFileChooserCompletion; 56 class WebFileChooserCompletion;
57 class WebGamepads;
53 class WebMouseEvent; 58 class WebMouseEvent;
54 struct WebCompositionUnderline; 59 struct WebCompositionUnderline;
55 struct WebFileChooserParams; 60 struct WebFileChooserParams;
56 } 61 }
57 62
58 namespace webkit_glue { 63 namespace webkit_glue {
59 struct CustomContextMenuContext; 64 struct CustomContextMenuContext;
60 } 65 }
61 66
62 class TransportDIB; 67 class TransportDIB;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) 383 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size)
379 OVERRIDE; 384 OVERRIDE;
380 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; 385 virtual ::ppapi::Preferences GetPreferences() OVERRIDE;
381 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; 386 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE;
382 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; 387 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE;
383 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, 388 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance,
384 const WebKit::WebCursorInfo& cursor) OVERRIDE; 389 const WebKit::WebCursorInfo& cursor) OVERRIDE;
385 virtual void DidReceiveMouseEvent( 390 virtual void DidReceiveMouseEvent(
386 webkit::ppapi::PluginInstance* instance) OVERRIDE; 391 webkit::ppapi::PluginInstance* instance) OVERRIDE;
387 virtual bool IsInFullscreenMode() OVERRIDE; 392 virtual bool IsInFullscreenMode() OVERRIDE;
393 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
388 virtual bool IsPageVisible() const OVERRIDE; 394 virtual bool IsPageVisible() const OVERRIDE;
389 395
390 // RenderViewObserver implementation. 396 // RenderViewObserver implementation.
391 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 397 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
392 virtual void OnDestruct() OVERRIDE; 398 virtual void OnDestruct() OVERRIDE;
393 399
394 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, 400 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id,
395 uint32 socket_id, 401 uint32 socket_id,
396 bool succeeded, 402 bool succeeded,
397 const PP_NetAddress_Private& local_addr, 403 const PP_NetAddress_Private& local_addr,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 // there is a pending unlock request. 495 // there is a pending unlock request.
490 bool pending_lock_request_; 496 bool pending_lock_request_;
491 bool pending_unlock_request_; 497 bool pending_unlock_request_;
492 498
493 // The plugin instance that received the last mouse event. It is set to NULL 499 // The plugin instance that received the last mouse event. It is set to NULL
494 // if the last mouse event went to elements other than Pepper plugins. 500 // if the last mouse event went to elements other than Pepper plugins.
495 // |last_mouse_event_target_| is not owned by this class. We can know about 501 // |last_mouse_event_target_| is not owned by this class. We can know about
496 // when it is destroyed via InstanceDeleted(). 502 // when it is destroyed via InstanceDeleted().
497 webkit::ppapi::PluginInstance* last_mouse_event_target_; 503 webkit::ppapi::PluginInstance* last_mouse_event_target_;
498 504
505 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
506
499 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 507 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
500 }; 508 };
501 509
502 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 510 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« 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