| 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 <set> | 9 #include <set> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 // PluginDelegate implementation. | 198 // PluginDelegate implementation. |
| 199 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance, | 199 virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance, |
| 200 bool focused) OVERRIDE; | 200 bool focused) OVERRIDE; |
| 201 virtual void PluginTextInputTypeChanged( | 201 virtual void PluginTextInputTypeChanged( |
| 202 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 202 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 203 virtual void PluginCaretPositionChanged( | 203 virtual void PluginCaretPositionChanged( |
| 204 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 204 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 205 virtual void PluginRequestedCancelComposition( | 205 virtual void PluginRequestedCancelComposition( |
| 206 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 206 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 207 virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance); | 207 virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 208 virtual void InstanceCreated( | 208 virtual void InstanceCreated( |
| 209 webkit::ppapi::PluginInstance* instance); | 209 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 210 virtual void InstanceDeleted( | 210 virtual void InstanceDeleted( |
| 211 webkit::ppapi::PluginInstance* instance); | 211 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 212 virtual SkBitmap* GetSadPluginBitmap(); | 212 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; |
| 213 virtual PlatformAudio* CreateAudio( | 213 virtual PlatformAudio* CreateAudio( |
| 214 uint32_t sample_rate, | 214 uint32_t sample_rate, |
| 215 uint32_t sample_count, | 215 uint32_t sample_count, |
| 216 PlatformAudio::Client* client); | 216 PlatformAudioCommonClient* client) OVERRIDE; |
| 217 virtual PlatformImage2D* CreateImage2D(int width, int height); | 217 virtual PlatformAudioInput* CreateAudioInput( |
| 218 virtual PlatformContext3D* CreateContext3D(); | 218 uint32_t sample_rate, |
| 219 uint32_t sample_count, |
| 220 PlatformAudioCommonClient* client) OVERRIDE; |
| 221 virtual PlatformImage2D* CreateImage2D(int width, int height) OVERRIDE; |
| 222 virtual PlatformContext3D* CreateContext3D() OVERRIDE; |
| 219 virtual PlatformVideoCapture* CreateVideoCapture( | 223 virtual PlatformVideoCapture* CreateVideoCapture( |
| 220 media::VideoCapture::EventHandler* handler) OVERRIDE; | 224 media::VideoCapture::EventHandler* handler) OVERRIDE; |
| 221 virtual PlatformVideoDecoder* CreateVideoDecoder( | 225 virtual PlatformVideoDecoder* CreateVideoDecoder( |
| 222 media::VideoDecodeAccelerator::Client* client, | 226 media::VideoDecodeAccelerator::Client* client, |
| 223 int32 command_buffer_route_id); | 227 int32 command_buffer_route_id) OVERRIDE; |
| 224 virtual PpapiBroker* ConnectToPpapiBroker( | 228 virtual PpapiBroker* ConnectToPpapiBroker( |
| 225 webkit::ppapi::PPB_Broker_Impl* client); | 229 webkit::ppapi::PPB_Broker_Impl* client) OVERRIDE; |
| 226 virtual void NumberOfFindResultsChanged(int identifier, | 230 virtual void NumberOfFindResultsChanged(int identifier, |
| 227 int total, | 231 int total, |
| 228 bool final_result); | 232 bool final_result) OVERRIDE; |
| 229 virtual void SelectedFindResultChanged(int identifier, int index); | 233 virtual void SelectedFindResultChanged(int identifier, int index) OVERRIDE; |
| 230 virtual bool RunFileChooser( | 234 virtual bool RunFileChooser( |
| 231 const WebKit::WebFileChooserParams& params, | 235 const WebKit::WebFileChooserParams& params, |
| 232 WebKit::WebFileChooserCompletion* chooser_completion); | 236 WebKit::WebFileChooserCompletion* chooser_completion) OVERRIDE; |
| 233 virtual bool AsyncOpenFile(const FilePath& path, | 237 virtual bool AsyncOpenFile(const FilePath& path, |
| 234 int flags, | 238 int flags, |
| 235 const AsyncOpenFileCallback& callback); | 239 const AsyncOpenFileCallback& callback) OVERRIDE; |
| 236 virtual bool AsyncOpenFileSystemURL( | 240 virtual bool AsyncOpenFileSystemURL( |
| 237 const GURL& path, | 241 const GURL& path, |
| 238 int flags, | 242 int flags, |
| 239 const AsyncOpenFileCallback& callback) OVERRIDE; | 243 const AsyncOpenFileCallback& callback) OVERRIDE; |
| 240 virtual bool OpenFileSystem( | 244 virtual bool OpenFileSystem( |
| 241 const GURL& url, | 245 const GURL& url, |
| 242 fileapi::FileSystemType type, | 246 fileapi::FileSystemType type, |
| 243 long long size, | 247 long long size, |
| 244 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; | 248 fileapi::FileSystemCallbackDispatcher* dispatcher) OVERRIDE; |
| 245 virtual bool MakeDirectory( | 249 virtual bool MakeDirectory( |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 // The plugin instance that received the last mouse event. It is set to NULL | 407 // The plugin instance that received the last mouse event. It is set to NULL |
| 404 // if the last mouse event went to elements other than Pepper plugins. | 408 // if the last mouse event went to elements other than Pepper plugins. |
| 405 // |last_mouse_event_target_| is not owned by this class. We can know about | 409 // |last_mouse_event_target_| is not owned by this class. We can know about |
| 406 // when it is destroyed via InstanceDeleted(). | 410 // when it is destroyed via InstanceDeleted(). |
| 407 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 411 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
| 408 | 412 |
| 409 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 413 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 410 }; | 414 }; |
| 411 | 415 |
| 412 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 416 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |