Chromium Code Reviews| 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_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_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 11 matching lines...) Expand all Loading... | |
| 22 #include "content/renderer/pepper/pepper_parent_context_provider.h" | 22 #include "content/renderer/pepper/pepper_parent_context_provider.h" |
| 23 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" | 23 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
| 24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" | 24 #include "ppapi/shared_impl/private/ppb_tcp_server_socket_shared.h" |
| 25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" | 25 #include "ppapi/shared_impl/private/tcp_socket_private_impl.h" |
| 26 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" | 26 #include "ppapi/shared_impl/private/udp_socket_private_impl.h" |
| 27 #include "ui/base/ime/text_input_type.h" | 27 #include "ui/base/ime/text_input_type.h" |
| 28 #include "webkit/plugins/ppapi/plugin_delegate.h" | 28 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 29 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" | 29 #include "webkit/plugins/ppapi/ppb_flash_menu_impl.h" |
| 30 | 30 |
| 31 class FilePath; | 31 class FilePath; |
| 32 class PepperBrokerImpl; | |
| 33 class PepperDeviceEnumerationEventHandler; | |
| 34 class PepperPluginDelegateImpl; | |
| 35 class RenderViewImpl; | 32 class RenderViewImpl; |
| 33 class TransportDIB; | |
| 36 | 34 |
| 37 namespace content { | 35 namespace content { |
| 38 class GamepadSharedMemoryReader; | 36 class GamepadSharedMemoryReader; |
| 39 struct CustomContextMenuContext; | 37 struct CustomContextMenuContext; |
| 40 } | 38 } |
| 41 | 39 |
| 42 namespace gfx { | 40 namespace gfx { |
| 43 class Point; | 41 class Point; |
| 44 class Rect; | 42 class Rect; |
| 45 } | 43 } |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 62 } | 60 } |
| 63 | 61 |
| 64 namespace WebKit { | 62 namespace WebKit { |
| 65 class WebFileChooserCompletion; | 63 class WebFileChooserCompletion; |
| 66 class WebGamepads; | 64 class WebGamepads; |
| 67 class WebMouseEvent; | 65 class WebMouseEvent; |
| 68 struct WebCompositionUnderline; | 66 struct WebCompositionUnderline; |
| 69 struct WebFileChooserParams; | 67 struct WebFileChooserParams; |
| 70 } | 68 } |
| 71 | 69 |
| 72 class TransportDIB; | 70 |
| 71 namespace content { | |
| 72 | |
| 73 class PepperBrokerImpl; | |
| 74 class PepperDeviceEnumerationEventHandler; | |
| 75 class PepperPluginDelegateImpl; | |
| 73 | 76 |
| 74 class PepperPluginDelegateImpl | 77 class PepperPluginDelegateImpl |
| 75 : public webkit::ppapi::PluginDelegate, | 78 : public webkit::ppapi::PluginDelegate, |
| 76 public base::SupportsWeakPtr<PepperPluginDelegateImpl>, | 79 public base::SupportsWeakPtr<PepperPluginDelegateImpl>, |
| 77 public PepperParentContextProvider, | 80 public PepperParentContextProvider, |
| 78 public content::RenderViewObserver { | 81 public content::RenderViewObserver { |
|
jam
2012/03/30 21:50:03
ditto
| |
| 79 public: | 82 public: |
| 80 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view); | 83 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view); |
| 81 virtual ~PepperPluginDelegateImpl(); | 84 virtual ~PepperPluginDelegateImpl(); |
| 82 | 85 |
| 83 // Attempts to create a PPAPI plugin for the given filepath. On success, it | 86 // Attempts to create a PPAPI plugin for the given filepath. On success, it |
| 84 // will return the newly-created module. | 87 // will return the newly-created module. |
| 85 // | 88 // |
| 86 // There are two reasons for failure. The first is that the plugin isn't | 89 // There are two reasons for failure. The first is that the plugin isn't |
| 87 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set | 90 // a PPAPI plugin. In this case, |*pepper_plugin_was_registered| will be set |
| 88 // to false and the caller may want to fall back on creating an NPAPI plugin. | 91 // to false and the caller may want to fall back on creating an NPAPI plugin. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 310 virtual bool AddNetworkListObserver( | 313 virtual bool AddNetworkListObserver( |
| 311 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 314 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
| 312 virtual void RemoveNetworkListObserver( | 315 virtual void RemoveNetworkListObserver( |
| 313 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 316 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
| 314 | 317 |
| 315 virtual int32_t ShowContextMenu( | 318 virtual int32_t ShowContextMenu( |
| 316 webkit::ppapi::PluginInstance* instance, | 319 webkit::ppapi::PluginInstance* instance, |
| 317 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 320 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 318 const gfx::Point& position) OVERRIDE; | 321 const gfx::Point& position) OVERRIDE; |
| 319 void OnContextMenuClosed( | 322 void OnContextMenuClosed( |
| 320 const content::CustomContextMenuContext& custom_context); | 323 const content::CustomContextMenuContext& custom_context); |
|
jam
2012/03/30 21:50:03
ditto and below
| |
| 321 void OnCustomContextMenuAction( | 324 void OnCustomContextMenuAction( |
| 322 const content::CustomContextMenuContext& custom_context, | 325 const content::CustomContextMenuContext& custom_context, |
| 323 unsigned action); | 326 unsigned action); |
| 324 void CompleteShowContextMenu(int request_id, | 327 void CompleteShowContextMenu(int request_id, |
| 325 bool did_select, | 328 bool did_select, |
| 326 unsigned action); | 329 unsigned action); |
| 327 virtual webkit::ppapi::FullscreenContainer* | 330 virtual webkit::ppapi::FullscreenContainer* |
| 328 CreateFullscreenContainer( | 331 CreateFullscreenContainer( |
| 329 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 332 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 330 virtual gfx::Size GetScreenSize() OVERRIDE; | 333 virtual gfx::Size GetScreenSize() OVERRIDE; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 // Current text input composition text. Empty if no composition is in | 472 // Current text input composition text. Empty if no composition is in |
| 470 // progress. | 473 // progress. |
| 471 string16 composition_text_; | 474 string16 composition_text_; |
| 472 | 475 |
| 473 // The plugin instance that received the last mouse event. It is set to NULL | 476 // The plugin instance that received the last mouse event. It is set to NULL |
| 474 // if the last mouse event went to elements other than Pepper plugins. | 477 // if the last mouse event went to elements other than Pepper plugins. |
| 475 // |last_mouse_event_target_| is not owned by this class. We can know about | 478 // |last_mouse_event_target_| is not owned by this class. We can know about |
| 476 // when it is destroyed via InstanceDeleted(). | 479 // when it is destroyed via InstanceDeleted(). |
| 477 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 480 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
| 478 | 481 |
| 479 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 482 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
|
jam
2012/03/30 21:50:03
ditto
| |
| 480 | 483 |
| 481 scoped_ptr<PepperDeviceEnumerationEventHandler> | 484 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 482 device_enumeration_event_handler_; | 485 device_enumeration_event_handler_; |
| 483 | 486 |
| 484 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 487 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 485 }; | 488 }; |
| 486 | 489 |
| 490 } // namespace content | |
| 491 | |
| 487 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 492 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |