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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 7977017: Never submit: tentative Pepper IME. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 cf8d2c371bfe3d9004a7a9837eef96275cf73fb5..686bb5e4b7d8ca6ed04b369c4e32a776e05e30fe 100644
--- a/content/renderer/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper_plugin_delegate_impl.h
@@ -17,6 +17,7 @@
#include "content/common/content_export.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"
@@ -44,6 +45,7 @@ class PluginModule;
}
namespace WebKit {
+struct WebCompositionUnderline;
class WebFileChooserCompletion;
struct WebFileChooserParams;
}
@@ -165,11 +167,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;
James Su 2011/09/23 01:46:48 should we use ui::Rect here?
+ WebKit::WebTextInputType GetTextInputType() const;
James Su 2011/09/23 01:46:48 should we use ui::TextInputType here?
+ 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);
@@ -341,7 +357,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') | content/renderer/pepper_plugin_delegate_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698