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

Issue 12902029: Fix InputMethod Widget activation checks; cleanup, etc. (Closed)

Created:
7 years, 9 months ago by msw
Modified:
7 years, 9 months ago
Reviewers:
James Su, sky
CC:
chromium-reviews, tfarina, ben+watch_chromium.org, penghuang+watch_chromium.org, yusukes+watch_chromium.org, ananta
Visibility:
Public.

Description

Fix 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -138 lines) Patch
M ui/views/controls/textfield/native_textfield_views_unittest.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M ui/views/ime/input_method.h View 1 2 2 chunks +27 lines, -39 lines 0 comments Download
M ui/views/ime/input_method_base.h View 1 2 3 chunks +7 lines, -37 lines 0 comments Download
M ui/views/ime/input_method_base.cc View 1 2 3 4 4 chunks +13 lines, -37 lines 0 comments Download
M ui/views/ime/input_method_bridge.cc View 3 chunks +2 lines, -10 lines 0 comments Download
M ui/views/ime/input_method_win.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M ui/views/ime/mock_input_method.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/ime/mock_input_method.cc View 2 chunks +5 lines, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
msw
Hey James and Scott, please take a look; thanks!
7 years, 9 months ago (2013-03-26 18:39:26 UTC) #1
msw
Gah, hold off for linux_chromeos test failures... I'm really disliking our IME code...
7 years, 9 months ago (2013-03-26 19:33:07 UTC) #2
msw
Please take a look now, thanks! Fixing views_unittests was simple enough.
7 years, 9 months ago (2013-03-27 01:55:09 UTC) #3
James Su
On 2013/03/27 01:55:09, msw wrote: > Please take a look now, thanks! Fixing views_unittests was ...
7 years, 9 months ago (2013-03-27 03:12:32 UTC) #4
sky
https://codereview.chromium.org/12902029/diff/11002/ui/views/ime/input_method_base.cc File ui/views/ime/input_method_base.cc (right): https://codereview.chromium.org/12902029/diff/11002/ui/views/ime/input_method_base.cc#newcode18 ui/views/ime/input_method_base.cc:18: if (widget()) Is this needed? You don't null check ...
7 years, 9 months ago (2013-03-27 15:10:23 UTC) #5
msw
Comments addressed; please take another look. https://codereview.chromium.org/12902029/diff/11002/ui/views/ime/input_method_base.cc File ui/views/ime/input_method_base.cc (right): https://codereview.chromium.org/12902029/diff/11002/ui/views/ime/input_method_base.cc#newcode18 ui/views/ime/input_method_base.cc:18: if (widget()) On ...
7 years, 9 months ago (2013-03-27 17:36:25 UTC) #6
msw
Scott, please take another look; trybots passed and skipping the check works fine locally; thanks!
7 years, 9 months ago (2013-03-27 20:36:58 UTC) #7
sky
SLGTM
7 years, 9 months ago (2013-03-27 20:48:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/12902029/23001
7 years, 9 months ago (2013-03-27 20:55:43 UTC) #9
commit-bot: I haz the power
7 years, 9 months ago (2013-03-27 22:19:34 UTC) #10
Message was sent while issue was closed.
Change committed as 191049

Powered by Google App Engine
This is Rietveld 408576698