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

Unified Diff: content/renderer/render_widget.cc

Issue 2681833006: [Android] Restart input only once on focus change (Closed)
Patch Set: fixed nit Created 3 years, 10 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 36baa7d16f680e4c03d1381814a7452e3295e3ae..0b42e605ded890b67dcbb37945f6a3050ff464dd 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1055,6 +1055,14 @@ void RenderWidget::ShowVirtualKeyboard() {
UpdateTextInputStateInternal(true, false);
}
+void RenderWidget::ClearTextInputState() {
+ text_input_info_ = blink::WebTextInputInfo();
+ text_input_type_ = ui::TextInputType::TEXT_INPUT_TYPE_NONE;
+ text_input_mode_ = ui::TextInputMode::TEXT_INPUT_MODE_DEFAULT;
+ can_compose_inline_ = false;
+ text_input_flags_ = 0;
+}
+
void RenderWidget::UpdateTextInputState() {
UpdateTextInputStateInternal(false, false);
}
@@ -2130,13 +2138,6 @@ blink::WebScreenInfo RenderWidget::screenInfo() {
return web_screen_info;
}
-void RenderWidget::resetInputMethod() {
- ImeEventGuard guard(this);
- Send(new InputHostMsg_ImeCancelComposition(routing_id()));
-
- UpdateCompositionInfo(false /* not an immediate request */);
-}
-
#if defined(OS_ANDROID)
void RenderWidget::showUnhandledTapUIIfNeeded(
const WebPoint& tapped_position,
« no previous file with comments | « content/renderer/render_widget.h ('k') | third_party/WebKit/Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698