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

Issue 3014005: [Mac] Display a quick animation when a popup is blocked so the user notices it in the Omnibox. (Closed)

Created:
10 years, 5 months ago by Robert Sesek
Modified:
9 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews, brettw-cc_chromium.org, John Grabowski, Paul Godavari, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

[Mac] Display a quick animation when a popup is blocked so the user notices it in the Omnibox. This refactors the animation code of the DownloadStartedAnimationMac into AnimatableImage. BUG=49341 TEST=Go to http://www.popuptest.com/popuptest3.html. When a popup is opened, see animation. TEST=Download a file. Animation still plays. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52965

Patch Set 1 #

Total comments: 7

Patch Set 2 : Nits and test #

Total comments: 19

Patch Set 3 : '' #

Total comments: 11

Patch Set 4 : All nits #

Patch Set 5 : Remove animation group #

Patch Set 6 : +iamge #

Total comments: 4

Patch Set 7 : CGImage #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+544 lines, -117 lines) Patch
A chrome/app/theme/popup_window_animation.pdf View 1 2 3 4 6 Binary file 0 comments Download
A chrome/browser/cocoa/animatable_image.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/animatable_image.mm View 1 2 3 4 5 6 1 chunk +164 lines, -0 lines 1 comment Download
A chrome/browser/cocoa/animatable_image_unittest.mm View 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/download_started_animation_mac.mm View 1 2 3 7 chunks +71 lines, -117 lines 0 comments Download
A chrome/browser/cocoa/popup_blocked_animation_mac.mm View 1 2 3 4 5 6 1 chunk +160 lines, -0 lines 0 comments Download
A chrome/browser/gtk/popup_blocked_animation_gtk.cc View 3 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/popup_blocked_animation.h View 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/views/popup_blocked_animation_win.cc View 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 6 chunks +7 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Robert Sesek
10 years, 5 months ago (2010-07-15 22:07:33 UTC) #1
Nico
Please open a bug for this. Land the pdf in a separate CL, so that ...
10 years, 5 months ago (2010-07-15 22:26:56 UTC) #2
Nico
initial nits http://codereview.chromium.org/3014005/diff/1/3 File chrome/browser/cocoa/animatable_image.h (right): http://codereview.chromium.org/3014005/diff/1/3#newcode16 chrome/browser/cocoa/animatable_image.h:16: // window for easier window management. mention ...
10 years, 5 months ago (2010-07-15 22:40:15 UTC) #3
Nico
will look again once these are addressed. looks pretty good! http://codereview.chromium.org/3014005/diff/1/8 File chrome/browser/popup_blocked_animation_stubs.cc (right): http://codereview.chromium.org/3014005/diff/1/8#newcode8 ...
10 years, 5 months ago (2010-07-15 22:41:49 UTC) #4
Robert Sesek
All nits addressed. Added a test. Good idea about splitting the image out into a ...
10 years, 5 months ago (2010-07-15 23:42:22 UTC) #5
Nico
Almost there. http://codereview.chromium.org/3014005/diff/1/8 File chrome/browser/popup_blocked_animation_stubs.cc (right): http://codereview.chromium.org/3014005/diff/1/8#newcode8 chrome/browser/popup_blocked_animation_stubs.cc:8: #if !defined(OS_MACOSX) On 2010/07/15 23:42:23, rsesek wrote: ...
10 years, 5 months ago (2010-07-16 00:06:10 UTC) #6
Robert Sesek
http://codereview.chromium.org/3014005/diff/8001/2003 File chrome/browser/cocoa/animatable_image.h (right): http://codereview.chromium.org/3014005/diff/8001/2003#newcode45 chrome/browser/cocoa/animatable_image.h:45: // but does not show the blank animation window ...
10 years, 5 months ago (2010-07-16 16:20:17 UTC) #7
Nico
LG once CL is updated with a bug and the comment about |bounds| below is ...
10 years, 5 months ago (2010-07-16 16:55:35 UTC) #8
Nico
*once CL description On Fri, Jul 16, 2010 at 9:55 AM, <thakis@chromium.org> wrote: > LG ...
10 years, 5 months ago (2010-07-16 16:56:56 UTC) #9
Robert Sesek
All nits addressed. http://codereview.chromium.org/3014005/diff/14001/15003 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3014005/diff/14001/15003#newcode117 chrome/browser/cocoa/animatable_image.mm:117: CGRectGetHeight([self endFrame])); On 2010/07/16 16:55:35, Nico ...
10 years, 5 months ago (2010-07-16 18:56:00 UTC) #10
Nico
http://codereview.chromium.org/3014005/diff/14001/15003 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3014005/diff/14001/15003#newcode117 chrome/browser/cocoa/animatable_image.mm:117: CGRectGetHeight([self endFrame])); On 2010/07/16 18:56:01, rsesek wrote: > On ...
10 years, 5 months ago (2010-07-16 18:59:01 UTC) #11
Robert Sesek
http://codereview.chromium.org/3014005/diff/14001/15003 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3014005/diff/14001/15003#newcode117 chrome/browser/cocoa/animatable_image.mm:117: CGRectGetHeight([self endFrame])); On 2010/07/16 18:59:02, Nico wrote: > On ...
10 years, 5 months ago (2010-07-16 19:18:34 UTC) #12
Robert Sesek
Did some research into CoreAnimation this weekend. I've removed the animation group. Calling |-[CALayer setBounds:]| ...
10 years, 5 months ago (2010-07-19 16:58:36 UTC) #13
Nico
On 2010/07/19 16:58:36, rsesek wrote: > Did some research into CoreAnimation this weekend. I've removed ...
10 years, 5 months ago (2010-07-19 17:16:42 UTC) #14
Robert Sesek
On 2010/07/19 17:16:42, Nico wrote: > On 2010/07/19 16:58:36, rsesek wrote: > > Did some ...
10 years, 5 months ago (2010-07-19 17:49:43 UTC) #15
Nico
http://codereview.chromium.org/3014005/diff/32001/33003 File chrome/browser/cocoa/animatable_image.mm (right): http://codereview.chromium.org/3014005/diff/32001/33003#newcode48 chrome/browser/cocoa/animatable_image.mm:48: [layer setContents:image_.get()]; contents should be a CGImageRef; sorry about ...
10 years, 5 months ago (2010-07-19 22:35:17 UTC) #16
Robert Sesek
New CL up that rasterizes the PDF to a CGImage.
10 years, 5 months ago (2010-07-19 22:50:30 UTC) #17
Nico
LG with the patch that works on 10.5. Note that this LG is only for ...
10 years, 5 months ago (2010-07-19 22:52:08 UTC) #18
Nico
10 years, 5 months ago (2010-07-19 23:00:35 UTC) #19
LG (with the same comments I sent with my previous LG)

http://codereview.chromium.org/3014005/diff/37001/38003
File chrome/browser/cocoa/animatable_image.mm (right):

http://codereview.chromium.org/3014005/diff/37001/38003#newcode149
chrome/browser/cocoa/animatable_image.mm:149: [NSGraphicsContext
restoreGraphicsState];
Please put this into a utility function somewhere at some time (not in this CL,
but this week if possible)

Powered by Google App Engine
This is Rietveld 408576698