|
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
Total comments: 7
|
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
|
Total messages: 6 (0 generated)
|