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.
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
12 class ToolbarActionsBar
;
14 // A cross-platform container that creates and owns a ToolbarActionsBar and the
15 // corresponding view.
16 class TestToolbarActionsBarHelper
{
18 TestToolbarActionsBarHelper() {}
19 virtual ~TestToolbarActionsBarHelper() {}
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(
25 TestToolbarActionsBarHelper
* main_bar
);
27 virtual ToolbarActionsBar
* GetToolbarActionsBar() = 0;
30 DISALLOW_COPY_AND_ASSIGN(TestToolbarActionsBarHelper
);
33 #endif // CHROME_BROWSER_UI_TOOLBAR_TEST_TOOLBAR_ACTIONS_BAR_HELPER_H_