| 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_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace base { | 24 namespace base { |
| 25 class FilePath; | 25 class FilePath; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ppapi { | 28 namespace ppapi { |
| 29 class PpapiPermissions; | 29 class PpapiPermissions; |
| 30 struct URLResponseInfoData; | 30 struct URLResponseInfoData; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace WebKit { | 33 namespace WebKit { |
| 34 class WebGamepads; | |
| 35 class WebURLResponse; | 34 class WebURLResponse; |
| 36 struct WebCompositionUnderline; | 35 struct WebCompositionUnderline; |
| 37 struct WebCursorInfo; | 36 struct WebCursorInfo; |
| 38 } | 37 } |
| 39 | 38 |
| 40 namespace content { | 39 namespace content { |
| 41 class ContextProviderCommandBuffer; | 40 class ContextProviderCommandBuffer; |
| 42 class GamepadSharedMemoryReader; | |
| 43 class PepperBroker; | 41 class PepperBroker; |
| 44 class PluginModule; | 42 class PluginModule; |
| 45 class PPB_Broker_Impl; | 43 class PPB_Broker_Impl; |
| 46 class RenderViewImpl; | 44 class RenderViewImpl; |
| 47 struct WebPluginInfo; | 45 struct WebPluginInfo; |
| 48 | 46 |
| 49 class PepperHelperImpl : public PepperHelper, | 47 class PepperHelperImpl : public PepperHelper, |
| 50 public base::SupportsWeakPtr<PepperHelperImpl>, | 48 public base::SupportsWeakPtr<PepperHelperImpl>, |
| 51 public RenderViewObserver { | 49 public RenderViewObserver { |
| 52 public: | 50 public: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void PluginSelectionChanged(PepperPluginInstanceImpl* instance); | 87 void PluginSelectionChanged(PepperPluginInstanceImpl* instance); |
| 90 | 88 |
| 91 // Indicates that the given instance has been created. | 89 // Indicates that the given instance has been created. |
| 92 void InstanceCreated(PepperPluginInstanceImpl* instance); | 90 void InstanceCreated(PepperPluginInstanceImpl* instance); |
| 93 | 91 |
| 94 // Indicates that the given instance is being destroyed. This is called from | 92 // Indicates that the given instance is being destroyed. This is called from |
| 95 // the destructor, so it's important that the instance is not dereferenced | 93 // the destructor, so it's important that the instance is not dereferenced |
| 96 // from this call. | 94 // from this call. |
| 97 void InstanceDeleted(PepperPluginInstanceImpl* instance); | 95 void InstanceDeleted(PepperPluginInstanceImpl* instance); |
| 98 | 96 |
| 99 // Retrieve current gamepad data. | |
| 100 void SampleGamepads(WebKit::WebGamepads* data); | |
| 101 | |
| 102 // Sets up the renderer host and out-of-process proxy for an external plugin | 97 // Sets up the renderer host and out-of-process proxy for an external plugin |
| 103 // module. Returns the renderer host, or NULL if it couldn't be created. | 98 // module. Returns the renderer host, or NULL if it couldn't be created. |
| 104 RendererPpapiHost* CreateExternalPluginModule( | 99 RendererPpapiHost* CreateExternalPluginModule( |
| 105 scoped_refptr<PluginModule> module, | 100 scoped_refptr<PluginModule> module, |
| 106 const base::FilePath& path, | 101 const base::FilePath& path, |
| 107 ::ppapi::PpapiPermissions permissions, | 102 ::ppapi::PpapiPermissions permissions, |
| 108 const IPC::ChannelHandle& channel_handle, | 103 const IPC::ChannelHandle& channel_handle, |
| 109 base::ProcessId plugin_pid, | 104 base::ProcessId plugin_pid, |
| 110 int plugin_child_id); | 105 int plugin_child_id); |
| 111 | 106 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // Current text input composition text. Empty if no composition is in | 188 // Current text input composition text. Empty if no composition is in |
| 194 // progress. | 189 // progress. |
| 195 string16 composition_text_; | 190 string16 composition_text_; |
| 196 | 191 |
| 197 // The plugin instance that received the last mouse event. It is set to NULL | 192 // The plugin instance that received the last mouse event. It is set to NULL |
| 198 // if the last mouse event went to elements other than Pepper plugins. | 193 // if the last mouse event went to elements other than Pepper plugins. |
| 199 // |last_mouse_event_target_| is not owned by this class. We can know about | 194 // |last_mouse_event_target_| is not owned by this class. We can know about |
| 200 // when it is destroyed via InstanceDeleted(). | 195 // when it is destroyed via InstanceDeleted(). |
| 201 PepperPluginInstanceImpl* last_mouse_event_target_; | 196 PepperPluginInstanceImpl* last_mouse_event_target_; |
| 202 | 197 |
| 203 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | |
| 204 | |
| 205 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; | 198 scoped_refptr<ContextProviderCommandBuffer> offscreen_context3d_; |
| 206 | 199 |
| 207 DISALLOW_COPY_AND_ASSIGN(PepperHelperImpl); | 200 DISALLOW_COPY_AND_ASSIGN(PepperHelperImpl); |
| 208 }; | 201 }; |
| 209 | 202 |
| 210 } // namespace content | 203 } // namespace content |
| 211 | 204 |
| 212 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ | 205 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_H_ |
| OLD | NEW |