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

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

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.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index e4681c9c4b879edca18aa9d1acec1878354788c1..500b94fc33368081e830229444c76525c87728dc 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -614,6 +614,12 @@ void PepperPluginDelegateImpl::PluginRequestedCancelComposition(
render_view_->PpapiPluginCancelComposition();
}
+void PepperPluginDelegateImpl::PluginSelectionChanged(
+ webkit::ppapi::PluginInstance* instance) {
+ if (focused_plugin_ == instance && render_view_)
+ render_view_->PpapiPluginSelectionChanged();
+}
+
void PepperPluginDelegateImpl::OnImeSetComposition(
const string16& text,
const std::vector<WebKit::WebCompositionUnderline>& underlines,
@@ -685,6 +691,13 @@ ui::TextInputType PepperPluginDelegateImpl::GetTextInputType() const {
return focused_plugin_->text_input_type();
}
+void PepperPluginDelegateImpl::GetSurroundingText(string16* text,
+ ui::Range* range) const {
+ if (!focused_plugin_)
+ return;
+ return focused_plugin_->GetSurroundingText(text, range);
+}
+
bool PepperPluginDelegateImpl::IsPluginAcceptingCompositionEvents() const {
if (!focused_plugin_)
return false;

Powered by Google App Engine
This is Rietveld 408576698