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

Issue 23531006: Factor out the layout code from OpaqueBrowserFrameView for testing. (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

Factor out the layout code from OpaqueBrowserFrameView for testing. As is, OpaqueBrowserFrameView is untestable due to its dependencies. This patch separates out all the layout and sizing logic into a LayoutManager subclass, makes OpaqueBrowserFrameView use that, and then adds tests for the new LayoutManager. Note that I've deliberately made as few cleanups to the layout logic as possible. The point is to get this code under test before I start more radical changes. BUG=281788 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220683

Patch Set 1 #

Patch Set 2 : Hopefully fix win7_aura and linux_chromeos. #

Patch Set 3 : Reupload, hopefully without the trybot issues this time. #

Patch Set 4 : Experimentally remove CHROMEOS ifdefs in OBFVL. That shouldn't be used on chromeos anymore. #

Patch Set 5 : More clean, hopefully fix that final chromeos test #

Total comments: 7

Patch Set 6 : sky fixes #

Patch Set 7 : Add string casts to make MSVS happy. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1109 lines, -382 lines) Patch
M chrome/browser/ui/view_ids.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 10 chunks +26 lines, -39 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 17 chunks +113 lines, -343 lines 0 comments Download
A chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 1 chunk +118 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 1 chunk +459 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_delegate.h View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 3 4 1 chunk +303 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/button/image_button.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M ui/views/controls/button/image_button.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Elliot Glaysher
7 years, 3 months ago (2013-08-30 00:12:10 UTC) #1
sky
https://codereview.chromium.org/23531006/diff/59001/chrome/browser/ui/view_ids.h File chrome/browser/ui/view_ids.h (right): https://codereview.chromium.org/23531006/diff/59001/chrome/browser/ui/view_ids.h#newcode17 chrome/browser/ui/view_ids.h:17: // Views which make up the skyline. Document these ...
7 years, 3 months ago (2013-08-30 16:35:18 UTC) #2
Elliot Glaysher
ptal https://codereview.chromium.org/23531006/diff/59001/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/23531006/diff/59001/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc#oldcode284 chrome/browser/ui/views/frame/opaque_browser_frame_view.cc:284: #if !defined(OS_CHROMEOS) On 2013/08/30 16:35:18, sky wrote: > ...
7 years, 3 months ago (2013-08-30 17:55:01 UTC) #3
sky
LGTM
7 years, 3 months ago (2013-08-30 19:50:29 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/23531006/83001
7 years, 3 months ago (2013-08-30 19:55:40 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 22:56:45 UTC) #6
Message was sent while issue was closed.
Change committed as 220683

Powered by Google App Engine
This is Rietveld 408576698