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

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

Issue 10391101: Test for Pepper IME events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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 c6bad77752ded53feb8f7a19c8b69cb8741e60d0..3a8385dafb2eaff8fe94f6b479446cf216b662ed 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -428,6 +428,22 @@ void PepperPluginDelegateImpl::PluginSelectionChanged(
render_view_->PpapiPluginSelectionChanged();
}
+void PepperPluginDelegateImpl::SimulateImeSetComposition(
+ const string16& text,
+ const std::vector<WebKit::WebCompositionUnderline>& underlines,
+ int selection_start,
+ int selection_end) {
+ if (render_view_)
yzshen1 2012/05/15 18:03:48 nit: {} for multiple-line body.
kinaba 2012/05/16 10:13:57 Done.
+ render_view_->SimulateImeSetComposition(
+ text, underlines, selection_start, selection_end);
+}
+
+void PepperPluginDelegateImpl::SimulateImeConfirmComposition(
+ const string16& text) {
+ if (render_view_)
+ render_view_->SimulateImeConfirmComposition(text, ui::Range());
+}
+
void PepperPluginDelegateImpl::OnImeSetComposition(
const string16& text,
const std::vector<WebKit::WebCompositionUnderline>& underlines,

Powered by Google App Engine
This is Rietveld 408576698