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

Issue 3047031: [Mac] Give page actions a default image when preview enabled. (Closed)

Created:
10 years, 4 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

[Mac] Give page actions a default image when preview enabled. During install it is possible to display (or layout) the action before the images have come in. Provide a default image for this case. BUG=50771 TEST=See bug. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54386

Patch Set 1 #

Patch Set 2 : comment about icons updating. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M chrome/browser/cocoa/location_bar/page_action_decoration.mm View 1 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Scott Hess - ex-Googler
10 years, 4 months ago (2010-07-30 20:14:24 UTC) #1
rohitrao (ping after 24h)
LGTM This is just going to be a blank icon? Does the real image come ...
10 years, 4 months ago (2010-07-30 20:20:01 UTC) #2
Scott Hess - ex-Googler
10 years, 4 months ago (2010-07-30 20:39:54 UTC) #3
On 2010/07/30 20:20:01, rohitrao wrote:
> This is just going to be a blank icon?  Does the real image come in
> when the bubble pops open, or do we end up with a bubble pointing at
> nothing?

If no icon ever comes in, yes, would point at nothing.  Am willing to leave that
for another day.

When an icon comes in, OnImageLoaded() is called, which bounces to location-bar
to UpdatePageAction(), which will eventually call UpdateVisibility() for all
page actions (which will load the new icon) and Layout() to put everything in
place.  Does that sound round-a-bout and over-kill?  Yeah.  Seems like it could
just set the icon and call location-bar for refresh (with a flag for "my size
changed" to make things efficient).  But maybe there's a good reason for the
current structure.

Thanks,
scott

Powered by Google App Engine
This is Rietveld 408576698