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

Issue 294023002: aura: Updates the text input client when native activation changes. (Closed)

Created:
6 years, 7 months ago by Yuki
Modified:
6 years, 6 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Visibility:
Public.

Description

aura: Updates the text input client when native activation changes. It turned out that we should update the focused text input client not only when native focus/blur but also when native activate/deactivate. See crbug.com/377479 for details. Also this CL fixes the initial text input focus on CrOS login screen. BUG=323376, 290701 TEST=Confirmed that the Omnibox gets the text input focus by default when a new window is created. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276437

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixed CrOS login screen. #

Total comments: 2

Patch Set 3 : Added two tests. #

Patch Set 4 : Synced. #

Total comments: 6

Patch Set 5 : Synced. #

Patch Set 6 : Addressed sky's comments. #

Total comments: 8

Patch Set 7 : Synced. #

Patch Set 8 : Addressed msw's comments. #

Patch Set 9 : Synced. #

Patch Set 10 : Added a TODO comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -2 lines) Patch
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_view.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download
M ui/views/focus/focus_manager_unittest.cc View 1 2 3 4 5 6 7 3 chunks +64 lines, -1 line 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Yuki
sky@, could you review this CL? This CL is complement of https://codereview.chromium.org/173803002/
6 years, 7 months ago (2014-05-20 09:39:06 UTC) #1
sky
https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc#newcode1072 ui/views/widget/widget.cc:1072: views::FocusManager* focus_manager = GetFocusManager(); Your comments make me thing ...
6 years, 7 months ago (2014-05-20 13:47:14 UTC) #2
Yuki
https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc#newcode1072 ui/views/widget/widget.cc:1072: views::FocusManager* focus_manager = GetFocusManager(); On 2014/05/20 13:47:15, sky wrote: ...
6 years, 7 months ago (2014-05-20 13:54:55 UTC) #3
msw
https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc#newcode1051 ui/views/widget/widget.cc:1051: // OnNativeWidgetActivationChanged is a little confusing. At the time ...
6 years, 7 months ago (2014-05-20 17:08:06 UTC) #4
Yuki
I'll address on the rest part of comments later. https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc#newcode1051 ui/views/widget/widget.cc:1051: ...
6 years, 7 months ago (2014-05-21 14:36:51 UTC) #5
msw
https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/294023002/diff/1/ui/views/widget/widget.cc#newcode1051 ui/views/widget/widget.cc:1051: // OnNativeWidgetActivationChanged is a little confusing. At the time ...
6 years, 7 months ago (2014-05-22 04:53:01 UTC) #6
Yuki
It seems that removing calls to {Focus,Blur}TextInputClient from Widget::OnNative{Focus,Blur} made a trouble about the initial ...
6 years, 7 months ago (2014-05-22 14:02:10 UTC) #7
Yuki
Finally I figured out two more issues, and fixed them in this CL. Could you ...
6 years, 7 months ago (2014-05-26 14:26:40 UTC) #8
sky
Please add test coverage too. https://codereview.chromium.org/294023002/diff/20001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/294023002/diff/20001/ui/views/focus/focus_manager.cc#newcode319 ui/views/focus/focus_manager.cc:319: FocusTextInputClient(focused_view_); We also can ...
6 years, 7 months ago (2014-05-27 17:05:44 UTC) #9
Yuki
Will add unittests. https://codereview.chromium.org/294023002/diff/20001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/294023002/diff/20001/ui/views/focus/focus_manager.cc#newcode319 ui/views/focus/focus_manager.cc:319: FocusTextInputClient(focused_view_); On 2014/05/27 17:05:44, sky wrote: ...
6 years, 6 months ago (2014-05-28 15:02:42 UTC) #10
Yuki
I've added two test cases. I've been struggling to add a test case for chromeos ...
6 years, 6 months ago (2014-05-30 14:58:37 UTC) #11
sky
LGTM https://codereview.chromium.org/294023002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc File chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc (right): https://codereview.chromium.org/294023002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc#newcode333 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc:333: chrome::FocusLocationBar(browser()); This is done in SetUp, so it ...
6 years, 6 months ago (2014-05-30 16:30:15 UTC) #12
Yuki
msw@, could you take another look at this CL? https://codereview.chromium.org/294023002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc File chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc (right): https://codereview.chromium.org/294023002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc#newcode333 chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc:333: ...
6 years, 6 months ago (2014-06-02 07:38:55 UTC) #13
msw
https://codereview.chromium.org/294023002/diff/100001/ui/views/focus/focus_manager.cc File ui/views/focus/focus_manager.cc (right): https://codereview.chromium.org/294023002/diff/100001/ui/views/focus/focus_manager.cc#newcode318 ui/views/focus/focus_manager.cc:318: // changing the focused view, we have to make ...
6 years, 6 months ago (2014-06-02 17:17:04 UTC) #14
Yuki
Sorry for the late response. I got sick last week, but now recovered. Could you ...
6 years, 6 months ago (2014-06-08 11:08:16 UTC) #15
msw
Please consider my suggestion, but I wouldn't really oppose landing your CL as-is, so long ...
6 years, 6 months ago (2014-06-10 04:05:09 UTC) #16
Yuki
msw@, thank you for your review. If you're okay, I'll commit this CL as is ...
6 years, 6 months ago (2014-06-10 05:59:00 UTC) #17
msw
On 2014/06/10 05:59:00, Yuki wrote: > msw@, thank you for your review. If you're okay, ...
6 years, 6 months ago (2014-06-10 06:38:26 UTC) #18
Yuki
On 2014/06/10 06:38:26, msw wrote: > On 2014/06/10 05:59:00, Yuki wrote: > > msw@, thank ...
6 years, 6 months ago (2014-06-10 06:51:51 UTC) #19
msw
On 2014/06/10 06:51:51, Yuki wrote: > On 2014/06/10 06:38:26, msw wrote: > > On 2014/06/10 ...
6 years, 6 months ago (2014-06-10 17:06:47 UTC) #20
Yuki
On 2014/06/10 17:06:47, msw wrote: > On 2014/06/10 06:51:51, Yuki wrote: > > On 2014/06/10 ...
6 years, 6 months ago (2014-06-11 06:20:32 UTC) #21
Yuki
The CQ bit was checked by yukishiino@chromium.org
6 years, 6 months ago (2014-06-11 06:20:44 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/294023002/180001
6 years, 6 months ago (2014-06-11 06:27:29 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 17:25:08 UTC) #24
Message was sent while issue was closed.
Change committed as 276437

Powered by Google App Engine
This is Rietveld 408576698