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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 8769003: Pepper IME API for surrounding text retrieval. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort. Created 8 years, 9 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/pepper_plugin_delegate_impl.h
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.h b/content/renderer/pepper/pepper_plugin_delegate_impl.h
index e8164c0e84ee3be319cf4a92a552a21caf3970cd..08f50a7b4390a27a0886b3b6c6a29fb305467603 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.h
@@ -44,6 +44,10 @@ namespace IPC {
struct ChannelHandle;
}
+namespace ui {
+class Range;
+}
+
namespace webkit {
struct WebPluginInfo;
namespace ppapi {
@@ -127,6 +131,7 @@ class PepperPluginDelegateImpl
ui::TextInputType GetTextInputType() const;
bool IsPluginAcceptingCompositionEvents() const;
bool CanComposeInline() const;
+ void GetSurroundingText(string16* text, ui::Range* range) const;
// IME events.
void OnImeSetComposition(
@@ -148,6 +153,8 @@ class PepperPluginDelegateImpl
webkit::ppapi::PluginInstance* instance) OVERRIDE;
virtual void PluginRequestedCancelComposition(
webkit::ppapi::PluginInstance* instance) OVERRIDE;
+ virtual void PluginSelectionChanged(
+ webkit::ppapi::PluginInstance* instance) OVERRIDE;
virtual void PluginCrashed(webkit::ppapi::PluginInstance* instance) OVERRIDE;
virtual void InstanceCreated(
webkit::ppapi::PluginInstance* instance) OVERRIDE;
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | content/renderer/render_view_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698