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

Issue 1411423014: Ensure that the first run bubble displays as an inactive bubble window which ensures that it does n… (Closed)

Created:
5 years, 1 month ago by ananta
Modified:
5 years, 1 month ago
Reviewers:
sky
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

The first run bubble now displays as an inactive bubble window which ensures that it does not grab keyboard focus. We now dismiss the bubble by observing the anchor widget and its parent for keyboard events. This functionality is provided by the FirstRunBubbleCloser class. BUG=553526 TEST=Covered by unittest FirstRunBubbleTest.CloseBubbleOnKeyEvent Committed: https://crrev.com/8ae15e81337f00236c58bb49b3707872f61d599f Cr-Commit-Position: refs/heads/master@{#359409}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add the observer on the root view of the widget #

Total comments: 2

Patch Set 3 : Remove the observer when the bubble is destroyed #

Patch Set 4 : Fix bot redness #

Patch Set 5 : Fix compile failures on linux #

Total comments: 2

Patch Set 6 : Cache the anchor widget instead of the anchor view in the bubble closer class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -3 lines) Patch
M chrome/browser/ui/views/first_run_bubble.h View 1 2 3 4 5 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/first_run_bubble.cc View 1 2 3 4 5 3 chunks +36 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/first_run_bubble_unittest.cc View 1 2 3 4 4 chunks +71 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (3 generated)
ananta
5 years, 1 month ago (2015-11-10 22:05:27 UTC) #3
sky
https://codereview.chromium.org/1411423014/diff/1/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/1/chrome/browser/ui/views/first_run_bubble.cc#newcode120 chrome/browser/ui/views/first_run_bubble.cc:120: target_view_->AddPreTargetHandler(this); Why do you need to add to both ...
5 years, 1 month ago (2015-11-10 22:09:20 UTC) #4
ananta
https://codereview.chromium.org/1411423014/diff/1/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/1/chrome/browser/ui/views/first_run_bubble.cc#newcode120 chrome/browser/ui/views/first_run_bubble.cc:120: target_view_->AddPreTargetHandler(this); On 2015/11/10 22:09:20, sky wrote: > Why do ...
5 years, 1 month ago (2015-11-10 22:35:36 UTC) #5
sky
https://codereview.chromium.org/1411423014/diff/20001/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/20001/chrome/browser/ui/views/first_run_bubble.cc#newcode107 chrome/browser/ui/views/first_run_bubble.cc:107: } What about if FirstBubbleCloser is destroyed because the ...
5 years, 1 month ago (2015-11-10 22:45:27 UTC) #6
ananta
https://codereview.chromium.org/1411423014/diff/20001/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/20001/chrome/browser/ui/views/first_run_bubble.cc#newcode107 chrome/browser/ui/views/first_run_bubble.cc:107: } On 2015/11/10 22:45:26, sky wrote: > What about ...
5 years, 1 month ago (2015-11-10 23:00:12 UTC) #7
sky
https://codereview.chromium.org/1411423014/diff/80001/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/80001/chrome/browser/ui/views/first_run_bubble.cc#newcode103 chrome/browser/ui/views/first_run_bubble.cc:103: views::View* target_view) It's ok to take target_view, but you ...
5 years, 1 month ago (2015-11-11 18:45:52 UTC) #8
ananta
https://codereview.chromium.org/1411423014/diff/80001/chrome/browser/ui/views/first_run_bubble.cc File chrome/browser/ui/views/first_run_bubble.cc (right): https://codereview.chromium.org/1411423014/diff/80001/chrome/browser/ui/views/first_run_bubble.cc#newcode103 chrome/browser/ui/views/first_run_bubble.cc:103: views::View* target_view) On 2015/11/11 18:45:52, sky wrote: > It's ...
5 years, 1 month ago (2015-11-12 20:19:17 UTC) #9
sky
LGTM
5 years, 1 month ago (2015-11-12 22:11:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411423014/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411423014/100001
5 years, 1 month ago (2015-11-12 22:18:20 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 1 month ago (2015-11-12 22:25:42 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 22:26:51 UTC) #14
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8ae15e81337f00236c58bb49b3707872f61d599f
Cr-Commit-Position: refs/heads/master@{#359409}

Powered by Google App Engine
This is Rietveld 408576698