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

Issue 23533030: rAc: Enforce a 3 second grace period for generated card bubble. (Closed)

Created:
7 years, 3 months ago by Evan Stade
Modified:
7 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, ben+watch_chromium.org, benquan, tfarina, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

rAc: Enforce a 3 second grace period for generated card bubble. Bubble may not be dismissed for the first 3 seconds (except by clicking on the Learn More link). The length of the grace period is subject to future tweaking. BUG=282671 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221601

Patch Set 1 #

Total comments: 2

Patch Set 2 : SetCaptureToWidget() #

Patch Set 3 : use setter #

Patch Set 4 : add a test #

Total comments: 2

Patch Set 5 : move some tests #

Patch Set 6 : exclude test on !views #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+627 lines, -478 lines) Patch
M chrome/browser/ui/views/autofill/generated_credit_card_bubble_views.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/generated_credit_card_bubble_views.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +1 line, -1 line 1 comment Download
M ui/views/controls/menu/menu_host.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_host.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
A ui/views/test/widget_test.h View 1 2 3 4 1 chunk +98 lines, -0 lines 0 comments Download
A ui/views/test/widget_test.cc View 1 2 3 4 1 chunk +125 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 4 chunks +11 lines, -4 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 4 chunks +3 lines, -8 lines 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 2 3 4 3 chunks +362 lines, -2 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 7 chunks +1 line, -456 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Evan Stade
7 years, 3 months ago (2013-09-03 23:22:10 UTC) #1
sky
https://codereview.chromium.org/23533030/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/23533030/diff/1/ui/views/widget/widget.cc#newcode921 ui/views/widget/widget.cc:921: capture_explicitly_set_ = true; Do you verify all callers of ...
7 years, 3 months ago (2013-09-04 14:10:14 UTC) #2
Evan Stade
https://codereview.chromium.org/23533030/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/23533030/diff/1/ui/views/widget/widget.cc#newcode921 ui/views/widget/widget.cc:921: capture_explicitly_set_ = true; On 2013/09/04 14:10:15, sky wrote: > ...
7 years, 3 months ago (2013-09-04 23:00:38 UTC) #3
sky
How about nuking SetCaptureToWidget and add set_release_capture_on_mouse_released(bool)? Doing that means you could nuke the one ...
7 years, 3 months ago (2013-09-04 23:07:06 UTC) #4
sky
Also, I don't think the boolean should auto-reset.
7 years, 3 months ago (2013-09-04 23:07:24 UTC) #5
Evan Stade
On 2013/09/04 23:07:24, sky wrote: > Also, I don't think the boolean should auto-reset. done.
7 years, 3 months ago (2013-09-04 23:22:10 UTC) #6
Evan Stade
On 2013/09/04 23:22:10, Evan Stade wrote: > On 2013/09/04 23:07:24, sky wrote: > > Also, ...
7 years, 3 months ago (2013-09-04 23:28:35 UTC) #7
sky
https://codereview.chromium.org/23533030/diff/14001/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/23533030/diff/14001/ui/views/widget/widget_unittest.cc#newcode1377 ui/views/widget/widget_unittest.cc:1377: TEST_F(WidgetTest, CaptureAutoReset) { Any time you're messing with capture ...
7 years, 3 months ago (2013-09-04 23:32:15 UTC) #8
Evan Stade
https://codereview.chromium.org/23533030/diff/14001/ui/views/widget/widget_unittest.cc File ui/views/widget/widget_unittest.cc (right): https://codereview.chromium.org/23533030/diff/14001/ui/views/widget/widget_unittest.cc#newcode1377 ui/views/widget/widget_unittest.cc:1377: TEST_F(WidgetTest, CaptureAutoReset) { On 2013/09/04 23:32:15, sky wrote: > ...
7 years, 3 months ago (2013-09-04 23:35:52 UTC) #9
sky
I suspect there are a lot of tests in that file (and others) that could ...
7 years, 3 months ago (2013-09-04 23:38:56 UTC) #10
Evan Stade
ok, moved some tests to interactive ui tests.
7 years, 3 months ago (2013-09-05 00:31:16 UTC) #11
sky
LGTM
7 years, 3 months ago (2013-09-05 15:46:05 UTC) #12
Evan Stade
https://codereview.chromium.org/23533030/diff/5001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/23533030/diff/5001/chrome/chrome_tests.gypi#newcode381 chrome/chrome_tests.gypi:381: ['exclude', '^../ui/views/'], note this new line. Let's see if ...
7 years, 3 months ago (2013-09-05 22:15:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/23533030/5001
7 years, 3 months ago (2013-09-05 22:47:12 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 06:19:37 UTC) #15
Message was sent while issue was closed.
Change committed as 221601

Powered by Google App Engine
This is Rietveld 408576698