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

Issue 23724019: Rework OpaqueBrowserFrameViewLayout. (Closed)

Created:
7 years, 3 months ago by Elliot Glaysher
Modified:
7 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Rework OpaqueBrowserFrameViewLayout. Instead of having absolute positions for most elements, Layout() now works one by one, packing the View in question onto either the left or right. This should allow us to configure whether window control buttons are being inserted on the left or the right. BUG=281788 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221633

Patch Set 1 #

Total comments: 6

Patch Set 2 : sky fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -141 lines) Patch
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 5 chunks +48 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 10 chunks +249 lines, -133 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
https://codereview.chromium.org/23724019/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/23724019/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode403 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:403: button_size.height()); The whole left alignment case here does work, ...
7 years, 3 months ago (2013-09-05 00:49:30 UTC) #1
Elliot Glaysher
7 years, 3 months ago (2013-09-05 00:49:37 UTC) #2
sky
https://codereview.chromium.org/23724019/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): https://codereview.chromium.org/23724019/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc#newcode236 chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc:236: minimize_button_->SetVisible(false); Initially making hidden and then making visible right ...
7 years, 3 months ago (2013-09-05 15:54:32 UTC) #3
Elliot Glaysher
PTAL. Also using switch statements now, leading/trailing instead of left/right, etc. https://codereview.chromium.org/23724019/diff/1/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc (right): ...
7 years, 3 months ago (2013-09-05 19:35:48 UTC) #4
sky
LGTM
7 years, 3 months ago (2013-09-05 20:40:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/23724019/24001
7 years, 3 months ago (2013-09-06 00:44:56 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-06 07:47:58 UTC) #7
Message was sent while issue was closed.
Change committed as 221633

Powered by Google App Engine
This is Rietveld 408576698