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

Issue 1412833008: Draw the same portion of the frame background behind the tabstrip in maximized (Closed)

Created:
5 years, 1 month ago by Peter Kasting
Modified:
5 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@match_frame_alignment
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Draw the same portion of the frame background behind the tabstrip in maximized mode as in restored mode. Themes which tried to align the tab and frame images couldn't do so in both maximized and restored modes, since the alignment changed; so they had to pick one. This makes the alignment the same in both modes so that themes which looked correct in restored mode will now look correct in maximized mode as well. The other way to fix this -- make restored mode match maximized mode -- isn't possible, as that would put the top of the frame background image in the middle of the top section of the frame in restored windows, leaving nothing above it. This also means that for themes which chose to look correct in maximized mode and wrong in restored mode, they'll now look wrong all the time :(. BUG=none TEST=Apply the "Dots" theme from the webstore. The alignment of the tab and new tab button images against the frame background should be the same in maximized mode as in restored mode. R=sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/8788219e9968bb22f4b850e3c129419fddf3dd21

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -85 lines) Patch
M chrome/browser/ui/views/frame/browser_frame.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 6 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 3 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 15 chunks +27 lines, -27 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 4 chunks +6 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Peter Kasting
https://codereview.chromium.org/1412833008/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (left): https://codereview.chromium.org/1412833008/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#oldcode635 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:635: frame_background_->set_maximized_top_inset(kGTKThemeCondensedFrameTopInset); Note that this is no longer necessary since ...
5 years, 1 month ago (2015-11-05 21:15:27 UTC) #2
sky
Ugh, this feels so wrong. But I don't have any better suggestions. LGTM https://codereview.chromium.org/1412833008/diff/1/chrome/browser/ui/views/frame/browser_view_layout.cc File ...
5 years, 1 month ago (2015-11-06 16:49:48 UTC) #3
Peter Kasting
https://codereview.chromium.org/1412833008/diff/1/chrome/browser/ui/views/frame/browser_view_layout.cc File chrome/browser/ui/views/frame/browser_view_layout.cc (right): https://codereview.chromium.org/1412833008/diff/1/chrome/browser/ui/views/frame/browser_view_layout.cc#newcode327 chrome/browser/ui/views/frame/browser_view_layout.cc:327: int y = browser_view_->y() + delegate_->GetTopInsetInBrowserView(true); On 2015/11/06 16:49:48, ...
5 years, 1 month ago (2015-11-06 22:04:04 UTC) #4
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/8788219e9968bb22f4b850e3c129419fddf3dd21 Cr-Commit-Position: refs/heads/master@{#358512}
5 years, 1 month ago (2015-11-07 03:53:25 UTC) #5
Peter Kasting
5 years, 1 month ago (2015-11-07 03:53:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
8788219e9968bb22f4b850e3c129419fddf3dd21 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698