Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10391101: Test for Pepper IME events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 namespace skia { 65 namespace skia {
66 class PlatformCanvas; 66 class PlatformCanvas;
67 } 67 }
68 68
69 namespace WebKit { 69 namespace WebKit {
70 class WebFileChooserCompletion; 70 class WebFileChooserCompletion;
71 class WebGamepads; 71 class WebGamepads;
72 class WebPlugin; 72 class WebPlugin;
73 struct WebCompositionUnderline;
73 struct WebCursorInfo; 74 struct WebCursorInfo;
74 struct WebFileChooserParams; 75 struct WebFileChooserParams;
75 } 76 }
76 77
77 namespace webkit_glue { 78 namespace webkit_glue {
78 class ClipboardClient; 79 class ClipboardClient;
79 class P2PTransport; 80 class P2PTransport;
80 class NetworkListObserver; 81 class NetworkListObserver;
81 } // namespace webkit_glue 82 } // namespace webkit_glue
82 83
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 webkit::ppapi::PluginInstance* instance) = 0; 310 webkit::ppapi::PluginInstance* instance) = 0;
310 // Notification that the caret position in the given plugin is changed. 311 // Notification that the caret position in the given plugin is changed.
311 virtual void PluginCaretPositionChanged( 312 virtual void PluginCaretPositionChanged(
312 webkit::ppapi::PluginInstance* instance) = 0; 313 webkit::ppapi::PluginInstance* instance) = 0;
313 // Notification that the plugin requested to cancel the current composition. 314 // Notification that the plugin requested to cancel the current composition.
314 virtual void PluginRequestedCancelComposition( 315 virtual void PluginRequestedCancelComposition(
315 webkit::ppapi::PluginInstance* instance) = 0; 316 webkit::ppapi::PluginInstance* instance) = 0;
316 // Notification that the text selection in the given plugin is changed. 317 // Notification that the text selection in the given plugin is changed.
317 virtual void PluginSelectionChanged( 318 virtual void PluginSelectionChanged(
318 webkit::ppapi::PluginInstance* instance) = 0; 319 webkit::ppapi::PluginInstance* instance) = 0;
320 // Requests simulating IME events for testing purpose.
321 virtual void SimulateImeSetComposition(
322 const string16& text,
323 const std::vector<WebKit::WebCompositionUnderline>& underlines,
324 int selection_start,
325 int selection_end) = 0;
326 virtual void SimulateImeConfirmComposition(const string16& text) = 0;
319 327
320 // Notification that the given plugin has crashed. When a plugin crashes, all 328 // Notification that the given plugin has crashed. When a plugin crashes, all
321 // instances associated with that plugin will notify that they've crashed via 329 // instances associated with that plugin will notify that they've crashed via
322 // this function. 330 // this function.
323 virtual void PluginCrashed(PluginInstance* instance) = 0; 331 virtual void PluginCrashed(PluginInstance* instance) = 0;
324 332
325 // Indicates that the given instance has been created. 333 // Indicates that the given instance has been created.
326 virtual void InstanceCreated(PluginInstance* instance) = 0; 334 virtual void InstanceCreated(PluginInstance* instance) = 0;
327 335
328 // Indicates that the given instance is being destroyed. This is called from 336 // Indicates that the given instance is being destroyed. This is called from
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 635 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
628 636
629 // Returns a Device ID 637 // Returns a Device ID
630 virtual std::string GetDeviceID() = 0; 638 virtual std::string GetDeviceID() = 0;
631 }; 639 };
632 640
633 } // namespace ppapi 641 } // namespace ppapi
634 } // namespace webkit 642 } // namespace webkit
635 643
636 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 644 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698