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

Issue 1052973004: Stop SpriteView animation when window is miniaturized. (Closed)

Created:
5 years, 8 months ago by shrike
Modified:
5 years, 8 months ago
Reviewers:
Robert Sesek, Andre
CC:
chromium-reviews, ccameron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

A comment in the SpriteView source states that the animation should not run when the window is minimized, nor in the middle of a minimize animation; it refers to http://crbug.com/350329 as the bug related to fixing this problem. However, although the SpriteView registers for the NSWindowWillMiniaturizeNotification it doesn't check for its occurrence, and so does not actually recognize when a window is being minimized. As a result, the SpriteView's animation continues running when its window is miniaturized. This change adds a check for NSWindowWillMiniaturizeNotification and stops the animation when caught. This change also adds a unit test to confirm that the animation stops on window miniaturization. My SpinnerView class was based on SpriteView, which is how I discovered this bug. The fix and unit test both come from SpinnerView. BUG=472836 Committed: https://crrev.com/7f9a9aac8a45e36e4b8d1621b9b50ffca91cf38b Cr-Commit-Position: refs/heads/master@{#323963}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/sprite_view.mm View 1 chunk +5 lines, -2 lines 1 comment Download
M chrome/browser/ui/cocoa/sprite_view_unittest.mm View 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Andre
https://codereview.chromium.org/1052973004/diff/1/chrome/browser/ui/cocoa/sprite_view.mm File chrome/browser/ui/cocoa/sprite_view.mm (right): https://codereview.chromium.org/1052973004/diff/1/chrome/browser/ui/cocoa/sprite_view.mm#newcode76 chrome/browser/ui/cocoa/sprite_view.mm:76: if ([self window] && ![[self window] isMiniaturized] && This ...
5 years, 8 months ago (2015-04-02 21:25:52 UTC) #3
shrike
On 2015/04/02 21:25:52, Andre wrote: > This checks if the window is miniaturized. I think ...
5 years, 8 months ago (2015-04-02 21:41:59 UTC) #4
shrike
I was waiting for the Mac trybots before asking for review but they seem to ...
5 years, 8 months ago (2015-04-02 22:00:44 UTC) #5
Robert Sesek
LGTM
5 years, 8 months ago (2015-04-03 20:38:25 UTC) #6
shrike
On 2015/04/02 21:25:52, Andre wrote: > https://codereview.chromium.org/1052973004/diff/1/chrome/browser/ui/cocoa/sprite_view.mm > File chrome/browser/ui/cocoa/sprite_view.mm (right): > > https://codereview.chromium.org/1052973004/diff/1/chrome/browser/ui/cocoa/sprite_view.mm#newcode76 > ...
5 years, 8 months ago (2015-04-06 21:14:08 UTC) #7
Andre
On 2015/04/06 21:14:08, shrike wrote: > On 2015/04/02 21:25:52, Andre wrote: > > > https://codereview.chromium.org/1052973004/diff/1/chrome/browser/ui/cocoa/sprite_view.mm ...
5 years, 8 months ago (2015-04-06 21:29:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1052973004/1
5 years, 8 months ago (2015-04-06 21:34:26 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-06 22:29:22 UTC) #11
commit-bot: I haz the power
5 years, 8 months ago (2015-04-06 22:30:17 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7f9a9aac8a45e36e4b8d1621b9b50ffca91cf38b
Cr-Commit-Position: refs/heads/master@{#323963}

Powered by Google App Engine
This is Rietveld 408576698