summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_proxy.h
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 23:31:55 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-15 23:31:55 +0000
commit935d63deb04754a6c831c5a5edfef35f71c0b805 (patch)
tree9ebbc892c6bd4abb5496bf246d0677a1e7f3c571 /chrome/renderer/webplugin_delegate_proxy.h
parentdf39d8740b4de18d5a57ec3a9fc519d89b26b1cc (diff)
downloadchromium_src-935d63deb04754a6c831c5a5edfef35f71c0b805.zip
chromium_src-935d63deb04754a6c831c5a5edfef35f71c0b805.tar.gz
chromium_src-935d63deb04754a6c831c5a5edfef35f71c0b805.tar.bz2
Implement IME for Mac plugins using the Cocoa event model on 10.6
Based on the implementation of Gecko's Cocoa event model IME handling on 64-bit, but modified to fit Chrome's cross-process event handling. Because NSTextInputContext is 10.6+, 10.5 will need a cempletely different implementation. BUG=30905 TEST=Plugins implementing the updated NPAPI Cocoa IME spec should handle IME on 10.6. Review URL: http://codereview.chromium.org/3808001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_proxy.h')
-rw-r--r--chrome/renderer/webplugin_delegate_proxy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/renderer/webplugin_delegate_proxy.h b/chrome/renderer/webplugin_delegate_proxy.h
index 0cabc1b..204cf4d 100644
--- a/chrome/renderer/webplugin_delegate_proxy.h
+++ b/chrome/renderer/webplugin_delegate_proxy.h
@@ -88,6 +88,8 @@ class WebPluginDelegateProxy
virtual void SetContainerVisibility(bool is_visible);
// Informs the plugin that its enclosing window's frame has changed.
virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame);
+ // Informs the plugin that text is avaiable from plugin IME.
+ virtual void ImeCompositionConfirmed(const string16& text, int plugin_id);
#endif
// IPC::Channel::Listener implementation:
@@ -160,6 +162,7 @@ class WebPluginDelegateProxy
void OnDeferResourceLoading(unsigned long resource_id, bool defer);
#if defined(OS_MACOSX)
+ void OnSetImeEnabled(bool enabled);
void OnBindFakePluginWindowHandle(bool opaque);
void OnUpdateGeometry_ACK(int ack_key);
void OnAcceleratedSurfaceSetIOSurface(gfx::PluginWindowHandle window,