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

Issue 18019: Pixel perfection on tabstrip for non-Aero frame. This gets both ends of the ... (Closed)

Created:
11 years, 11 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google), brettw
Visibility:
Public.

Description

Pixel perfection on tabstrip for non-Aero frame. This gets both ends of the tabstrip positioned correctly for normal and incognito windows, in both restored and maximized modes.The chief change was to correctly transform the bounds returned by the non-client view into the BrowserView's coordinate system, as the Views system expected. To make this not break the world I then had to actually return the right coordinates in the non-client view :). Updated comments on function declarations to hopefully match reality.For convenience this also introduces a function to get the horizontal border size and cleans up existing code to use it.BUG=5054 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=7976

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -36 lines) Patch
M chrome/browser/views/frame/aero_glass_non_client_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_frame.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/views/frame/opaque_non_client_view.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/views/frame/opaque_non_client_view.cc View 1 2 10 chunks +27 lines, -27 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Peter Kasting
11 years, 11 months ago (2009-01-13 21:16:41 UTC) #1
sky
Other than the Rect change, everything else LGTM. http://codereview.chromium.org/18019/diff/1/2 File base/gfx/rect.h (right): http://codereview.chromium.org/18019/diff/1/2#newcode65 Line 65: ...
11 years, 11 months ago (2009-01-13 21:25:48 UTC) #2
Peter Kasting
http://codereview.chromium.org/18019/diff/1/2 File base/gfx/rect.h (right): http://codereview.chromium.org/18019/diff/1/2#newcode65 Line 65: gfx::Point& origin() { return origin_; } On 2009/01/13 ...
11 years, 11 months ago (2009-01-13 21:29:28 UTC) #3
Peter Kasting
Take another look.
11 years, 11 months ago (2009-01-13 21:54:12 UTC) #4
sky
Consider updating the docs of GetBoundsForTabStrip too. It's still confusing to read them then look ...
11 years, 11 months ago (2009-01-13 22:00:39 UTC) #5
Peter Kasting
On 2009/01/13 22:00:39, sky wrote: > Consider updating the docs of GetBoundsForTabStrip too. It's still ...
11 years, 11 months ago (2009-01-13 22:09:30 UTC) #6
sky
11 years, 11 months ago (2009-01-13 22:21:14 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698