| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 RenderViewImpl* render_view() { return render_view_; } | 71 RenderViewImpl* render_view() { return render_view_; } |
| 72 | 72 |
| 73 // Sets up the renderer host and out-of-process proxy for an external plugin | 73 // Sets up the renderer host and out-of-process proxy for an external plugin |
| 74 // module. Returns the renderer host, or NULL if it couldn't be created. | 74 // module. Returns the renderer host, or NULL if it couldn't be created. |
| 75 RendererPpapiHost* CreateExternalPluginModule( | 75 RendererPpapiHost* CreateExternalPluginModule( |
| 76 scoped_refptr<webkit::ppapi::PluginModule> module, | 76 scoped_refptr<webkit::ppapi::PluginModule> module, |
| 77 const FilePath& path, | 77 const FilePath& path, |
| 78 ppapi::PpapiPermissions permissions, | 78 ppapi::PpapiPermissions permissions, |
| 79 const IPC::ChannelHandle& channel_handle, | 79 const IPC::ChannelHandle& channel_handle, |
| 80 base::ProcessId plugin_pid, |
| 80 int plugin_child_id); | 81 int plugin_child_id); |
| 81 | 82 |
| 82 // Removes broker from pending_connect_broker_ if present. Returns true if so. | 83 // Removes broker from pending_connect_broker_ if present. Returns true if so. |
| 83 bool StopWaitingForBrokerConnection(PepperBrokerImpl* broker); | 84 bool StopWaitingForBrokerConnection(PepperBrokerImpl* broker); |
| 84 | 85 |
| 85 CONTENT_EXPORT int GetRoutingID() const; | 86 CONTENT_EXPORT int GetRoutingID() const; |
| 86 | 87 |
| 87 typedef base::Callback<void (int /* request_id */, | 88 typedef base::Callback<void (int /* request_id */, |
| 88 bool /* succeeded */, | 89 bool /* succeeded */, |
| 89 const std::string& /* label */)> | 90 const std::string& /* label */)> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 112 const gfx::Rect& paint_bounds, | 113 const gfx::Rect& paint_bounds, |
| 113 TransportDIB** dib, | 114 TransportDIB** dib, |
| 114 gfx::Rect* location, | 115 gfx::Rect* location, |
| 115 gfx::Rect* clip, | 116 gfx::Rect* clip, |
| 116 float* scale_factor) OVERRIDE; | 117 float* scale_factor) OVERRIDE; |
| 117 virtual void OnAsyncFileOpened(base::PlatformFileError error_code, | 118 virtual void OnAsyncFileOpened(base::PlatformFileError error_code, |
| 118 base::PlatformFile file, | 119 base::PlatformFile file, |
| 119 int message_id) OVERRIDE; | 120 int message_id) OVERRIDE; |
| 120 virtual void OnPpapiBrokerChannelCreated( | 121 virtual void OnPpapiBrokerChannelCreated( |
| 121 int request_id, | 122 int request_id, |
| 123 base::ProcessId broker_pid, |
| 122 const IPC::ChannelHandle& handle) OVERRIDE; | 124 const IPC::ChannelHandle& handle) OVERRIDE; |
| 123 virtual void OnPpapiBrokerPermissionResult(int request_id, | 125 virtual void OnPpapiBrokerPermissionResult(int request_id, |
| 124 bool result) OVERRIDE; | 126 bool result) OVERRIDE; |
| 125 virtual void OnSetFocus(bool has_focus) OVERRIDE; | 127 virtual void OnSetFocus(bool has_focus) OVERRIDE; |
| 126 virtual void PageVisibilityChanged(bool is_visible) OVERRIDE; | 128 virtual void PageVisibilityChanged(bool is_visible) OVERRIDE; |
| 127 virtual bool IsPluginFocused() const OVERRIDE; | 129 virtual bool IsPluginFocused() const OVERRIDE; |
| 128 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 130 virtual gfx::Rect GetCaretBounds() const OVERRIDE; |
| 129 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 131 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
| 130 virtual bool IsPluginAcceptingCompositionEvents() const OVERRIDE; | 132 virtual bool IsPluginAcceptingCompositionEvents() const OVERRIDE; |
| 131 virtual bool CanComposeInline() const OVERRIDE; | 133 virtual bool CanComposeInline() const OVERRIDE; |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 scoped_refptr<PepperBrokerImpl> CreateBroker( | 407 scoped_refptr<PepperBrokerImpl> CreateBroker( |
| 406 webkit::ppapi::PluginModule* plugin_module); | 408 webkit::ppapi::PluginModule* plugin_module); |
| 407 | 409 |
| 408 // Create a new HostDispatcher for proxying, hook it to the PluginModule, | 410 // Create a new HostDispatcher for proxying, hook it to the PluginModule, |
| 409 // and perform other common initialization. | 411 // and perform other common initialization. |
| 410 RendererPpapiHost* CreateOutOfProcessModule( | 412 RendererPpapiHost* CreateOutOfProcessModule( |
| 411 webkit::ppapi::PluginModule* module, | 413 webkit::ppapi::PluginModule* module, |
| 412 const FilePath& path, | 414 const FilePath& path, |
| 413 ppapi::PpapiPermissions permissions, | 415 ppapi::PpapiPermissions permissions, |
| 414 const IPC::ChannelHandle& channel_handle, | 416 const IPC::ChannelHandle& channel_handle, |
| 417 base::ProcessId plugin_pid, |
| 415 int plugin_child_id, | 418 int plugin_child_id, |
| 416 bool is_external); | 419 bool is_external); |
| 417 | 420 |
| 418 // Implementation of PepperParentContextProvider. | 421 // Implementation of PepperParentContextProvider. |
| 419 virtual WebGraphicsContext3DCommandBufferImpl* | 422 virtual WebGraphicsContext3DCommandBufferImpl* |
| 420 GetParentContextForPlatformContext3D() OVERRIDE; | 423 GetParentContextForPlatformContext3D() OVERRIDE; |
| 421 | 424 |
| 422 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( | 425 MouseLockDispatcher::LockTarget* GetOrCreateLockTargetAdapter( |
| 423 webkit::ppapi::PluginInstance* instance); | 426 webkit::ppapi::PluginInstance* instance); |
| 424 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); | 427 void UnSetAndDeleteLockTargetAdapter(webkit::ppapi::PluginInstance* instance); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 471 |
| 469 scoped_ptr<PepperDeviceEnumerationEventHandler> | 472 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 470 device_enumeration_event_handler_; | 473 device_enumeration_event_handler_; |
| 471 | 474 |
| 472 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 475 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 473 }; | 476 }; |
| 474 | 477 |
| 475 } // namespace content | 478 } // namespace content |
| 476 | 479 |
| 477 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 480 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |