| 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool focused) = 0; | 286 bool focused) = 0; |
| 287 // Notification that the text input status of the given plugin is changed. | 287 // Notification that the text input status of the given plugin is changed. |
| 288 virtual void PluginTextInputTypeChanged( | 288 virtual void PluginTextInputTypeChanged( |
| 289 webkit::ppapi::PluginInstance* instance) = 0; | 289 webkit::ppapi::PluginInstance* instance) = 0; |
| 290 // Notification that the caret position in the given plugin is changed. | 290 // Notification that the caret position in the given plugin is changed. |
| 291 virtual void PluginCaretPositionChanged( | 291 virtual void PluginCaretPositionChanged( |
| 292 webkit::ppapi::PluginInstance* instance) = 0; | 292 webkit::ppapi::PluginInstance* instance) = 0; |
| 293 // Notification that the plugin requested to cancel the current composition. | 293 // Notification that the plugin requested to cancel the current composition. |
| 294 virtual void PluginRequestedCancelComposition( | 294 virtual void PluginRequestedCancelComposition( |
| 295 webkit::ppapi::PluginInstance* instance) = 0; | 295 webkit::ppapi::PluginInstance* instance) = 0; |
| 296 // Notification that the text selection in the given plugin is changed. |
| 297 virtual void PluginSelectionChanged( |
| 298 webkit::ppapi::PluginInstance* instance) = 0; |
| 296 | 299 |
| 297 // Notification that the given plugin has crashed. When a plugin crashes, all | 300 // Notification that the given plugin has crashed. When a plugin crashes, all |
| 298 // instances associated with that plugin will notify that they've crashed via | 301 // instances associated with that plugin will notify that they've crashed via |
| 299 // this function. | 302 // this function. |
| 300 virtual void PluginCrashed(PluginInstance* instance) = 0; | 303 virtual void PluginCrashed(PluginInstance* instance) = 0; |
| 301 | 304 |
| 302 // Indicates that the given instance has been created. | 305 // Indicates that the given instance has been created. |
| 303 virtual void InstanceCreated(PluginInstance* instance) = 0; | 306 virtual void InstanceCreated(PluginInstance* instance) = 0; |
| 304 | 307 |
| 305 // Indicates that the given instance is being destroyed. This is called from | 308 // Indicates that the given instance is being destroyed. This is called from |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 const EnumerateDevicesCallback& callback) = 0; | 585 const EnumerateDevicesCallback& callback) = 0; |
| 583 // Create a ClipboardClient for writing to the clipboard. The caller will own | 586 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 584 // the pointer to this. | 587 // the pointer to this. |
| 585 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 588 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 586 }; | 589 }; |
| 587 | 590 |
| 588 } // namespace ppapi | 591 } // namespace ppapi |
| 589 } // namespace webkit | 592 } // namespace webkit |
| 590 | 593 |
| 591 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 594 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |