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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 7621010: Never submit: tentative Pepper IME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: snapshot. Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper_plugin_delegate_impl.h
diff --git a/content/renderer/pepper_plugin_delegate_impl.h b/content/renderer/pepper_plugin_delegate_impl.h
index b254488cf45a68a221affe3bdd8c439c4e99ac5f..8c6fd52400139de4d1b0eaa120d0f5909b3ae963 100644
--- a/content/renderer/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper_plugin_delegate_impl.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "ppapi/proxy/broker_dispatcher.h"
#include "ppapi/proxy/proxy_channel.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h"
#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/ppb_broker_impl.h"
#include "webkit/plugins/ppapi/ppb_flash_menu_impl.h"
@@ -43,6 +44,7 @@ class PluginModule;
}
namespace WebKit {
+struct WebCompositionUnderline;
class WebFileChooserCompletion;
struct WebFileChooserParams;
}
@@ -162,11 +164,25 @@ class PepperPluginDelegateImpl
// notifies all of the plugins.
void OnSetFocus(bool has_focus);
- // Returns whether or not a Pepper plugin is focused.
+ // IME status.
bool IsPluginFocused() const;
+ WebKit::WebRect GetCaretBounds() const;
+ WebKit::WebTextInputType GetTextInputType() const;
+ bool CanComposeInline() const;
+
+ // IME events.
+ void OnImeSetComposition(
+ const string16& text,
+ const std::vector<WebKit::WebCompositionUnderline>& underlines,
+ int selection_start,
+ int selection_end);
+ void OnImeConfirmComposition(const string16& text);
// PluginDelegate implementation.
- virtual void PluginFocusChanged(bool focused) OVERRIDE;
+ virtual void PluginFocusChanged(webkit::ppapi::PluginInstance* instance,
+ bool focused) OVERRIDE;
+ virtual void PluginTextInputTypeChanged(
+ webkit::ppapi::PluginInstance* instance) OVERRIDE;
virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance);
virtual void InstanceCreated(
webkit::ppapi::PluginInstance* instance);
@@ -338,7 +354,10 @@ class PepperPluginDelegateImpl
BrokerMap pending_connect_broker_;
// Whether or not the focus is on a PPAPI plugin
- bool is_pepper_plugin_focused_;
+ webkit::ppapi::PluginInstance* focused_plugin_;
+
+ // Current text input composition text. Empty if no composition is on process.
+ string16 composition_text_;
// Set of instances to receive a notification when the enterprise policy has
// been updated.
« no previous file with comments | « no previous file | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698