diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 22:41:28 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-07-31 22:41:28 +0000 |
commit | 195442ebb93e6c6246583250fa4a0dcbb3cec7d0 (patch) | |
tree | ff402b20fdc82e749860ac6ef866fd932e5cd5b6 /chrome/browser/browser_window.h | |
parent | 7451693da9a8b91ff52d4394e3f106e1687fefd2 (diff) | |
download | chromium_src-195442ebb93e6c6246583250fa4a0dcbb3cec7d0.zip chromium_src-195442ebb93e6c6246583250fa4a0dcbb3cec7d0.tar.gz chromium_src-195442ebb93e6c6246583250fa4a0dcbb3cec7d0.tar.bz2 |
Move BrowserToolbarView to the frames (XPFrame/VistaFrame).
This causes some temporary duplication of code in xp/vista frames but it will be temporary. My goal is to move all the top level browser level views into the frames. From there, I will move them from the frames into their new home - BrowserView (chrome/browser/views/frames/browser_view.cc), and each frame will host a BrowserView. This will reduce duplication of code.
To make this change I had to add a bunch of methods to the BrowserWindow (nee ChromeFrame) interface to provide access to some of the toolbar's contents. Excuse the ugly API, we will be improving this incrementally.
B=1031854
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r-- | chrome/browser/browser_window.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index 8f5a0da..4e06efd 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -40,9 +40,13 @@ class BrowserList; namespace ChromeViews { class RootView; } +class GoButton; +class LocationBarView; +class Profile; class StatusBubble; class TabContents; class TabStrip; +class ToolbarStarToggle; //////////////////////////////////////////////////////////////////////////////// // BrowserWindow interface @@ -174,6 +178,24 @@ class BrowserWindow { DefWindowProc(hwnd, WM_NCACTIVATE, FALSE, 0); } + // Returns the star button. + virtual ToolbarStarToggle* GetStarButton() const = 0; + + // Returns the location bar. + virtual LocationBarView* GetLocationBarView() const = 0; + + // Returns the go button. + virtual GoButton* GetGoButton() const = 0; + + // Updates the toolbar with the state for the specified |contents|. + virtual void Update(TabContents* contents, bool should_restore_state) = 0; + + // Updates the UI with the specified Profile. + virtual void ProfileChanged(Profile* profile) = 0; + + // Focuses the toolbar (for accessibility). + virtual void FocusToolbar() = 0; + protected: friend class BrowserList; virtual void DestroyBrowser() = 0; |