Chromium Code Reviews
DescriptionFix InputMethod Widget activation checks; cleanup, etc.
Remove InputMethodBase::On[Focus|Blur] and |widget_focused_|.
Check widget()->IsActive() as needed instead of widget_focused_.
( this resolves improper init order firing DCHECKs in views_unittests )
( fixes FocusManagerDtorTest.* with --enable-views-textfield )
Fix NativeTextfieldViewsTest widget activation and textfield focus.
Rename virtual InputMethod::set_delegate() to SetDelegate().
Call the base Init from InputMethodBase::Init first.
( initializes |widget_| before it's used in OnInputLangChange )
Remove InputMethodBase's unnecessary NON_EXPORTED_BASE usage.
Add empty MockInputMethod::On[Focus|Blur] implementations.
Update comments for conciseness and clarity.
BUG=131660
TEST=No input regressions; unit tests pass with --enable-views-textfield.
R=sky@chromium.org,suzhe@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191049
Patch Set 1 : Fix InputMethod Widget activation checks; cleanup, etc. #Patch Set 2 : Sync and rebase. #Patch Set 3 : Minor comment updates. #Patch Set 4 : Activate the Widget used in views_unittests; etc. #
Total comments: 2
Patch Set 5 : Address comments. #
Messages
Total messages: 10 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||