| OLD | NEW |
| 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 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 15 matching lines...) Expand all Loading... |
| 26 #include "webkit/plugins/ppapi/plugin_delegate.h" | 26 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 27 #include "webkit/plugins/ppapi/ppb_broker_impl.h" | 27 #include "webkit/plugins/ppapi/ppb_broker_impl.h" |
| 28 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 28 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 29 | 29 |
| 30 class FilePath; | 30 class FilePath; |
| 31 class PepperPluginDelegateImpl; | 31 class PepperPluginDelegateImpl; |
| 32 class RenderViewImpl; | 32 class RenderViewImpl; |
| 33 | 33 |
| 34 namespace content { | 34 namespace content { |
| 35 class GamepadSharedMemoryReader; | 35 class GamepadSharedMemoryReader; |
| 36 struct CustomContextMenuContext; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace gfx { | 39 namespace gfx { |
| 39 class Point; | 40 class Point; |
| 40 class Rect; | 41 class Rect; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace IPC { | 44 namespace IPC { |
| 44 struct ChannelHandle; | 45 struct ChannelHandle; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace webkit { | 48 namespace webkit { |
| 48 struct WebPluginInfo; | 49 struct WebPluginInfo; |
| 49 namespace ppapi { | 50 namespace ppapi { |
| 50 class PepperFilePath; | 51 class PepperFilePath; |
| 51 class PluginInstance; | 52 class PluginInstance; |
| 52 class PluginModule; | 53 class PluginModule; |
| 53 } | 54 } |
| 54 } | 55 } |
| 55 | 56 |
| 56 namespace WebKit { | 57 namespace WebKit { |
| 57 class WebFileChooserCompletion; | 58 class WebFileChooserCompletion; |
| 58 class WebGamepads; | 59 class WebGamepads; |
| 59 class WebMouseEvent; | 60 class WebMouseEvent; |
| 60 struct WebCompositionUnderline; | 61 struct WebCompositionUnderline; |
| 61 struct WebFileChooserParams; | 62 struct WebFileChooserParams; |
| 62 } | 63 } |
| 63 | 64 |
| 64 namespace webkit_glue { | |
| 65 struct CustomContextMenuContext; | |
| 66 } | |
| 67 | |
| 68 class TransportDIB; | 65 class TransportDIB; |
| 69 | 66 |
| 70 // This object is NOT thread-safe. | 67 // This object is NOT thread-safe. |
| 71 class CONTENT_EXPORT BrokerDispatcherWrapper { | 68 class CONTENT_EXPORT BrokerDispatcherWrapper { |
| 72 public: | 69 public: |
| 73 BrokerDispatcherWrapper(); | 70 BrokerDispatcherWrapper(); |
| 74 ~BrokerDispatcherWrapper(); | 71 ~BrokerDispatcherWrapper(); |
| 75 | 72 |
| 76 bool Init(base::ProcessHandle plugin_process_handle, | 73 bool Init(base::ProcessHandle plugin_process_handle, |
| 77 const IPC::ChannelHandle& channel_handle); | 74 const IPC::ChannelHandle& channel_handle); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 virtual void UDPSocketSendTo(uint32 socket_id, | 344 virtual void UDPSocketSendTo(uint32 socket_id, |
| 348 const std::string& buffer, | 345 const std::string& buffer, |
| 349 const PP_NetAddress_Private& addr) OVERRIDE; | 346 const PP_NetAddress_Private& addr) OVERRIDE; |
| 350 virtual void UDPSocketClose(uint32 socket_id) OVERRIDE; | 347 virtual void UDPSocketClose(uint32 socket_id) OVERRIDE; |
| 351 | 348 |
| 352 virtual int32_t ShowContextMenu( | 349 virtual int32_t ShowContextMenu( |
| 353 webkit::ppapi::PluginInstance* instance, | 350 webkit::ppapi::PluginInstance* instance, |
| 354 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 351 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 355 const gfx::Point& position) OVERRIDE; | 352 const gfx::Point& position) OVERRIDE; |
| 356 void OnContextMenuClosed( | 353 void OnContextMenuClosed( |
| 357 const webkit_glue::CustomContextMenuContext& custom_context); | 354 const content::CustomContextMenuContext& custom_context); |
| 358 void OnCustomContextMenuAction( | 355 void OnCustomContextMenuAction( |
| 359 const webkit_glue::CustomContextMenuContext& custom_context, | 356 const content::CustomContextMenuContext& custom_context, |
| 360 unsigned action); | 357 unsigned action); |
| 361 void CompleteShowContextMenu(int request_id, | 358 void CompleteShowContextMenu(int request_id, |
| 362 bool did_select, | 359 bool did_select, |
| 363 unsigned action); | 360 unsigned action); |
| 364 virtual webkit::ppapi::FullscreenContainer* | 361 virtual webkit::ppapi::FullscreenContainer* |
| 365 CreateFullscreenContainer( | 362 CreateFullscreenContainer( |
| 366 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 363 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 367 virtual gfx::Size GetScreenSize() OVERRIDE; | 364 virtual gfx::Size GetScreenSize() OVERRIDE; |
| 368 virtual std::string GetDefaultEncoding() OVERRIDE; | 365 virtual std::string GetDefaultEncoding() OVERRIDE; |
| 369 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor) | 366 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor) |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 // |last_mouse_event_target_| is not owned by this class. We can know about | 483 // |last_mouse_event_target_| is not owned by this class. We can know about |
| 487 // when it is destroyed via InstanceDeleted(). | 484 // when it is destroyed via InstanceDeleted(). |
| 488 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 485 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
| 489 | 486 |
| 490 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 487 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 491 | 488 |
| 492 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 489 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 493 }; | 490 }; |
| 494 | 491 |
| 495 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 492 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |