OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/renderer_host/render_widget_host.h" | 5 #include "content/browser/renderer_host/render_widget_host.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 } | 1070 } |
1071 | 1071 |
1072 void RenderWidgetHost::OnMsgSetCursor(const WebCursor& cursor) { | 1072 void RenderWidgetHost::OnMsgSetCursor(const WebCursor& cursor) { |
1073 if (!view_) { | 1073 if (!view_) { |
1074 return; | 1074 return; |
1075 } | 1075 } |
1076 view_->UpdateCursor(cursor); | 1076 view_->UpdateCursor(cursor); |
1077 } | 1077 } |
1078 | 1078 |
1079 void RenderWidgetHost::OnMsgImeUpdateTextInputState( | 1079 void RenderWidgetHost::OnMsgImeUpdateTextInputState( |
1080 ui::TextInputType type, | 1080 const ViewHostMsg_ImeUpdateTextInputState_Params& params) { |
1081 bool can_compose_inline, | |
1082 const gfx::Rect& caret_rect) { | |
1083 if (view_) | 1081 if (view_) |
1084 view_->ImeUpdateTextInputState(type, can_compose_inline, caret_rect); | 1082 view_->ImeUpdateTextInputState(params.text_input_type, |
| 1083 params.can_compose_inline, |
| 1084 params.caret_bounds, |
| 1085 params.surrounding, |
| 1086 params.cursor, |
| 1087 params.anchor); |
1085 } | 1088 } |
1086 | 1089 |
1087 void RenderWidgetHost::OnMsgImeCompositionRangeChanged(const ui::Range& range) { | 1090 void RenderWidgetHost::OnMsgImeCompositionRangeChanged(const ui::Range& range) { |
1088 if (view_) | 1091 if (view_) |
1089 view_->ImeCompositionRangeChanged(range); | 1092 view_->ImeCompositionRangeChanged(range); |
1090 } | 1093 } |
1091 | 1094 |
1092 void RenderWidgetHost::OnMsgImeCancelComposition() { | 1095 void RenderWidgetHost::OnMsgImeCancelComposition() { |
1093 if (view_) | 1096 if (view_) |
1094 view_->ImeCancelComposition(); | 1097 view_->ImeCancelComposition(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 view_->CreatePluginContainer(deferred_plugin_handles_[i]); | 1248 view_->CreatePluginContainer(deferred_plugin_handles_[i]); |
1246 #endif | 1249 #endif |
1247 } | 1250 } |
1248 | 1251 |
1249 deferred_plugin_handles_.clear(); | 1252 deferred_plugin_handles_.clear(); |
1250 } | 1253 } |
1251 | 1254 |
1252 void RenderWidgetHost::StartUserGesture() { | 1255 void RenderWidgetHost::StartUserGesture() { |
1253 OnUserGesture(); | 1256 OnUserGesture(); |
1254 } | 1257 } |
OLD | NEW |