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

Issue 1411523009: Adds OnClickCanceled callback to views::Button (Closed)

Created:
5 years, 2 months ago by varkha
Modified:
5 years ago
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

Adds OnClickCanceled callback to views::Button Wires an additional callback to ensure that descendants of a CustomButton get notified if a mouse is released without triggering an action. Uses that new callback to hide ripple animation used in toolbar buttons. BUG=544251 Committed: https://crrev.com/9db9996e921e1b90170daa84d2efe74926b17fc2 Cr-Commit-Position: refs/heads/master@{#362568}

Patch Set 1 #

Patch Set 2 : Adds NotifyReleasedWithoutClick callback to views::Button (corrections) #

Total comments: 2

Patch Set 3 : Adds NotifyReleasedWithoutClick callback to views::Button (unit test) #

Total comments: 2

Patch Set 4 : Adds NotifyReleasedWithoutClick callback to views::Button (comment) #

Total comments: 4

Patch Set 5 : Adds NotifyReleasedWithoutClick callback to views::Button (nit) #

Patch Set 6 : Adds NotifyReleasedWithoutClick callback to views::Button (rebased) #

Patch Set 7 : Adds NotifyReleasedWithoutClick callback to views::Button (one more case handled) #

Total comments: 4

Patch Set 8 : Adds NotifyReleasedWithoutClick callback to views::Button (comments) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -57 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_button.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 3 chunks +20 lines, -21 lines 0 comments Download
M ui/views/controls/button/button.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/button/button.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/custom_button.cc View 1 2 3 4 5 6 7 2 chunks +24 lines, -23 lines 0 comments Download
M ui/views/controls/button/custom_button_unittest.cc View 1 2 3 4 5 6 7 6 chunks +54 lines, -12 lines 0 comments Download

Messages

Total messages: 45 (19 generated)
varkha
bruthig@, please take a look. Do you think this would be a good way to ...
5 years, 2 months ago (2015-10-20 21:08:48 UTC) #2
varkha
PTAL (corrected based on what we discussed this offline). The changes are to handle the ...
5 years, 2 months ago (2015-10-21 22:08:49 UTC) #4
bruthig
One minor point about documentation but design looks good. Is it possible to add some ...
5 years, 2 months ago (2015-10-22 15:18:50 UTC) #5
varkha
> Is it possible to add some tests for this new behavior? > It should ...
5 years, 2 months ago (2015-10-23 15:49:46 UTC) #7
varkha
sadrul@, ping?
5 years, 1 month ago (2015-11-04 18:56:26 UTC) #8
sadrul
Having a callback when a click is canceled sounds good to me. https://codereview.chromium.org/1411523009/diff/60001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc ...
5 years, 1 month ago (2015-11-04 19:13:10 UTC) #9
varkha
https://codereview.chromium.org/1411523009/diff/60001/ui/views/controls/button/custom_button.cc File ui/views/controls/button/custom_button.cc (right): https://codereview.chromium.org/1411523009/diff/60001/ui/views/controls/button/custom_button.cc#newcode143 ui/views/controls/button/custom_button.cc:143: NotifyMouseReleasedWithoutClick(event); On 2015/11/04 19:13:10, sadrul wrote: > This looks ...
5 years, 1 month ago (2015-11-04 20:18:23 UTC) #10
sadrul
https://codereview.chromium.org/1411523009/diff/80001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1411523009/diff/80001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode113 chrome/browser/ui/views/toolbar/toolbar_button.cc:113: views::InkDropState::ACTION_PENDING); I am beginning to question if event-handling code ...
5 years, 1 month ago (2015-11-06 21:46:59 UTC) #12
varkha
https://codereview.chromium.org/1411523009/diff/80001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/1411523009/diff/80001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode113 chrome/browser/ui/views/toolbar/toolbar_button.cc:113: views::InkDropState::ACTION_PENDING); On 2015/11/06 21:46:59, sadrul wrote: > I am ...
5 years, 1 month ago (2015-11-09 15:22:21 UTC) #13
sadrul
lgtm https://codereview.chromium.org/1411523009/diff/80001/ui/views/controls/button/button.h File ui/views/controls/button/button.h (right): https://codereview.chromium.org/1411523009/diff/80001/ui/views/controls/button/button.h#newcode75 ui/views/controls/button/button.h:75: // events. *and
5 years ago (2015-11-25 22:18:42 UTC) #14
varkha
https://codereview.chromium.org/1411523009/diff/80001/ui/views/controls/button/button.h File ui/views/controls/button/button.h (right): https://codereview.chromium.org/1411523009/diff/80001/ui/views/controls/button/button.h#newcode75 ui/views/controls/button/button.h:75: // events. On 2015/11/25 22:18:42, sadrul wrote: > *and ...
5 years ago (2015-11-25 22:35:48 UTC) #15
varkha
pkasting@, can you please take an OWNERS look for chrome/browser/ui/views/? Thanks!
5 years ago (2015-11-25 22:37:26 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411523009/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411523009/100001
5 years ago (2015-11-25 22:39:26 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-11-26 00:45:09 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411523009/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411523009/100001
5 years ago (2015-11-26 01:51:14 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-26 02:05:46 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411523009/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411523009/160001
5 years ago (2015-11-27 21:18:13 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-27 21:54:11 UTC) #30
Peter Kasting
https://codereview.chromium.org/1411523009/diff/160001/ui/views/controls/button/button.h File ui/views/controls/button/button.h (right): https://codereview.chromium.org/1411523009/diff/160001/ui/views/controls/button/button.h#newcode73 ui/views/controls/button/button.h:73: // a NOTIFY_ON_PRESS button is pressed with a wrong ...
5 years ago (2015-12-01 02:03:18 UTC) #31
varkha
pkasting@, PTAL. I have also updated test expectations. https://codereview.chromium.org/1411523009/diff/160001/ui/views/controls/button/button.h File ui/views/controls/button/button.h (right): https://codereview.chromium.org/1411523009/diff/160001/ui/views/controls/button/button.h#newcode73 ui/views/controls/button/button.h:73: // ...
5 years ago (2015-12-01 19:23:29 UTC) #33
Peter Kasting
LGTM
5 years ago (2015-12-01 20:09:49 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411523009/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411523009/200001
5 years ago (2015-12-01 22:12:36 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/73702)
5 years ago (2015-12-01 22:30:37 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411523009/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411523009/200001
5 years ago (2015-12-01 22:46:36 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:200001)
5 years ago (2015-12-02 01:30:04 UTC) #43
commit-bot: I haz the power
5 years ago (2015-12-02 01:31:04 UTC) #45
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9db9996e921e1b90170daa84d2efe74926b17fc2
Cr-Commit-Position: refs/heads/master@{#362568}

Powered by Google App Engine
This is Rietveld 408576698