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