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 #include "chrome/browser/ui/toolbar/test_toolbar_actions_bar_helper.h" | 5 #include "chrome/browser/ui/toolbar/test_toolbar_actions_bar_helper.h" |
6 | 6 |
7 #import "base/mac/scoped_nsobject.h" | 7 #import "base/mac/scoped_nsobject.h" |
8 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" | 8 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" |
9 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" | 9 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" |
10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 // The cocoa implementation of the TestToolbarActionsBarHelper, which creates | 14 // The Cocoa implementation of the TestToolbarActionsBarHelper, which creates |
15 // (and owns) a BrowserActionsController and BrowserActionsContainerView for | 15 // (and owns) a BrowserActionsController and BrowserActionsContainerView for |
16 // testing purposes. | 16 // testing purposes. |
17 class TestToolbarActionsBarHelperCocoa : public TestToolbarActionsBarHelper { | 17 class TestToolbarActionsBarHelperCocoa : public TestToolbarActionsBarHelper { |
18 public: | 18 public: |
19 TestToolbarActionsBarHelperCocoa(Browser* browser, | 19 TestToolbarActionsBarHelperCocoa(Browser* browser, |
20 TestToolbarActionsBarHelperCocoa* mainBar); | 20 TestToolbarActionsBarHelperCocoa* mainBar); |
21 ~TestToolbarActionsBarHelperCocoa() override; | 21 ~TestToolbarActionsBarHelperCocoa() override; |
22 | 22 |
23 private: | 23 private: |
24 // TestToolbarActionsBarHelper: | 24 // TestToolbarActionsBarHelper: |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 } // namespace | 57 } // namespace |
58 | 58 |
59 scoped_ptr<TestToolbarActionsBarHelper> TestToolbarActionsBarHelper::Create( | 59 scoped_ptr<TestToolbarActionsBarHelper> TestToolbarActionsBarHelper::Create( |
60 Browser* browser, | 60 Browser* browser, |
61 TestToolbarActionsBarHelper* main_bar) { | 61 TestToolbarActionsBarHelper* main_bar) { |
62 return make_scoped_ptr(new TestToolbarActionsBarHelperCocoa( | 62 return make_scoped_ptr(new TestToolbarActionsBarHelperCocoa( |
63 browser, | 63 browser, |
64 static_cast<TestToolbarActionsBarHelperCocoa*>(main_bar))); | 64 static_cast<TestToolbarActionsBarHelperCocoa*>(main_bar))); |
65 } | 65 } |
OLD | NEW |