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

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout.h

Issue 5606012: Streamline the layout of the BrowserView's children TabContents views.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view_layout.h
===================================================================
--- chrome/browser/ui/views/frame/browser_view_layout.h (revision 68381)
+++ chrome/browser/ui/views/frame/browser_view_layout.h (working copy)
@@ -14,8 +14,13 @@
class BrowserView;
class ContentsContainer;
class DownloadShelfView;
+class TabContentsContainer;
class ToolbarView;
+namespace views {
+class SingleSplitView;
+}
+
// The layout manager used in chrome browser.
class BrowserViewLayout : public views::LayoutManager {
public:
@@ -61,6 +66,12 @@
int LayoutBookmarkBar(int top);
int LayoutInfoBar(int top);
+ // Updates |source|'s reserved contents rect by mapping BrowserView's
+ // |browser_reserved_rect| into |future_source_bounds|.
+ void UpdateReservedContentsRect(const gfx::Rect& browser_reserved_rect,
+ TabContentsContainer* source,
+ const gfx::Rect& would_be_rect);
+
// Layout the TabContents container, between the coordinates |top| and
// |bottom|.
void LayoutTabContents(int top, int bottom);
@@ -88,7 +99,7 @@
// Child views that the layout manager manages.
BaseTabStrip* tabstrip_;
ToolbarView* toolbar_;
- views::View* contents_split_;
+ views::SingleSplitView* contents_split_;
ContentsContainer* contents_container_;
views::View* infobar_container_;
DownloadShelfView* download_shelf_;

Powered by Google App Engine
This is Rietveld 408576698