OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "chrome/browser/ui/cocoa/browser_window_controller.h" | 6 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_window.h" | 8 #include "chrome/browser/ui/browser_window.h" |
9 | 9 |
10 #if !defined(MAC_VIEWS_BROWSER) | |
tapted
2014/11/04 02:33:42
I think it's more conventional to exclude the enti
Andre
2014/11/05 02:04:22
Done.
| |
10 // Create the controller for the Browser, which handles loading the browser | 11 // Create the controller for the Browser, which handles loading the browser |
11 // window from the nib. The controller takes ownership of |browser|. | 12 // window from the nib. The controller takes ownership of |browser|. |
12 // static | 13 // static |
13 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 14 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
14 BrowserWindowController* controller = | 15 BrowserWindowController* controller = |
15 [[BrowserWindowController alloc] initWithBrowser:browser]; | 16 [[BrowserWindowController alloc] initWithBrowser:browser]; |
16 return [controller browserWindow]; | 17 return [controller browserWindow]; |
17 } | 18 } |
18 | 19 |
19 // static | 20 // static |
20 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( | 21 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( |
21 chrome::HostDesktopType desktop_type) { | 22 chrome::HostDesktopType desktop_type) { |
22 return desktop_type; | 23 return desktop_type; |
23 } | 24 } |
25 #endif | |
OLD | NEW |