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

Issue 14589016: Unit test for BrowserViewLayout that does not depend on BrowserView (Closed)

Created:
7 years, 7 months ago by James Cook
Modified:
7 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Unit test for BrowserViewLayout that does not depend on BrowserView * Break off the friendship between BrowserView and BrowserViewLayout * Add BrowserViewLayoutDelegate * Inject child views into BrowserViewLayout * Convert several views to be held as views::View BUG=233374 TEST=unit_tests BrowserViewLayout* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200407

Patch Set 1 #

Patch Set 2 : passes Layout #

Patch Set 3 : layout works thru toolbar #

Total comments: 5

Patch Set 4 : review comments #

Patch Set 5 : BrowserViewLayout owns its delegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -121 lines) Patch
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 7 chunks +57 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 chunks +36 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 21 chunks +85 lines, -81 lines 0 comments Download
A chrome/browser/ui/views/frame/browser_view_layout_delegate.h View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout_unittest.cc View 1 2 3 4 2 chunks +216 lines, -18 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_container.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_container.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
James Cook
Scott, PTAL. There are still many more test cases to build, but I'd like to ...
7 years, 7 months ago (2013-05-14 23:25:13 UTC) #1
sky
Nice! https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h File chrome/browser/ui/views/frame/browser_view_layout.h (right): https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h#newcode38 chrome/browser/ui/views/frame/browser_view_layout.h:38: class BrowserViewLayoutDelegate { put in its own header. ...
7 years, 7 months ago (2013-05-15 00:37:22 UTC) #2
James Cook
sky, please have another look https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h File chrome/browser/ui/views/frame/browser_view_layout.h (right): https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h#newcode38 chrome/browser/ui/views/frame/browser_view_layout.h:38: class BrowserViewLayoutDelegate { On ...
7 years, 7 months ago (2013-05-15 16:45:39 UTC) #3
sky
https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h File chrome/browser/ui/views/frame/browser_view_layout.h (right): https://codereview.chromium.org/14589016/diff/8001/chrome/browser/ui/views/frame/browser_view_layout.h#newcode40 chrome/browser/ui/views/frame/browser_view_layout.h:40: virtual ~BrowserViewLayoutDelegate() {} On 2013/05/15 16:45:39, James Cook (Chromium) ...
7 years, 7 months ago (2013-05-15 17:24:51 UTC) #4
James Cook
sky, PTAL. I made the BrowserViewLayout own its delegate. Just for my education.... I still ...
7 years, 7 months ago (2013-05-15 20:46:43 UTC) #5
sky
For the specific pattern I was referring to to work you need to make BrowserView ...
7 years, 7 months ago (2013-05-15 20:49:43 UTC) #6
sky
LGTM
7 years, 7 months ago (2013-05-15 20:49:58 UTC) #7
James Cook
On 2013/05/15 20:49:58, sky wrote: > LGTM Ah, that makes sense. Thanks!
7 years, 7 months ago (2013-05-15 20:51:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/14589016/22001
7 years, 7 months ago (2013-05-15 20:51:52 UTC) #9
commit-bot: I haz the power
7 years, 7 months ago (2013-05-16 01:15:49 UTC) #10
Message was sent while issue was closed.
Change committed as 200407

Powered by Google App Engine
This is Rietveld 408576698