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

Issue 291003: Implement badges for page actions. Also add badge text color API. (Closed)

Created:
11 years, 2 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement badges for page actions. Also add badge text color API. Also change color APIs from wanting ARGB to RGBA. BUG=24635 BUG=24644 BUG=25215 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29457

Patch Set 1 #

Total comments: 3

Patch Set 2 : argb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -94 lines) Patch
M chrome/browser/extensions/extension_browser_actions_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_page_actions_module.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 1 chunk +2 lines, -82 lines 0 comments Download
M chrome/browser/views/location_bar_view.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/views/location_bar_view.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_action.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/samples/test_browser_action/background.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/samples/test_page_action/background.html View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Matt Perry
Evan, can you make sure I did the Linux stuff right? There's not a whole ...
11 years, 2 months ago (2009-10-16 21:22:10 UTC) #1
Evan Stade
mostly lg http://codereview.chromium.org/291003/diff/1/3 File chrome/browser/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/291003/diff/1/3#newcode809 Line 809: gfx::Rect bounding_rect(widget->allocation); does it come out ...
11 years, 2 months ago (2009-10-16 21:39:37 UTC) #2
Matt Perry
11 years, 2 months ago (2009-10-16 21:47:46 UTC) #3
http://codereview.chromium.org/291003/diff/1/3
File chrome/browser/gtk/location_bar_view_gtk.cc (right):

http://codereview.chromium.org/291003/diff/1/3#newcode809
Line 809: gfx::Rect bounding_rect(widget->allocation);
On 2009/10/16 21:39:37, Evan Stade wrote:
> does it come out looking right? I should think this bounding rect would be
> slightly off. For widgets that have their own gdkwindow, the allocation x, y
is
> relative to the parent widget; for widgets that don't have their own gdkwindow
> the allocation x, y is relative to the gdkwindow they paint on.
> 
> Since the event box widget has its own window, its allocation will be relative
> to the parent widget, but we want bounding rect to be relative to
event->window
> == widget->window, so I think you should do bounding_rect.SetOrigin(0, 0)
here.

Thanks for the info. I'm still trying to get it to build on linux (nacl linking
errors). I'll make sure it looks right.

Powered by Google App Engine
This is Rietveld 408576698