| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 class ToolbarActionsBar; | 12 class ToolbarActionsBar; |
| 13 | 13 |
| 14 // A cross-platform container that creates and owns a ToolbarActionsBar and the | 14 // A cross-platform container that creates and owns a ToolbarActionsBar and the |
| 15 // corresponding view. | 15 // corresponding view. |
| 16 class TestToolbarActionsBarHelper { | 16 class TestToolbarActionsBarHelper { |
| 17 public: | 17 public: |
| 18 TestToolbarActionsBarHelper() {} | 18 TestToolbarActionsBarHelper() {} |
| 19 virtual ~TestToolbarActionsBarHelper() {} | 19 virtual ~TestToolbarActionsBarHelper() {} |
| 20 | 20 |
| 21 static scoped_ptr<TestToolbarActionsBarHelper> Create(Browser* browser); | 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); |
| 22 | 26 |
| 23 virtual ToolbarActionsBar* GetToolbarActionsBar() = 0; | 27 virtual ToolbarActionsBar* GetToolbarActionsBar() = 0; |
| 24 | 28 |
| 25 private: | 29 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarHelper); | 30 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarHelper); |
| 27 }; | 31 }; |
| 28 | 32 |
| 29 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ | 33 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_ |
| OLD | NEW |