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

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed)

Created:
7 years, 5 months ago by pkotwicz
Modified:
5 years, 10 months ago
CC:
chromium-reviews, tfarina, rsesek+watch_chromium.org, oshima+watch_chromium.org
Visibility:
Public.

Description

The offset of the tab strip wrt to the top of the frame is different depending on whether the browser is maximized or not on CrOS. Currently we generate IDR_THEME_TAB_BACKGROUND upon theme install by combining an HSL shifted version "theme_frame" with the "theme_tab_background" provided by the theme author. This process assumes that the offset between the frame and the tabstrip is constant which it is not on CrOS. This CL splits up the HSL shifted "theme_frame" (now IDR_THEME_TAB_BACKGROUND) and the "theme_tab_background" (now IDR_THEME_TAB_BACKGROUND_OVERLAY) provided by the theme author into two separate resources and combines them at paint time. BUG=176857, 166955 TEST=Manual, see bug

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Changes as per sky@ #

Total comments: 2

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -303 lines) Patch
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 17 chunks +165 lines, -125 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 4 5 6 5 chunks +82 lines, -29 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_view.mm View 1 2 3 4 5 6 5 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/themed_window.h View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/tabs/tab_renderer_gtk.h View 1 2 3 1 chunk +12 lines, -7 lines 0 comments Download
M chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc View 1 2 3 5 chunks +54 lines, -50 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 9 chunks +73 lines, -61 lines 0 comments Download
A chrome/browser/ui/views/tabs/tab_paint_util.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/tabs/tab_paint_util.cc View 1 2 3 4 1 chunk +92 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 3 chunks +18 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/theme_image_mapper_aura_win.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/image/image_skia_operations.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
pkotwicz
Scott, can you please take a look at the changes in chrome/browser/ui/views I will make ...
7 years, 5 months ago (2013-07-05 19:31:53 UTC) #1
sky
How about some screen shots of the changes too? https://codereview.chromium.org/18486007/diff/6001/chrome/browser/themes/browser_theme_pack.cc File chrome/browser/themes/browser_theme_pack.cc (right): https://codereview.chromium.org/18486007/diff/6001/chrome/browser/themes/browser_theme_pack.cc#newcode451 chrome/browser/themes/browser_theme_pack.cc:451: ...
7 years, 5 months ago (2013-07-08 14:43:20 UTC) #2
pkotwicz
Scott, can you please take another look?
7 years, 5 months ago (2013-07-08 23:20:39 UTC) #3
sky
LGTM, but wait for Elliot to review browser_theme_pack. https://codereview.chromium.org/18486007/diff/23001/chrome/browser/ui/views/tabs/tab_paint_util.cc File chrome/browser/ui/views/tabs/tab_paint_util.cc (right): https://codereview.chromium.org/18486007/diff/23001/chrome/browser/ui/views/tabs/tab_paint_util.cc#newcode59 chrome/browser/ui/views/tabs/tab_paint_util.cc:59: int ...
7 years, 5 months ago (2013-07-09 00:24:57 UTC) #4
pkotwicz
erg@ you can safely wait to review this CL till I expand this CL to ...
7 years, 5 months ago (2013-07-09 02:22:56 UTC) #5
pkotwicz
erg@ can you please take a look at the changes to chrome/browser/themes and chrome/browser/ui/gtk? sail@ ...
7 years, 5 months ago (2013-07-15 01:50:09 UTC) #6
pkotwicz
Adding sail@ properly as a reviewer
7 years, 5 months ago (2013-07-15 01:50:31 UTC) #7
Elliot Glaysher
lgtm
7 years, 5 months ago (2013-07-15 19:26:43 UTC) #8
pkotwicz
sail@ seems OOO. Nico, can you please take a look?
7 years, 5 months ago (2013-07-17 17:26:11 UTC) #9
Nico
On 2013/07/17 17:26:11, pkotwicz wrote: > sail@ seems OOO. Nico, can you please take a ...
7 years, 5 months ago (2013-07-17 17:34:46 UTC) #10
pkotwicz
Sorry, I should have been more specific. Nico, can you please take a look at ...
7 years, 5 months ago (2013-07-17 17:42:46 UTC) #11
Nico
Ok, will do. re cl description: Add "Fix the misalignment on CrOS of the tab ...
7 years, 5 months ago (2013-07-17 17:47:47 UTC) #12
Nico
I'm a bit surprised that a cros bugfix requires so many changes in cocoa tab ...
7 years, 5 months ago (2013-07-17 18:03:04 UTC) #13
pkotwicz
sail@, can you please take a look at the chrome/browser/ui/cocoa/ changes? thakis@ is OOO I ...
7 years, 4 months ago (2013-08-15 07:09:59 UTC) #14
sail
LGTM, just nits. I didn't follow all the previous discussion so I just looked at ...
7 years, 4 months ago (2013-08-22 18:23:00 UTC) #15
pkotwicz
7 years, 1 month ago (2013-10-25 05:15:33 UTC) #16
https://codereview.chromium.org/18486007/diff/60001/chrome/browser/ui/cocoa/t...
File chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm (right):

https://codereview.chromium.org/18486007/diff/60001/chrome/browser/ui/cocoa/t...
chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm:2334:
rb.GetNativeImageNamed(IDR_THEME_TAB_BACKGROUND_INACTIVE).ToNSImage(),
IDR_THEME_TAB_BACKGROUND_INACTIVE is not a themeable image. I should change the
resource name so that it does not have _THEME_ to make this more obvious.

Powered by Google App Engine
This is Rietveld 408576698