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

Issue 3137019: Fix numerous alignment problems, both horizontal and vertical, in drawing the... (Closed)

Created:
10 years, 4 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Fix numerous alignment problems, both horizontal and vertical, in drawing the browser chrome. This doesn't fix problems with the NTP background image offsets (see bug 51853). This also makes sure the OTR avatar is reversed in RTL mode, and clipped as usefully as possible when there isn't enough room for the full image. BUG=44157 TEST=Frame, toolbar, bookmark bar, and find bar all look lined up with default and custom themes, restored and maximized, LTR and RTL, side tabs and normal tabs, and in popup and app windows Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56737

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -358 lines) Patch
M chrome/browser/chromeos/frame/normal_browser_frame_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/frame/normal_browser_frame_view.cc View 1 2 3 4 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/views/detachable_toolbar_view.h View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/views/detachable_toolbar_view.cc View 4 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/views/dropdown_bar_host.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/views/dropdown_bar_host.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/views/find_bar_view.cc View 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/views/frame/app_panel_browser_frame_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/frame/app_panel_browser_frame_view.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_frame.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/views/frame/browser_frame_gtk.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/frame/browser_frame_gtk.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/views/frame/browser_frame_win.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/views/frame/browser_frame_win.cc View 3 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/views/frame/browser_non_client_frame_view.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/views/frame/browser_view.h View 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 4 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/views/frame/browser_view_layout.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/views/frame/glass_browser_frame_view.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/views/frame/glass_browser_frame_view.cc View 12 chunks +91 lines, -86 lines 0 comments Download
M chrome/browser/views/frame/opaque_browser_frame_view.h View 6 chunks +19 lines, -16 lines 0 comments Download
M chrome/browser/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 22 chunks +140 lines, -171 lines 0 comments Download
M chrome/browser/views/frame/popup_non_client_frame_view.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/views/frame/popup_non_client_frame_view.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Peter Kasting
* I can't locally test the ChromeOS changes. If you could do a Linux Views ...
10 years, 4 months ago (2010-08-18 01:01:10 UTC) #1
sky
Chromeos compile fails with: chrome/browser/chromeos/frame/normal_browser_frame_view.cc: In member function 'virtual gfx::Rect chromeos::NormalBrowserFrameView::GetBoundsForTabStrip(BaseTabStr\ ip*) const': chrome/browser/chromeos/frame/normal_browser_frame_view.cc:94: error: ...
10 years, 4 months ago (2010-08-18 16:13:49 UTC) #2
Peter Kasting
Fixed the compile error.
10 years, 4 months ago (2010-08-18 20:24:09 UTC) #3
sky
Assuming you get chromeos building right, LGTM. http://codereview.chromium.org/3137019/diff/11002/6017 File chrome/browser/views/frame/browser_view.cc (right): http://codereview.chromium.org/3137019/diff/11002/6017#newcode630 chrome/browser/views/frame/browser_view.cc:630: gfx::Point window_point(point.Add(gfx::Point(MirroredX(), ...
10 years, 4 months ago (2010-08-18 22:13:09 UTC) #4
Peter Kasting
New snap up that tries to fix alignment on ChromeOS. Can you test it?
10 years, 4 months ago (2010-08-19 01:41:34 UTC) #5
Peter Kasting
Argh, looks like maybe I broke the opaque frame compile in my rush to get ...
10 years, 4 months ago (2010-08-19 03:18:23 UTC) #6
Peter Kasting
OK, try now.
10 years, 4 months ago (2010-08-19 17:33:27 UTC) #7
Peter Kasting
New snap fixes the remaining 1 px offset in the ChromeOS frame, and also fixes ...
10 years, 4 months ago (2010-08-19 19:28:21 UTC) #8
sky
10 years, 4 months ago (2010-08-19 19:32:30 UTC) #9
OK

Powered by Google App Engine
This is Rietveld 408576698