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

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

Issue 2166573003: Track TextInputState from multiple RenderWidgets in TextInputManager (Mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GetTextInputType() must be public to be accessed by the Cocoa view Created 4 years, 5 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/browser/renderer_host/text_input_manager.cc
diff --git a/content/browser/renderer_host/text_input_manager.cc b/content/browser/renderer_host/text_input_manager.cc
index eed20121103d96cdaaec68cdcafea5ecacc241a6..515a4233d53768138147a071be10de2ece7ce48c 100644
--- a/content/browser/renderer_host/text_input_manager.cc
+++ b/content/browser/renderer_host/text_input_manager.cc
@@ -19,6 +19,9 @@ bool AreDifferentTextInputStates(const content::TextInputState& old_state,
return old_state.type != new_state.type || old_state.mode != new_state.mode ||
old_state.flags != new_state.flags ||
old_state.can_compose_inline != new_state.can_compose_inline;
+#elif defined(OS_MACOSX)
+ return old_state.type != new_state.type ||
+ old_state.can_compose_inline != new_state.can_compose_inline;
#else
// TODO(ekaramad): Implement the logic for other platforms (crbug.com/578168).
NOTREACHED();
@@ -233,4 +236,4 @@ TextInputManager::CompositionRangeInfo::CompositionRangeInfo(
TextInputManager::CompositionRangeInfo::~CompositionRangeInfo() {}
-} // namespace content
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698