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

Issue 2898343002: [Mac] Update tab close button when user drags outside (Closed)

Created:
3 years, 7 months ago by shrike
Modified:
3 years, 6 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Update tab close button when user drags outside When clicking inside a button and dragging the mouse out of the button's bounds, a button should update its appearance to show that its action will not fire if the user releases the mouse. This cl fixes a problem with the tab close button where it would always show the mouse down state, even if you clicked and dragged outside of it. This cl also does a little refactoring, moving common init-time code to a commonInit method (like its HoverCloseButton subclass). R=avi@chromium.org BUG=647757 Review-Url: https://codereview.chromium.org/2898343002 Cr-Commit-Position: refs/heads/master@{#476463} Committed: https://chromium.googlesource.com/chromium/src/+/40f734ce03b4693acb36388b7892dc67f863b65b

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add retain, comment on key events. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -39 lines) Patch
M chrome/browser/ui/cocoa/hover_close_button.mm View 2 chunks +11 lines, -21 lines 0 comments Download
M ui/base/cocoa/hover_button.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/base/cocoa/hover_button.mm View 1 3 chunks +47 lines, -18 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
shrike
avi@ - PTAL
3 years, 7 months ago (2017-05-24 23:29:55 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm File ui/base/cocoa/hover_button.mm (left): https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm#oldcode50 ui/base/cocoa/hover_button.mm:50: // http://crbug.com/28220 The crash in this bug seems plausible ...
3 years, 7 months ago (2017-05-25 03:59:54 UTC) #7
shrike
https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm File ui/base/cocoa/hover_button.mm (left): https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm#oldcode50 ui/base/cocoa/hover_button.mm:50: // http://crbug.com/28220 On 2017/05/25 03:59:54, Avi (ping after 24h) ...
3 years, 7 months ago (2017-05-25 17:07:22 UTC) #8
Avi (use Gerrit)
https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm File ui/base/cocoa/hover_button.mm (left): https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm#oldcode50 ui/base/cocoa/hover_button.mm:50: // http://crbug.com/28220 On 2017/05/25 17:07:22, shrike wrote: > On ...
3 years, 7 months ago (2017-05-25 18:24:24 UTC) #9
shrike
https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm File ui/base/cocoa/hover_button.mm (left): https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm#oldcode50 ui/base/cocoa/hover_button.mm:50: // http://crbug.com/28220 On 2017/05/25 18:24:23, Avi (ping after 24h) ...
3 years, 7 months ago (2017-05-25 18:31:00 UTC) #10
Avi (use Gerrit)
On 2017/05/25 18:31:00, shrike wrote: > https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm > File ui/base/cocoa/hover_button.mm (left): > > https://codereview.chromium.org/2898343002/diff/1/ui/base/cocoa/hover_button.mm#oldcode50 > ...
3 years, 7 months ago (2017-05-25 18:35:18 UTC) #11
shrike
On 2017/05/25 18:35:18, Avi (ping after 24h) wrote: > animation speed, start a tab close, ...
3 years, 7 months ago (2017-05-25 18:37:01 UTC) #12
shrike
PTAL
3 years, 7 months ago (2017-05-25 18:53:43 UTC) #13
Avi (use Gerrit)
lgtm 👍
3 years, 7 months ago (2017-05-25 19:00:21 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2898343002/20001
3 years, 6 months ago (2017-06-01 22:18:18 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 22:44:39 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/40f734ce03b4693acb36388b7892...

Powered by Google App Engine
This is Rietveld 408576698