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

Issue 269045: Mac status bubble delays and fades (Closed)

Created:
11 years, 2 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Status bubbles should wait before showing and hiding, and should fade in and out on the Mac. This fixes the fades, which were actually written but unfortunately not working due to a silly bug. It also adds the delays, cleaning up a TODO. It fixes some questionable logic ("hide by calling Hide() and then FadeIn()"). Finally, it allows better reuse of the status bubble NSWindow, and fixes a bug that prevented the status bubble window from properly attaching to its parent window if the parent was offscreen at attachment time. Unit tests for the new behavior are included, and as a bonus, I've added better testing for some existing behavior. See http://dev.chromium.org/user-experience/status-bubble for the design of the status bubble. Also, consult chrome/browser/views/status_bubble_views.cc for the implementation used on Windows. BUG=24495 TEST=Mouse over some links Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28749

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 4

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -55 lines) Patch
M chrome/browser/cocoa/status_bubble_mac.h View 3 4 5 6 7 8 9 4 chunks +68 lines, -8 lines 0 comments Download
M chrome/browser/cocoa/status_bubble_mac.mm View 1 2 3 4 5 6 7 8 7 chunks +295 lines, -42 lines 0 comments Download
M chrome/browser/cocoa/status_bubble_mac_unittest.mm View 3 4 5 6 7 8 9 5 chunks +301 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Mark Mentovai
You're going to love this.
11 years, 2 months ago (2009-10-10 03:03:34 UTC) #1
Mark Mentovai
I added the delays too and fixed a few other things in there.
11 years, 2 months ago (2009-10-11 23:23:32 UTC) #2
pink (ping after 24hrs)
drive-by http://codereview.chromium.org/269045/diff/2002/6001 File chrome/browser/cocoa/status_bubble_mac.mm (right): http://codereview.chromium.org/269045/diff/2002/6001#newcode144 Line 144: // Use kMinimumTimeInterval to set the opacity ...
11 years, 2 months ago (2009-10-12 14:52:10 UTC) #3
Avi (use Gerrit)
LG http://codereview.chromium.org/269045/diff/2002/6001 File chrome/browser/cocoa/status_bubble_mac.mm (right): http://codereview.chromium.org/269045/diff/2002/6001#newcode269 Line 269: if (state_ == kBubbleShowingFadeIn && [window_ alphaValue] ...
11 years, 2 months ago (2009-10-12 14:56:39 UTC) #4
Mark Mentovai
Avi wrote: http://codereview.chromium.org/269045/diff/2002/6001#newcode269 > Line 269: if (state_ == kBubbleShowingFadeIn && [window_ alphaValue] == > ...
11 years, 2 months ago (2009-10-12 16:00:41 UTC) #5
Avi (use Gerrit)
SLGTM but check with pink. WRT the original int variables, I'll be committing hara kiri ...
11 years, 2 months ago (2009-10-12 16:12:38 UTC) #6
pink (ping after 24hrs)
I believe as the original reviewer, I'm on the hook to fall on my sword ...
11 years, 2 months ago (2009-10-12 16:17:43 UTC) #7
John Grabowski
Pink and Avi, please save suicide until after the next milestone. jrg On Mon, Oct ...
11 years, 2 months ago (2009-10-12 18:25:16 UTC) #8
Mark Mentovai
Switched to the delegate. Also, FadeIn and FadeOut started getting out of hand with the ...
11 years, 2 months ago (2009-10-12 21:28:33 UTC) #9
Avi (use Gerrit)
11 years, 2 months ago (2009-10-12 21:58:51 UTC) #10
SLG

Powered by Google App Engine
This is Rietveld 408576698