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

Issue 10115029: Set toolbar padding to something appropriate for Metro icons. (Closed)

Created:
8 years, 8 months ago by Jói
Modified:
8 years, 8 months ago
Reviewers:
sail, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Set toolbar padding to something appropriate for Metro icons. Prepare to handle different sizes of Metro icons, and move now-common code to ui/base/scale.h and .cc BUG=114311 TEST=When launched from Metro, Chrome uses larger icons in the tab strip and they fit in a reasonably balanced way. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134098

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Use metro.h #

Patch Set 4 : Better positioning for new tab button. Simplify scale.h interface. #

Total comments: 2

Patch Set 5 : Remove #ifdef from header. #

Total comments: 3

Patch Set 6 : Address review comments from sky@ #

Patch Set 7 : scale -> layout #

Total comments: 1

Patch Set 8 : Improve comment as requested. #

Patch Set 9 : Merge to checked in predecessors. #

Patch Set 10 : Untouch a couple of files post merge. #

Patch Set 11 : LAYOUT_METRO -> LAYOUT_TOUCH, merge latest changes. #

Patch Set 12 : Const not OK for Mac build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -74 lines) Patch
M chrome/app/theme/metro/tab_active_center_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_active_left_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_active_right_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_alpha_left_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_alpha_right_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_inactive_center_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_inactive_left_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/tab_inactive_right_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/metro/theme_tab_background2_metro_1_0x.png View 1 2 3 4 5 6 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +86 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +81 lines, -37 lines 0 comments Download
A ui/base/layout.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
A ui/base/layout.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -22 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Jói
Sail, would you take an initial look and then I'll ask sky@ for the owners ...
8 years, 8 months ago (2012-04-18 16:34:29 UTC) #1
sail
LGTM! http://codereview.chromium.org/10115029/diff/2001/ui/base/scale.cc File ui/base/scale.cc (right): http://codereview.chromium.org/10115029/diff/2001/ui/base/scale.cc#newcode19 ui/base/scale.cc:19: bool IsInMetroMode() { I've added a new metro.h ...
8 years, 8 months ago (2012-04-18 16:44:14 UTC) #2
Jói
Thanks for the quick review! Responses below, new patch set has been uploaded. Cheers, Jói ...
8 years, 8 months ago (2012-04-18 17:06:31 UTC) #3
Jói
Hi Sailesh, I simplified the interface in scale.h based on our discussion, and also improved ...
8 years, 8 months ago (2012-04-18 20:15:02 UTC) #4
sail
Second LGTM! http://codereview.chromium.org/10115029/diff/3003/ui/base/scale.h File ui/base/scale.h (right): http://codereview.chromium.org/10115029/diff/3003/ui/base/scale.h#newcode17 ui/base/scale.h:17: #if defined(OS_WIN) Would it be better to ...
8 years, 8 months ago (2012-04-18 20:17:26 UTC) #5
Jói
sky: sail@ has reviewed, please take a look for OWNERS approval and any other feedback ...
8 years, 8 months ago (2012-04-18 20:31:14 UTC) #6
sky
Oshima recently added scale factor to Monitor. What is the long term plan for unifying ...
8 years, 8 months ago (2012-04-18 21:50:32 UTC) #7
Jói
Thanks for the review. Monitor seems ASH-specific at the moment, and its concept of scale ...
8 years, 8 months ago (2012-04-19 14:12:03 UTC) #8
sky
LGTM
8 years, 8 months ago (2012-04-19 15:37:05 UTC) #9
Jói
Given the discussion on a separate thread, I renamed the DisplayScale enum and GetDisplayScale function ...
8 years, 8 months ago (2012-04-23 14:20:52 UTC) #10
sky
LGTM
8 years, 8 months ago (2012-04-23 14:43:13 UTC) #11
sail
LGTM! http://codereview.chromium.org/10115029/diff/12001/ui/base/layout.h File ui/base/layout.h (right): http://codereview.chromium.org/10115029/diff/12001/ui/base/layout.h#newcode24 ui/base/layout.h:24: // Returns the display layout that should be ...
8 years, 8 months ago (2012-04-23 15:47:25 UTC) #12
Jói
Done, changed comment to: // Returns the display layout that should be used. This could ...
8 years, 8 months ago (2012-04-23 15:54:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10115029/36001
8 years, 8 months ago (2012-04-26 11:21:24 UTC) #14
commit-bot: I haz the power
Try job failure for 10115029-36001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-26 11:46:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10115029/38006
8 years, 8 months ago (2012-04-26 11:59:56 UTC) #16
commit-bot: I haz the power
8 years, 8 months ago (2012-04-26 13:38:14 UTC) #17
Change committed as 134098

Powered by Google App Engine
This is Rietveld 408576698