OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/extensions/browser_action_test_util.h" | 5 #include "chrome/browser/extensions/browser_action_test_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/mac/bundle_locations.h" | 9 #include "base/mac/bundle_locations.h" |
8 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 #include "base/macros.h" |
9 #include "base/path_service.h" | 12 #include "base/path_service.h" |
10 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
11 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
12 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h" | 15 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 16 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
14 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 17 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
15 #import "chrome/browser/ui/cocoa/extensions/browser_action_button.h" | 18 #import "chrome/browser/ui/cocoa/extensions/browser_action_button.h" |
16 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" | 19 #import "chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h" |
17 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" | 20 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" |
18 #import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h" | 21 #import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() { | 212 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() { |
210 return gfx::Size(NSSizeToCGSize([ExtensionPopupController maxPopupSize])); | 213 return gfx::Size(NSSizeToCGSize([ExtensionPopupController maxPopupSize])); |
211 } | 214 } |
212 | 215 |
213 BrowserActionTestUtil::BrowserActionTestUtil(Browser* browser, | 216 BrowserActionTestUtil::BrowserActionTestUtil(Browser* browser, |
214 BrowserActionTestUtil* main_bar) | 217 BrowserActionTestUtil* main_bar) |
215 : browser_(browser), | 218 : browser_(browser), |
216 test_helper_(new TestToolbarActionsBarHelperCocoa( | 219 test_helper_(new TestToolbarActionsBarHelperCocoa( |
217 browser_, GetController(browser_, main_bar->test_helper_.get()))) { | 220 browser_, GetController(browser_, main_bar->test_helper_.get()))) { |
218 } | 221 } |
OLD | NEW |