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

Unified Diff: content/browser/renderer_host/render_widget_host_view_guest.cc

Issue 103403006: Implement Input Method related WebPlugin interface for browser plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fsamuel's review fix Created 7 years 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/browser/renderer_host/render_widget_host_view_guest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_guest.cc b/content/browser/renderer_host/render_widget_host_view_guest.cc
index 49562c8dad7e4a074555919d0bfdbbee6bea241d..f43b3217214cfb2c0ba08c5f5eccda75fb3a6b5e 100644
--- a/content/browser/renderer_host/render_widget_host_view_guest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_guest.cc
@@ -301,6 +301,7 @@ void RenderWidgetHostViewGuest::TextInputTypeChanged(
ui::TextInputType type,
ui::TextInputMode input_mode,
bool can_compose_inline) {
+ // Forward the information to embedding RWHV.
RenderWidgetHostViewPort::FromRWHV(
guest_->GetEmbedderRenderWidgetHostView())->
TextInputTypeChanged(type, input_mode, can_compose_inline);
@@ -333,7 +334,14 @@ void RenderWidgetHostViewGuest::SelectionChanged(const base::string16& text,
void RenderWidgetHostViewGuest::SelectionBoundsChanged(
const ViewHostMsg_SelectionBounds_Params& params) {
- platform_view_->SelectionBoundsChanged(params);
+ RenderWidgetHostViewPort* rwhv = static_cast<RenderWidgetHostViewPort*>(
+ guest_->GetEmbedderRenderWidgetHostView());
+ if (rwhv) {
Fady Samuel 2013/12/11 01:38:06 Early exit preferred: if (!rwhv) return;
kochi 2013/12/11 04:05:07 Done.
+ ViewHostMsg_SelectionBounds_Params guest_params(params);
+ guest_params.anchor_rect = guest_->ToGuestRect(params.anchor_rect);
+ guest_params.focus_rect = guest_->ToGuestRect(params.focus_rect);
+ rwhv->SelectionBoundsChanged(guest_params);
+ }
}
void RenderWidgetHostViewGuest::ScrollOffsetChanged() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/common/browser_plugin/browser_plugin_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698