DescriptionFix Views Combobox and Tree View text input.
Make InputMethodBridge not a TextInputClient, use actual clients.
InputMethodBridge was simply forwarding to actual client views.
(e.g. NativeTextfieldViews and PrefixSelector for TreeView/Combobox)
Remove Views::InputMethod::On[Focus|Blur]() and their calls.
Simply update the host's TextInputClient on View focus changes.
Fixes r216992's regression (input not sent to Combobox/TreeView).
The IME mode indicator also now shows in dialogs more often :)
Ignore Widget activation in InputMethodBase::GetTextInputClient.
(fixes linux_chromeos initial omnibox input with this patch, seems ok)
Call View::On[Focus|Blur] from Combobox and TreeView.
(mostly for correctness and NotifyAccessibilityEvent, not critical)
Remove the OnCaretBoundsChanged call from TreeView.
(unnecessary and doesn't set correct candidate window bounds)
Remove unused DesktopRootWindowHost::OnNativeWidget[Focus|Blur].
Handle NULL TextInputClient* objects in TextInputTestHelper.
BUG=276720, 271754, 265337
TEST=Test Win (desktop, Win8 Metro, and Aura builds), CrOS, and Linux Aura's Omnibox, Find Bar, Bookmark Bubble, and Edit Bookmark Dialog's textfield text entry (and text input handling to select combobox and tree view elements) with EN, JA, and other IMEs, and related IME usage (Win+Space to change IME on Win8, Alt+` to change modes, etc.). Also test with --enable-text-services-framework. Note that IME candidate windows may not appear or may appear at incorrect positions for tree views and comboboxes, but this seems like a separate issue.
R=sky@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219673
Patch Set 1 #Patch Set 2 : Handle potential NULL from GetInputMethod(). #
Total comments: 2
Patch Set 3 : Move InputMethod focus/blur to View. #
Total comments: 2
Patch Set 4 : Move InputMethod Focus/Blur to Widget. #Patch Set 5 : Make InputMethodBridge a WidgetObserver, etc. #Patch Set 6 : Simply update the TextInputClient on View focus changes. #Patch Set 7 : Remove unused DesktopRootWindowHost::OnNativeWidget[Focus|Blur] #Patch Set 8 : Sync and rebase; merge changes. #Patch Set 9 : Remove test OnFocus calls; restore include. #Patch Set 10 : Check |client| against |GetTextInputClient| in TextInputTestHelper. #Patch Set 11 : Check |GetTextInputClient| in TextInputTestHelper. #Patch Set 12 : InputMethodBridge is not a TextInputClient. #Patch Set 13 : Fix linux_chromeos initial omnibox pre-active focus. #Patch Set 14 : Handle a NULL client in TextInputTestHelper::OnTextInputTypeChanged. #Patch Set 15 : Minor cleanups. #
Total comments: 2
Patch Set 16 : Address nit. #Messages
Total messages: 14 (0 generated)
|