Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/browser/extensions/browser_action_test_util_mac.mm

Issue 6326006: [Mac] Organize some files into chrome/browser/ui/cocoa/toolbar/.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/back_forward_menu_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "browser_action_test_util.h" 5 #include "browser_action_test_util.h"
6 6
7 #include "base/sys_string_conversions.h" 7 #include "base/sys_string_conversions.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h" 9 #import "chrome/browser/ui/cocoa/browser_window_cocoa.h"
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
11 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h" 11 #import "chrome/browser/ui/cocoa/extensions/browser_actions_controller.h"
12 #import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h" 12 #import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h"
13 #import "chrome/browser/ui/cocoa/info_bubble_window.h" 13 #import "chrome/browser/ui/cocoa/info_bubble_window.h"
14 #import "chrome/browser/ui/cocoa/toolbar_controller.h" 14 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h"
15 #include "gfx/rect.h" 15 #include "gfx/rect.h"
16 #include "gfx/size.h" 16 #include "gfx/size.h"
17 17
18 namespace { 18 namespace {
19 19
20 BrowserActionsController* GetController(Browser* browser) { 20 BrowserActionsController* GetController(Browser* browser) {
21 BrowserWindowCocoa* window = 21 BrowserWindowCocoa* window =
22 static_cast<BrowserWindowCocoa*>(browser->window()); 22 static_cast<BrowserWindowCocoa*>(browser->window());
23 23
24 return [[window->cocoa_controller() toolbarController] 24 return [[window->cocoa_controller() toolbarController]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 return !HasPopup(); 66 return !HasPopup();
67 } 67 }
68 68
69 gfx::Size BrowserActionTestUtil::GetMinPopupSize() { 69 gfx::Size BrowserActionTestUtil::GetMinPopupSize() {
70 return gfx::Size(NSSizeToCGSize([ExtensionPopupController minPopupSize])); 70 return gfx::Size(NSSizeToCGSize([ExtensionPopupController minPopupSize]));
71 } 71 }
72 72
73 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() { 73 gfx::Size BrowserActionTestUtil::GetMaxPopupSize() {
74 return gfx::Size(NSSizeToCGSize([ExtensionPopupController maxPopupSize])); 74 return gfx::Size(NSSizeToCGSize([ExtensionPopupController maxPopupSize]));
75 } 75 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/back_forward_menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698