diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 09:10:20 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-16 09:10:20 +0000 |
commit | 12728a26da3b9242a30b977f00a75ad3194f07a1 (patch) | |
tree | 469cd460db60362e4f0e80efcabc3f0cad853f75 /chrome/browser/views/frame/browser_view.h | |
parent | 89f0e7493eb6d5a1a8001e975d0b1c45c47e9fc7 (diff) | |
download | chromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.zip chromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.tar.gz chromium_src-12728a26da3b9242a30b977f00a75ad3194f07a1.tar.bz2 |
Refactoring to reduce chromeos dependency in chrome.
* renamed BrowserLayoutManager to more explicit, BrowserViewLayoutManager.
* Added factory method to create chromeos specific tab/tabstrip and layoutmanagers.
* Introduced ChromeosBrowserView and chromeos specific tab/tabstrip and layoutmanager, and moved chromeos specifi code into them.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/543095
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view.h')
-rw-r--r-- | chrome/browser/views/frame/browser_view.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/chrome/browser/views/frame/browser_view.h b/chrome/browser/views/frame/browser_view.h index c6dc2ce..e786228 100644 --- a/chrome/browser/views/frame/browser_view.h +++ b/chrome/browser/views/frame/browser_view.h @@ -36,7 +36,7 @@ class BookmarkBarView; class Browser; class BrowserBubble; class BrowserExtender; -class BrowserLayoutManager; +class BrowserViewLayoutManager; class DownloadShelfView; class EncodingMenuModel; class ExtensionShelf; @@ -367,16 +367,25 @@ class BrowserView : public BrowserWindow, views::View* child); virtual void ChildPreferredSizeChanged(View* child); + // Factory Methods. + // Returns a new LayoutManager for this browser view. A subclass may + // override to implemnet different layout pocily. + virtual views::LayoutManager* CreateLayoutManager() const; + + // Returns a new TabStrip for the browser view. A subclass may + // override to return a different TabStrip implementation. + virtual TabStrip* CreateTabStrip(TabStripModel* tab_strip_model) const; + private: // Browser window related initializations. - void Init(); + virtual void Init(); #if defined(OS_WIN) // Creates the system menu. void InitSystemMenu(); #endif - // Returns the BrowserLayoutManager. - BrowserLayoutManager* GetBrowserLayoutManager() const; + // Returns the BrowserViewLayoutManager. + BrowserViewLayoutManager* GetBrowserViewLayoutManager() const; // Prepare to show the Bookmark Bar for the specified TabContents. Returns // true if the Bookmark Bar can be shown (i.e. it's supported for this |