1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ 7 8 class BookmarkBarView; 9 class LocationBarView; 10 class ToolbarView; 11 12 namespace views { 13 class View; 14 } 15 16 // A BrowserWindow utility interface used for accessing elements of the browser 17 // UI used only by UI test automation. 18 class BrowserWindowTesting { 19 public: 20 // Returns the BookmarkBarView. 21 virtual BookmarkBarView* GetBookmarkBarView() const = 0; 22 23 // Returns the LocationBarView. 24 virtual LocationBarView* GetLocationBarView() const = 0; 25 26 // Returns the TabContentsContainer. 27 virtual views::View* GetTabContentsContainerView() const = 0; 28 29 // Returns the ToolbarView. 30 virtual ToolbarView* GetToolbarView() const = 0; 31 32 protected: 33 virtual ~BrowserWindowTesting() {} 34 }; 35 36 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_TESTING_VIEWS_H_ 37