| OLD | NEW |
| 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 Loading... |
| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) | 380 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) |
| 376 OVERRIDE; | 381 OVERRIDE; |
| 377 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; | 382 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; |
| 378 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; | 383 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 379 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; | 384 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 380 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, | 385 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, |
| 381 const WebKit::WebCursorInfo& cursor) OVERRIDE; | 386 const WebKit::WebCursorInfo& cursor) OVERRIDE; |
| 382 virtual void DidReceiveMouseEvent( | 387 virtual void DidReceiveMouseEvent( |
| 383 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 388 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 384 virtual bool IsInFullscreenMode() OVERRIDE; | 389 virtual bool IsInFullscreenMode() OVERRIDE; |
| 390 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
| 385 | 391 |
| 386 // RenderViewObserver implementation. | 392 // RenderViewObserver implementation. |
| 387 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 393 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 388 virtual void OnDestruct() OVERRIDE; | 394 virtual void OnDestruct() OVERRIDE; |
| 389 | 395 |
| 390 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, | 396 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, |
| 391 uint32 socket_id, | 397 uint32 socket_id, |
| 392 bool succeeded, | 398 bool succeeded, |
| 393 const PP_NetAddress_Private& local_addr, | 399 const PP_NetAddress_Private& local_addr, |
| 394 const PP_NetAddress_Private& remote_addr); | 400 const PP_NetAddress_Private& remote_addr); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 // there is a pending unlock request. | 491 // there is a pending unlock request. |
| 486 bool pending_lock_request_; | 492 bool pending_lock_request_; |
| 487 bool pending_unlock_request_; | 493 bool pending_unlock_request_; |
| 488 | 494 |
| 489 // The plugin instance that received the last mouse event. It is set to NULL | 495 // The plugin instance that received the last mouse event. It is set to NULL |
| 490 // if the last mouse event went to elements other than Pepper plugins. | 496 // if the last mouse event went to elements other than Pepper plugins. |
| 491 // |last_mouse_event_target_| is not owned by this class. We can know about | 497 // |last_mouse_event_target_| is not owned by this class. We can know about |
| 492 // when it is destroyed via InstanceDeleted(). | 498 // when it is destroyed via InstanceDeleted(). |
| 493 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 499 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
| 494 | 500 |
| 501 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 502 |
| 495 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 503 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 496 }; | 504 }; |
| 497 | 505 |
| 498 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 506 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |