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

Issue 5606012: Streamline the layout of the BrowserView's children TabContents views.... (Closed)

Created:
10 years ago by Aleksey Shlyapnikov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Streamline the layout of the BrowserView's children TabContents views. Modify SingleSplitView to calculate its children view's bounds, but do not actually resize them and change BrowserViewLayout accordingly (BrowserViewLayout resizes all views now). Do all reserved contents rect calculations before resizing TabContents views. Rationale: to do all BrowserView layout related actions in the context of BrowserViewLayout::Layout call and to minimize actual contents re-layouts. BUG=51084 TEST=All tests should pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71230

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 21

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -156 lines) Patch
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 11 chunks +23 lines, -47 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 1 2 3 4 5 3 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 3 chunks +109 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_container.h View 1 2 3 4 5 4 chunks +8 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_container.cc View 1 2 3 4 5 7 chunks +18 lines, -22 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/single_split_view.h View 1 2 3 4 5 5 chunks +52 lines, -6 lines 0 comments Download
M views/controls/single_split_view.cc View 1 2 3 4 5 6 chunks +96 lines, -51 lines 0 comments Download
A views/controls/single_split_view_unittest.cc View 1 2 3 4 5 1 chunk +170 lines, -0 lines 0 comments Download
M views/examples/single_split_view_example.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M views/views.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ben Goodger (Google)
Scott can look at the SingleSplitView stuff... the integration in BrowserView does look like an ...
9 years, 11 months ago (2011-01-06 17:05:19 UTC) #1
sky
http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc#newcode1819 chrome/browser/ui/views/frame/browser_view.cc:1819: Layout(); You should mark the children of the splitter ...
9 years, 11 months ago (2011-01-06 17:55:02 UTC) #2
Aleksey Shlyapnikov
http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc#newcode1819 chrome/browser/ui/views/frame/browser_view.cc:1819: Layout(); Even if we know this view uses custom ...
9 years, 11 months ago (2011-01-07 19:07:23 UTC) #3
sky
http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): http://codereview.chromium.org/5606012/diff/11001/chrome/browser/ui/views/frame/browser_view.cc#newcode1819 chrome/browser/ui/views/frame/browser_view.cc:1819: Layout(); On 2011/01/07 19:07:23, Aleksey Shlyapnikov wrote: > Even ...
9 years, 11 months ago (2011-01-07 21:35:40 UTC) #4
Aleksey Shlyapnikov
http://codereview.chromium.org/5606012/diff/24001/views/controls/single_split_view.cc File views/controls/single_split_view.cc (right): http://codereview.chromium.org/5606012/diff/24001/views/controls/single_split_view.cc#newcode50 views/controls/single_split_view.cc:50: divider_offset_ = NormalizeDividerOffset(divider_offset_); On 2011/01/07 21:35:40, sky wrote: > ...
9 years, 11 months ago (2011-01-07 23:06:00 UTC) #5
Aleksey Shlyapnikov
http://codereview.chromium.org/5606012/diff/24001/views/controls/single_split_view.cc File views/controls/single_split_view.cc (right): http://codereview.chromium.org/5606012/diff/24001/views/controls/single_split_view.cc#newcode66 views/controls/single_split_view.cc:66: if (observer_) On 2011/01/07 23:06:00, Aleksey Shlyapnikov wrote: > ...
9 years, 11 months ago (2011-01-08 23:54:40 UTC) #6
sky
Yes, this looks good. Could you create a unit test to cover some of the ...
9 years, 11 months ago (2011-01-10 16:51:22 UTC) #7
sky
I'm giving the LGTM. Feel free to do the unit test in a separate patch ...
9 years, 11 months ago (2011-01-10 16:51:57 UTC) #8
Aleksey Shlyapnikov
Now synced to the latest and with unittest.
9 years, 11 months ago (2011-01-11 01:43:19 UTC) #9
sky
9 years, 11 months ago (2011-01-11 17:03:19 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698