diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-02 23:25:17 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-02 23:25:17 +0000 |
commit | 38d622c98a153ce36ee19afe6473e68071b293f1 (patch) | |
tree | bbb7ded3cec22408ad93342a5d1caa374bc800a3 /chrome/browser/ui/browser_window_testing_views.h | |
parent | 00bf67017813292c521c94b8860f30993edf1042 (diff) | |
download | chromium_src-38d622c98a153ce36ee19afe6473e68071b293f1.zip chromium_src-38d622c98a153ce36ee19afe6473e68071b293f1.tar.gz chromium_src-38d622c98a153ce36ee19afe6473e68071b293f1.tar.bz2 |
Move BrowserWindowTesting into its own header (browser_window_testing_views.h)
BrowserWindowTesting is only implemented on views platforms. On Mac,
BrowserWindow::GetBrowserWindowTesting() always returns NULL so a
forward declare will do.
This lets us get rid of a bunch of #ifdefs and helps prepare the
`chrome` target for compiling on Mac with toolkit_views=1.
BUG=390755
TBR=nkostylev@chromium.org
Review URL: https://codereview.chromium.org/366993002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@281109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_window_testing_views.h')
-rw-r--r-- | chrome/browser/ui/browser_window_testing_views.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_window_testing_views.h b/chrome/browser/ui/browser_window_testing_views.h new file mode 100644 index 0000000..62627ed3 --- /dev/null +++ b/chrome/browser/ui/browser_window_testing_views.h @@ -0,0 +1,36 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ +#define CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ + +class BookmarkBarView; +class LocationBarView; +class ToolbarView; + +namespace views { +class View; +} + +// A BrowserWindow utility interface used for accessing elements of the browser +// UI used only by UI test automation. +class BrowserWindowTesting { + public: + // Returns the BookmarkBarView. + virtual BookmarkBarView* GetBookmarkBarView() const = 0; + + // Returns the LocationBarView. + virtual LocationBarView* GetLocationBarView() const = 0; + + // Returns the TabContentsContainer. + virtual views::View* GetTabContentsContainerView() const = 0; + + // Returns the ToolbarView. + virtual ToolbarView* GetToolbarView() const = 0; + + protected: + virtual ~BrowserWindowTesting() {} +}; + +#endif // CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ |