OLD | NEW |
| (Empty) |
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_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | |
6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 | |
11 class Browser; | |
12 class ToolbarActionsBar; | |
13 | |
14 // A cross-platform container that creates and owns a ToolbarActionsBar and the | |
15 // corresponding view. | |
16 class TestToolbarActionsBarHelper { | |
17 public: | |
18 TestToolbarActionsBarHelper() {} | |
19 virtual ~TestToolbarActionsBarHelper() {} | |
20 | |
21 // Creates and returns a TestToolbarActionsBarHelper. If |main_bar| is | |
22 // non-null, the created actions bar will be in overflow mode. | |
23 static scoped_ptr<TestToolbarActionsBarHelper> Create( | |
24 Browser* browser, | |
25 TestToolbarActionsBarHelper* main_bar); | |
26 | |
27 virtual ToolbarActionsBar* GetToolbarActionsBar() = 0; | |
28 | |
29 private: | |
30 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarHelper); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | |
OLD | NEW |