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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 1883293006: Revert of Add the missing text input state tracking code to RenderWidgetHostViewMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index 6cd3067aa74d11f04de0098a0c8d1ccbd84fc3bf..0ec6ad37eb3726186dbb296359400816f0b33e61 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -1015,13 +1015,6 @@
if (!text_input_state_changed)
return;
- // TODO(ekaramad): The state tracking is all in WebContentsImpl now. Remove
- // these member variables (crbug.com/602427).
- const TextInputState* state =
- render_widget_host_->delegate()->GetTextInputState();
- text_input_type_ = state->type;
- can_compose_inline_ = state->can_compose_inline;
-
if (HasFocus()) {
SetTextInputActive(true);
@@ -1030,7 +1023,9 @@
[NSApp updateWindows];
#ifndef __LP64__
- UseInputWindow(TSMGetActiveDocument(), !can_compose_inline_);
+ UseInputWindow(TSMGetActiveDocument(), !render_widget_host_->delegate()
+ ->GetTextInputState()
+ ->can_compose_inline);
#endif
}
}
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698