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

Issue 10834279: Give request-to-act badges a grey background, and increase spacing to make it fit. (Closed)

Created:
8 years, 4 months ago by Jeffrey Yasskin
Modified:
8 years, 3 months ago
CC:
chromium-reviews, mihaip-cromium-reviews_chromium.org, yefimt
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Add Views UI; clean up GTK #

Total comments: 30

Patch Set 3 : Fix several of pkasting's comments. #

Patch Set 4 : Switch to an image for the background #

Patch Set 5 : Use theme service to pick colors for icon background #

Total comments: 1

Patch Set 6 : Final (??) Windows and GTK support #

Total comments: 4

Patch Set 7 : Mac support, except too transparent. #

Patch Set 8 : Finish mac support; fix pkasting's comments #

Total comments: 14

Patch Set 9 : Fix pkasting's comments. #

Patch Set 10 : Avoid changing Mac edit field width when script badges disabled #

Total comments: 4

Patch Set 11 : Fix shess's comments #

Total comments: 3

Patch Set 12 : Call the right superclass method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -27 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 4 5 6 7 8 9 10 9 chunks +36 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +51 lines, -14 lines 0 comments Download
M chrome/browser/ui/omnibox/location_bar_util.h View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/location_bar_util.cc View 1 2 3 4 5 6 7 8 2 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +37 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Jeffrey Yasskin
Views and GTK basically work with this patch. Peter, could you check it for basic ...
8 years, 4 months ago (2012-08-20 23:39:57 UTC) #1
Aaron Boodman
Since the changes to c/c/e/* are ui related, I'm going to go ahead and say ...
8 years, 4 months ago (2012-08-21 23:12:15 UTC) #2
Aaron Boodman
http://codereview.chromium.org/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode123 chrome/browser/ui/gtk/location_bar_view_gtk.cc:123: const int kInnerPadding = 9; We only want to ...
8 years, 4 months ago (2012-08-24 15:36:53 UTC) #3
Peter Kasting
https://chromiumcodereview.appspot.com/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): https://chromiumcodereview.appspot.com/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode1205 chrome/browser/ui/gtk/location_bar_view_gtk.cc:1205: gfx::CanvasSkiaPaint canvas(event, false); On 2012/08/24 15:36:53, Aaron Boodman wrote: ...
8 years, 4 months ago (2012-08-24 23:08:28 UTC) #4
Jeffrey Yasskin
http://codereview.chromium.org/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/10834279/diff/2001/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode123 chrome/browser/ui/gtk/location_bar_view_gtk.cc:123: const int kInnerPadding = 9; On 2012/08/24 15:36:53, Aaron ...
8 years, 3 months ago (2012-08-29 00:37:50 UTC) #5
Peter Kasting
I don't know whether we're speaking the same language on visible edge thickness. I was ...
8 years, 3 months ago (2012-08-29 01:00:07 UTC) #6
Jeffrey Yasskin
I'm starting to think it makes more sense to have an image as the background ...
8 years, 3 months ago (2012-08-29 01:59:02 UTC) #7
Jeffrey Yasskin
Ok, here's another attempt. Aura screenshot at http://i.imgur.com/Ne9mc.png, and gtk at http://i.imgur.com/YpQZd.png.
8 years, 3 months ago (2012-08-29 20:58:47 UTC) #8
Peter Kasting
If you're going to use images, they need to use alpha so that they work ...
8 years, 3 months ago (2012-08-29 21:30:23 UTC) #9
Jeffrey Yasskin
So ... what reference points or alpha values should I choose in this case? All ...
8 years, 3 months ago (2012-08-29 21:44:19 UTC) #10
Jeffrey Yasskin
So ... what reference points or alpha values should I choose in this case? All ...
8 years, 3 months ago (2012-08-29 21:44:19 UTC) #11
Peter Kasting
On Wed, Aug 29, 2012 at 2:43 PM, Jeffrey Yasskin <jyasskin@chromium.org>wrote: > So ... what ...
8 years, 3 months ago (2012-08-29 22:19:48 UTC) #12
Peter Kasting
On Wed, Aug 29, 2012 at 2:43 PM, Jeffrey Yasskin <jyasskin@chromium.org>wrote: > So ... what ...
8 years, 3 months ago (2012-08-29 22:19:48 UTC) #13
Jeffrey Yasskin
Here's another attempt, only tested on Windows. https://chromiumcodereview.appspot.com/10834279/diff/26001/chrome/browser/extensions/extension_action_util.cc File chrome/browser/extensions/extension_action_util.cc (right): https://chromiumcodereview.appspot.com/10834279/diff/26001/chrome/browser/extensions/extension_action_util.cc#newcode27 chrome/browser/extensions/extension_action_util.cc:27: const SkColor ...
8 years, 3 months ago (2012-09-05 21:10:19 UTC) #14
Peter Kasting
You might ask erg@ about GTK theming issues. Also the GTK port is going away ...
8 years, 3 months ago (2012-09-05 22:42:11 UTC) #15
Jeffrey Yasskin
On 2012/09/05 22:42:11, Peter Kasting wrote: > You might ask erg@ about GTK theming issues. ...
8 years, 3 months ago (2012-09-06 18:34:23 UTC) #16
Elliot Glaysher
On 2012/09/06 18:34:23, Jeffrey Yasskin wrote: > On 2012/09/05 22:42:11, Peter Kasting wrote: > > ...
8 years, 3 months ago (2012-09-06 20:35:15 UTC) #17
Jeffrey Yasskin
Clearlooks: [image: Inline image 1] New Wave: [image: Inline image 2] High Contrast Inverse: [image: ...
8 years, 3 months ago (2012-09-06 23:12:28 UTC) #18
Elliot Glaysher
On Thu, Sep 6, 2012 at 4:12 PM, Jeffrey Yasskin <jyasskin@chromium.org>wrote: > Clearlooks: > [image: ...
8 years, 3 months ago (2012-09-07 16:44:49 UTC) #19
Peter Kasting
https://chromiumcodereview.appspot.com/10834279/diff/33001/chrome/browser/extensions/extension_action_util.h File chrome/browser/extensions/extension_action_util.h (right): https://chromiumcodereview.appspot.com/10834279/diff/33001/chrome/browser/extensions/extension_action_util.h#newcode32 chrome/browser/extensions/extension_action_util.h:32: void PaintExtensionActionBackground(const ExtensionAction& action, This should be in some ...
8 years, 3 months ago (2012-09-07 22:29:33 UTC) #20
Jeffrey Yasskin
This should be ready for an actual review now. It works on all three platforms, ...
8 years, 3 months ago (2012-09-11 01:16:56 UTC) #21
Peter Kasting
http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc File chrome/browser/ui/omnibox/extension_action_util.cc (right): http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc#newcode23 chrome/browser/ui/omnibox/extension_action_util.cc:23: if (action.WantsAttention(tab_id)) { Nit: Or early return so you ...
8 years, 3 months ago (2012-09-11 22:27:47 UTC) #22
Elliot Glaysher
gtk changes are minimal and lgtm.
8 years, 3 months ago (2012-09-11 22:30:34 UTC) #23
Jeffrey Yasskin
I haven't made any changes yet, pending your answers to the comments below. http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc File ...
8 years, 3 months ago (2012-09-11 23:05:28 UTC) #24
Peter Kasting
LGTM, most stuff resolved by IM http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc File chrome/browser/ui/omnibox/extension_action_util.cc (right): http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc#newcode41 chrome/browser/ui/omnibox/extension_action_util.cc:41: canvas->DrawLine(gfx::Point(bounds.x(), bounds.y()), On ...
8 years, 3 months ago (2012-09-11 23:25:41 UTC) #25
Jeffrey Yasskin
Thanks for the reviews! Let's see if I need any more. http://codereview.chromium.org/10834279/diff/38001/chrome/browser/ui/omnibox/extension_action_util.cc File chrome/browser/ui/omnibox/extension_action_util.cc (right): ...
8 years, 3 months ago (2012-09-12 20:29:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10834279/37003
8 years, 3 months ago (2012-09-12 20:29:49 UTC) #27
commit-bot: I haz the power
Try job failure for 10834279-37003 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-12 21:35:39 UTC) #28
Jeffrey Yasskin
+shess to double-check the cocoa code, since I missed a place that I changed the ...
8 years, 3 months ago (2012-09-12 21:56:06 UTC) #29
Scott Hess - ex-Googler
For some reason, when I patch your change in, when I have multiple page actions, ...
8 years, 3 months ago (2012-09-12 22:54:08 UTC) #30
Jeffrey Yasskin
On 2012/09/12 22:54:08, shess wrote: > For some reason, when I patch your change in, ...
8 years, 3 months ago (2012-09-14 22:13:45 UTC) #31
Scott Hess - ex-Googler
LGTM, with the suggested change in the super call to the DrawInFrame() call. On 2012/09/14 ...
8 years, 3 months ago (2012-09-18 20:40:32 UTC) #32
Jeffrey Yasskin
https://codereview.chromium.org/10834279/diff/27037/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm File chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm (right): https://codereview.chromium.org/10834279/diff/27037/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm#newcode109 chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm:109: ImageDecoration::DrawInFrame(frame, control_view); On 2012/09/18 20:40:33, shess wrote: > Either ...
8 years, 3 months ago (2012-09-19 18:24:09 UTC) #33
Scott Hess - ex-Googler
LGTM https://codereview.chromium.org/10834279/diff/27037/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm File chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm (right): https://codereview.chromium.org/10834279/diff/27037/chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm#newcode109 chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm:109: ImageDecoration::DrawInFrame(frame, control_view); On 2012/09/19 18:24:09, Jeffrey Yasskin wrote: ...
8 years, 3 months ago (2012-09-19 19:35:07 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10834279/48001
8 years, 3 months ago (2012-09-19 20:19:06 UTC) #35
commit-bot: I haz the power
8 years, 3 months ago (2012-09-19 21:59:48 UTC) #36
Change committed as 157619

Powered by Google App Engine
This is Rietveld 408576698