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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 virtual void PluginCaretPositionChanged( | 355 virtual void PluginCaretPositionChanged( |
356 webkit::ppapi::PluginInstance* instance) = 0; | 356 webkit::ppapi::PluginInstance* instance) = 0; |
357 // Notification that the plugin requested to cancel the current composition. | 357 // Notification that the plugin requested to cancel the current composition. |
358 virtual void PluginRequestedCancelComposition( | 358 virtual void PluginRequestedCancelComposition( |
359 webkit::ppapi::PluginInstance* instance) = 0; | 359 webkit::ppapi::PluginInstance* instance) = 0; |
360 // Notification that the text selection in the given plugin is changed. | 360 // Notification that the text selection in the given plugin is changed. |
361 virtual void PluginSelectionChanged( | 361 virtual void PluginSelectionChanged( |
362 webkit::ppapi::PluginInstance* instance) = 0; | 362 webkit::ppapi::PluginInstance* instance) = 0; |
363 // Requests simulating IME events for testing purpose. | 363 // Requests simulating IME events for testing purpose. |
364 virtual void SimulateImeSetComposition( | 364 virtual void SimulateImeSetComposition( |
365 const string16& text, | 365 const base::string16& text, |
366 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 366 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
367 int selection_start, | 367 int selection_start, |
368 int selection_end) = 0; | 368 int selection_end) = 0; |
369 virtual void SimulateImeConfirmComposition(const string16& text) = 0; | 369 virtual void SimulateImeConfirmComposition(const base::string16& text) = 0; |
370 | 370 |
371 // Notification that the given plugin has crashed. When a plugin crashes, all | 371 // Notification that the given plugin has crashed. When a plugin crashes, all |
372 // instances associated with that plugin will notify that they've crashed via | 372 // instances associated with that plugin will notify that they've crashed via |
373 // this function. | 373 // this function. |
374 virtual void PluginCrashed(PluginInstance* instance) = 0; | 374 virtual void PluginCrashed(PluginInstance* instance) = 0; |
375 | 375 |
376 // Indicates that the given instance has been created. | 376 // Indicates that the given instance has been created. |
377 virtual void InstanceCreated(PluginInstance* instance) = 0; | 377 virtual void InstanceCreated(PluginInstance* instance) = 0; |
378 | 378 |
379 // Indicates that the given instance is being destroyed. This is called from | 379 // 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... |
656 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 656 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
657 base::PlatformFile handle, | 657 base::PlatformFile handle, |
658 base::ProcessId target_process_id, | 658 base::ProcessId target_process_id, |
659 bool should_close_source) const = 0; | 659 bool should_close_source) const = 0; |
660 }; | 660 }; |
661 | 661 |
662 } // namespace ppapi | 662 } // namespace ppapi |
663 } // namespace webkit | 663 } // namespace webkit |
664 | 664 |
665 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 665 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |