summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_window.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 01:34:52 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-22 01:34:52 +0000
commit0ba1f530cf1dfac50ddb7d3b9ef34f2a753947c4 (patch)
tree7157570d422627b8471e4fe075e82cb43a8fdc9a /chrome/browser/browser_window.h
parent26c030c76f80811a71243e192c0c1631b62105b8 (diff)
downloadchromium_src-0ba1f530cf1dfac50ddb7d3b9ef34f2a753947c4.zip
chromium_src-0ba1f530cf1dfac50ddb7d3b9ef34f2a753947c4.tar.gz
chromium_src-0ba1f530cf1dfac50ddb7d3b9ef34f2a753947c4.tar.bz2
Move automation specific accessors to their own interface to make their purpose clear, and make porting easier.
Review URL: http://codereview.chromium.org/18481 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8435 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r--chrome/browser/browser_window.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h
index aec7107..c2b4f07 100644
--- a/chrome/browser/browser_window.h
+++ b/chrome/browser/browser_window.h
@@ -9,6 +9,7 @@ class BookmarkBarView;
class Browser;
class BrowserList;
class BrowserView;
+class BrowserWindowTesting;
class GoButton;
class LocationBarView;
class HtmlDialogContentsDelegate;
@@ -54,6 +55,10 @@ class BrowserWindow {
// returns an HWND. DO NOT USE IN CROSS PLATFORM CODE.
virtual void* GetNativeHandle() = 0;
+ // Returns a pointer to the testing interface to the Browser window, or NULL
+ // if there is none.
+ virtual BrowserWindowTesting* GetBrowserWindowTesting() = 0;
+
// TODO(beng): REMOVE (obtain via BrowserFrame).
// Return the TabStrip associated with the frame.
virtual TabStrip* GetTabStrip() const = 0;
@@ -95,9 +100,6 @@ class BrowserWindow {
// Returns the go button.
virtual GoButton* GetGoButton() const = 0;
- // Returns the Bookmark Bar view.
- virtual BookmarkBarView* GetBookmarkBarView() = 0;
-
// Updates the toolbar with the state for the specified |contents|.
virtual void UpdateToolbar(TabContents* contents,
bool should_restore_state) = 0;
@@ -147,4 +149,14 @@ class BrowserWindow {
virtual void DestroyBrowser() = 0;
};
+// A BrowserWindow utility interface used for accessing elements of the browser
+// UI used only by UI test automation.
+class BrowserWindowTesting {
+public:
+#if defined(OS_WIN)
+ // Returns the Bookmark Bar view.
+ virtual BookmarkBarView* GetBookmarkBarView() = 0;
+#endif
+};
+
#endif // CHROME_BROWSER_BROWSER_WINDOW_H__