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 11095008: New action box button images and supporting code (Closed)

Created:
8 years, 2 months ago by yefimt
Modified:
8 years, 2 months ago
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Updated images, changed code to support new image size. New images include transparent area that goes on top of location bar border. BUG=125307 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=161926

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, --5 lines) Patch
M chrome/app/theme/default_100_percent/action_box_button_hover.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/default_100_percent/action_box_button_normal.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/default_100_percent/action_box_button_pushed.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/default_200_percent/action_box_button_hover.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/default_200_percent/action_box_button_normal.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/default_200_percent/action_box_button_pushed.png View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/views/location_bar/action_box_button_view.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/action_box_button_view.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
yefimt
pkasting: chrome/browser/ui/views/location_bar/* sail: chrome/app/theme/*
8 years, 2 months ago (2012-10-11 22:21:03 UTC) #1
sail
Hi, could you make sure to run pngcrush on all images. Instructions are in app/theme/README
8 years, 2 months ago (2012-10-11 22:23:07 UTC) #2
sail
8 years, 2 months ago (2012-10-11 22:23:12 UTC) #3
sail
lgtm
8 years, 2 months ago (2012-10-11 22:23:18 UTC) #4
Peter Kasting
https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right): https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc#newcode66 chrome/browser/ui/views/location_bar/action_box_button_view.cc:66: kTopBorderOverlapThickness + 1); Why do we need the +1? ...
8 years, 2 months ago (2012-10-12 00:32:15 UTC) #5
yefimt
https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right): https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc#newcode66 chrome/browser/ui/views/location_bar/action_box_button_view.cc:66: kTopBorderOverlapThickness + 1); The reason transparent pixels are included ...
8 years, 2 months ago (2012-10-12 17:10:44 UTC) #6
Peter Kasting
https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right): https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc#newcode66 chrome/browser/ui/views/location_bar/action_box_button_view.cc:66: kTopBorderOverlapThickness + 1); On 2012/10/12 17:10:44, yefimt wrote: > ...
8 years, 2 months ago (2012-10-12 17:36:20 UTC) #7
yefimt
https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right): https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.cc#newcode66 chrome/browser/ui/views/location_bar/action_box_button_view.cc:66: kTopBorderOverlapThickness + 1); In 200% mode, size of the ...
8 years, 2 months ago (2012-10-12 17:43:17 UTC) #8
Peter Kasting
OK, I understand why we'd have 23/48 px then. But it still seems like we ...
8 years, 2 months ago (2012-10-12 18:07:23 UTC) #9
yefimt
See inline On 2012/10/12 18:07:23, Peter Kasting wrote: > OK, I understand why we'd have ...
8 years, 2 months ago (2012-10-12 18:16:57 UTC) #10
yefimt
https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.h File chrome/browser/ui/views/location_bar/action_box_button_view.h (right): https://chromiumcodereview.appspot.com/11095008/diff/4003/chrome/browser/ui/views/location_bar/action_box_button_view.h#newcode29 chrome/browser/ui/views/location_bar/action_box_button_view.h:29: static const int kBottomBorderOverlapThickness; Removed second static area and ...
8 years, 2 months ago (2012-10-12 20:09:38 UTC) #11
Peter Kasting
On 2012/10/12 18:16:57, yefimt wrote: > See inline BTW, in the future, please try to ...
8 years, 2 months ago (2012-10-12 20:54:49 UTC) #12
Peter Kasting
https://chromiumcodereview.appspot.com/11095008/diff/25001/chrome/browser/ui/views/location_bar/action_box_button_view.h File chrome/browser/ui/views/location_bar/action_box_button_view.h (right): https://chromiumcodereview.appspot.com/11095008/diff/25001/chrome/browser/ui/views/location_bar/action_box_button_view.h#newcode28 chrome/browser/ui/views/location_bar/action_box_button_view.h:28: void SetClickableHeight(int clickable_height) { This is much worse than ...
8 years, 2 months ago (2012-10-12 20:57:30 UTC) #13
yefimt
macourteau@ was implementing Mac side of action box button and after talking to his reviewer ...
8 years, 2 months ago (2012-10-12 20:59:00 UTC) #14
Peter Kasting
On 2012/10/12 20:59:00, yefimt wrote: > macourteau@ was implementing Mac side of action box button ...
8 years, 2 months ago (2012-10-12 21:06:21 UTC) #15
stromme
> +macourteau. Marc-Antoine, could you explain more about the Mac constraints > here? On views ...
8 years, 2 months ago (2012-10-12 21:19:04 UTC) #16
Peter Kasting
On 2012/10/12 21:19:04, stromme wrote: > On Mac the @2x images must be exactly double ...
8 years, 2 months ago (2012-10-12 21:20:59 UTC) #17
yefimt
On 2012/10/12 21:20:59, Peter Kasting wrote: > On 2012/10/12 21:19:04, stromme wrote: > > On ...
8 years, 2 months ago (2012-10-12 22:53:37 UTC) #18
Peter Kasting
No, they're not. SetClickableHeight() shouldn't exist. clickable_height_ shouldn't exist. The top border overlap has mysteriously ...
8 years, 2 months ago (2012-10-12 22:56:14 UTC) #19
yefimt
Why clickable_height_ should not exist? I think it is reasonable for location bar to set ...
8 years, 2 months ago (2012-10-12 23:09:18 UTC) #20
Peter Kasting
On 2012/10/12 23:09:18, yefimt wrote: > Why clickable_height_ should not exist? I think it is ...
8 years, 2 months ago (2012-10-12 23:13:33 UTC) #21
yefimt
Yes, I did miss it. Done https://chromiumcodereview.appspot.com/11095008/diff/25001/chrome/browser/ui/views/location_bar/action_box_button_view.h File chrome/browser/ui/views/location_bar/action_box_button_view.h (right): https://chromiumcodereview.appspot.com/11095008/diff/25001/chrome/browser/ui/views/location_bar/action_box_button_view.h#newcode28 chrome/browser/ui/views/location_bar/action_box_button_view.h:28: void SetClickableHeight(int clickable_height) ...
8 years, 2 months ago (2012-10-12 23:27:34 UTC) #22
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/views/location_bar/action_box_button_view.cc File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right): https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/views/location_bar/action_box_button_view.cc#newcode22 chrome/browser/ui/views/location_bar/action_box_button_view.cc:22: // location bar border. Nit: Don't repeat this ...
8 years, 2 months ago (2012-10-13 00:25:29 UTC) #23
yefimt
8 years, 2 months ago (2012-10-13 00:51:30 UTC) #24
https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
File chrome/browser/ui/views/location_bar/action_box_button_view.cc (right):

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
chrome/browser/ui/views/location_bar/action_box_button_view.cc:22: // location
bar border.
On 2012/10/13 00:25:29, Peter Kasting wrote:
> Nit: Don't repeat this comment

Done.

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
chrome/browser/ui/views/location_bar/action_box_button_view.cc:28: const int
kBottomBorderOverlapThickness = 2;
On 2012/10/13 00:25:29, Peter Kasting wrote:
> Nit: Eliminate this constant and rename the other variable "kBorderOverlap"
> since the top and bottom border overlaps are equal

Done.

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
File chrome/browser/ui/views/location_bar/action_box_button_view.h (right):

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
chrome/browser/ui/views/location_bar/action_box_button_view.h:29: // location
bar border.
On 2012/10/13 00:25:29, Peter Kasting wrote:
> Nit: Slightly better:
> 
>   // The action box image is transparent at the top and bottom and overlaps
the
>   // location bar border.
>   static const int kBorderOverlap;
> 
> (See also the .cc file regarding naming)

Done.

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
chrome/browser/ui/views/location_bar/action_box_button_view.h:30: static const
int kTopBorderOverlapThickness;
On 2012/10/13 00:25:29, Peter Kasting wrote:
> Nit: Per the Google style guide, constants go above constructor/destructor

Done.

https://chromiumcodereview.appspot.com/11095008/diff/43002/chrome/browser/ui/...
chrome/browser/ui/views/location_bar/action_box_button_view.h:40: // Overridden
from veiws::View:
On 2012/10/13 00:25:29, Peter Kasting wrote:
> Nit: veiws -> views

Done.

Powered by Google App Engine
This is Rietveld 408576698