diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-27 01:07:18 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-27 01:07:18 +0000 |
commit | da99a54a499890a2773b4c4ed5e9fe54b35780d1 (patch) | |
tree | 7868aae1e1a1a54190322f970e3f91fbf616f992 /chrome/browser/browser_window.h | |
parent | 65e7a79bade71acadf8aee3dd96f93f71080503a (diff) | |
download | chromium_src-da99a54a499890a2773b4c4ed5e9fe54b35780d1.zip chromium_src-da99a54a499890a2773b4c4ed5e9fe54b35780d1.tar.gz chromium_src-da99a54a499890a2773b4c4ed5e9fe54b35780d1.tar.bz2 |
Extract a cross-platform LocationBar interface accessible via the BrowserWindow interface that the Browser object can use to do locationbar-ey things without directly depending on Views.
Review URL: http://codereview.chromium.org/18826
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8693 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r-- | chrome/browser/browser_window.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index 38f32b4..408f4ff 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -5,13 +5,11 @@ #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ #define CHROME_BROWSER_BROWSER_WINDOW_H_ -class BookmarkBarView; class Browser; class BrowserList; -class BrowserView; class BrowserWindowTesting; class GURL; -class LocationBarView; +class LocationBar; class HtmlDialogContentsDelegate; class Profile; class StatusBubble; @@ -25,7 +23,7 @@ class Rect; // BrowserWindow interface // An interface implemented by the "view" of the Browser window. // -// NOTE: all getters, save GetTabStrip(), may return NULL. +// NOTE: All getters except GetTabStrip() may return NULL. class BrowserWindow { public: // Initialize the frame. @@ -89,7 +87,7 @@ class BrowserWindow { virtual bool IsMaximized() = 0; // Returns the location bar. - virtual LocationBarView* GetLocationBarView() const = 0; + virtual LocationBar* GetLocationBar() const = 0; // Informs the view whether or not a load is in progress for the current tab. // The view can use this notification to update the go/stop button. @@ -157,13 +155,19 @@ class BrowserWindow { virtual void DestroyBrowser() = 0; }; +class BookmarkBarView; +class LocationBarView; + // A BrowserWindow utility interface used for accessing elements of the browser // UI used only by UI test automation. class BrowserWindowTesting { -public: + public: #if defined(OS_WIN) - // Returns the Bookmark Bar view. + // Returns the BookmarkBarView. virtual BookmarkBarView* GetBookmarkBarView() = 0; + + // Returns the LocationBarView. + virtual LocationBarView* GetLocationBarView() const = 0; #endif }; |