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

Issue 1212403004: Make sure content area is focused when signin-view bubble is opened. (Closed)

Created:
5 years, 5 months ago by wjmaclean
Modified:
5 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure content area is focused when signin-view bubble is opened. At present, when the inline login flow opens the bubble-based signin view, focus is on the "back" arrow, and not the e-mail/password text fields (as if we are expecting the user didn't really want to navigate to this view in the first place). This forces the user to manually focus the desired field through either a mouse-click or a touch before they can start entering their information. This CL causes the content area to be focused instead, either the e-mail text field or th password field (if the e-mail is pre-populated). This is consistent with how the in-tab signin page displays. BUG=502370 Committed: https://crrev.com/62d093d69ebe6bb5a92d0bcce6fbf31c115e53be Cr-Commit-Position: refs/heads/master@{#337271}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use kViewClassName instead of string literal. #

Total comments: 3

Patch Set 3 : Compare strings by direct pointer comparison. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -3 lines) Patch
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 chunks +43 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212403004/1
5 years, 5 months ago (2015-07-02 17:59:00 UTC) #2
wjmaclean
thestig@ Simple view-focus CL (with test) - please take a look?
5 years, 5 months ago (2015-07-02 18:00:21 UTC) #4
wjmaclean
thakis@ - can you look at a small CL? I originally sent it to thestig@, ...
5 years, 5 months ago (2015-07-02 18:42:20 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-02 18:58:17 UTC) #9
Nico
https://codereview.chromium.org/1212403004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1212403004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode78 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:78: if (std::string(current->GetClassName()).find("WebView") != Can you introduce WebView::kViewClassName and compare ...
5 years, 5 months ago (2015-07-02 20:07:22 UTC) #10
wjmaclean
Comment addressed, ptal? https://codereview.chromium.org/1212403004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1212403004/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode78 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:78: if (std::string(current->GetClassName()).find("WebView") != On 2015/07/02 20:07:22, ...
5 years, 5 months ago (2015-07-02 20:47:19 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212403004/20001
5 years, 5 months ago (2015-07-02 20:48:02 UTC) #13
Nico
lgtm with comment https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode80 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:80: .find(views::WebView::kViewClassName) != std::string::npos) { You can ...
5 years, 5 months ago (2015-07-02 20:54:58 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-02 21:36:22 UTC) #16
wjmaclean
https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode80 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:80: .find(views::WebView::kViewClassName) != std::string::npos) { On 2015/07/02 20:54:57, Nico wrote: ...
5 years, 5 months ago (2015-07-03 00:56:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212403004/40001
5 years, 5 months ago (2015-07-03 00:56:48 UTC) #20
Nico
https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc (right): https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode80 chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc:80: .find(views::WebView::kViewClassName) != std::string::npos) { On 2015/07/03 00:56:37, wjmaclean wrote: ...
5 years, 5 months ago (2015-07-03 01:00:24 UTC) #21
wjmaclean
On 2015/07/03 01:00:24, Nico wrote: > https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc > File chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc > (right): > > https://codereview.chromium.org/1212403004/diff/20001/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc#newcode80 ...
5 years, 5 months ago (2015-07-03 01:31:19 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-03 01:31:45 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/62d093d69ebe6bb5a92d0bcce6fbf31c115e53be Cr-Commit-Position: refs/heads/master@{#337271}
5 years, 5 months ago (2015-07-03 01:32:40 UTC) #24
wjmaclean
5 years, 5 months ago (2015-07-03 01:43:19 UTC) #25
Message was sent while issue was closed.
On 2015/07/03 01:31:19, wjmaclean wrote:
> I suppose we could have compared
> 
> current->kViewClassName == WebView::kViewClassName

Gah! Ignore this ... of course it won't work ...
 
> or, if GetClassName() had been declared static,
> 
> current->GetClassName() == WebView::GetClassName()

And obviously (for similar reasons) it makes no sense to expect we could make
GetClassName static.

Oh well.

Powered by Google App Engine
This is Rietveld 408576698