summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/plugin_delegate.h
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 11:38:32 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 11:38:32 +0000
commit73bf95813e1c23c5fb2eaadc7e88ce248084b083 (patch)
treee1d5ba6ff5d4647b5de4d908394026bbeb5fa0d4 /webkit/plugins/ppapi/plugin_delegate.h
parent137bc957b93eae5f02969880b89c15e48d02fd86 (diff)
downloadchromium_src-73bf95813e1c23c5fb2eaadc7e88ce248084b083.zip
chromium_src-73bf95813e1c23c5fb2eaadc7e88ce248084b083.tar.gz
chromium_src-73bf95813e1c23c5fb2eaadc7e88ce248084b083.tar.bz2
Implement Pepper IME API.
BUG=59425 TEST=Build chrome and ppapi_example_ime, Confirm "out/Release/chrome --register-pepper-plugins='out/Release/lib/libppapi_example_ime.so;application/x-ppapi-example' ppapi/examples/ime/ime.html" works. This CL is the last part for adding the basic IME support for PPAPI, preceded by the previous two changes codereview.chromium.org/7882004 (API declarations) and codereview.chromium.org/7978019 (thunk and proxy implementation). This CL comes with the actual Chrome-side implementation of the API with an example to show how to use IME in PPAPI. Keep in mind the current implementation still not reached the point of "the complete" set of IME APIs yet. - Advanced features in design doc (like surrounding text retrieval) is not available. - DOM and PPAPI composition events are not converted each other. Rather, it aims to provide basic set of functions just needed to implement inline composition in plugins. Review URL: http://codereview.chromium.org/8073021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105056 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/plugin_delegate.h')
-rw-r--r--webkit/plugins/ppapi/plugin_delegate.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 0cbeabf..3200431 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -246,7 +246,14 @@ class PluginDelegate {
};
// Notification that the given plugin is focused or unfocused.
- virtual void PluginFocusChanged(bool focused) = 0;
+ virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance,
+ bool focused) = 0;
+ // Notification that the text input status of the given plugin is changed.
+ virtual void PluginTextInputTypeChanged(
+ webkit::ppapi::PluginInstance* instance) = 0;
+ // Notification that the plugin requested to cancel the current composition.
+ virtual void PluginRequestedCancelComposition(
+ webkit::ppapi::PluginInstance* instance) = 0;
// Notification that the given plugin has crashed. When a plugin crashes, all
// instances associated with that plugin will notify that they've crashed via