summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper_plugin_delegate_impl.h
diff options
context:
space:
mode:
authorkinaba@google.com <kinaba@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-30 07:05:57 +0000
committerkinaba@google.com <kinaba@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-30 07:05:57 +0000
commit56ea1a632a03756008dcc5b608f87704c231d735 (patch)
tree8a7c4784c2d42a94c8def3f9028b8c5d898f8d5b /content/renderer/pepper_plugin_delegate_impl.h
parent9522abfe553ccbe114e94e13aceaa82b0a8e4bf7 (diff)
downloadchromium_src-56ea1a632a03756008dcc5b608f87704c231d735.zip
chromium_src-56ea1a632a03756008dcc5b608f87704c231d735.tar.gz
chromium_src-56ea1a632a03756008dcc5b608f87704c231d735.tar.bz2
The first step for enabling off-the-spot IME on Pepper on ChromeOS/Linux.
BUG=83684 TEST=Go to http://weathernews.jp with pepper flash plug in enabled. Focus the text input field and type something with IME on. Verify that the candidate window is shown somewhere on the screen and commited text is entered in the text field. This patch is the first step toward off-the-spot IME on Pepper plugins hosted on RenderWidgetHostViewGtk. This patch: - Makes it possible to turn on/off IME when a plugin is focused. - Makes it possible for the plugin to receive committed results from IME. What are NOT IN this patch (and what I hope to improve in forthcoming separate patches) are: - Proper placement of the candidate window. - Showing preedit texts. Review URL: http://codereview.chromium.org/6990072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87215 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper_plugin_delegate_impl.h')
-rw-r--r--content/renderer/pepper_plugin_delegate_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/renderer/pepper_plugin_delegate_impl.h b/content/renderer/pepper_plugin_delegate_impl.h
index f75121d..8f66680 100644
--- a/content/renderer/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper_plugin_delegate_impl.h
@@ -161,7 +161,11 @@ class PepperPluginDelegateImpl
// notifies all of the plugins.
void OnSetFocus(bool has_focus);
+ // Returns whether or not a Pepper plugin is focused.
+ bool IsPluginFocused() const;
+
// PluginDelegate implementation.
+ virtual void PluginFocusChanged(bool focused) OVERRIDE;
virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance);
virtual void InstanceCreated(
webkit::ppapi::PluginInstance* instance);
@@ -303,6 +307,9 @@ class PepperPluginDelegateImpl
typedef IDMap<scoped_refptr<PpapiBrokerImpl>, IDMapOwnPointer> BrokerMap;
BrokerMap pending_connect_broker_;
+ // Whether or not the focus is on a PPAPI plugin
+ bool is_pepper_plugin_focused_;
+
DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
};