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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_factory.mm

Issue 58853004: [win8] Force browsers created with Chrome in Metro mode to be on the Ash desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move from browser_commands to BrowserWindow Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('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) 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 // Create the controller for the Browser, which handles loading the browser 10 // Create the controller for the Browser, which handles loading the browser
11 // window from the nib. The controller takes ownership of |browser|. 11 // window from the nib. The controller takes ownership of |browser|.
12 // static 12 // static
13 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 13 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
14 BrowserWindowController* controller = 14 BrowserWindowController* controller =
15 [[BrowserWindowController alloc] initWithBrowser:browser]; 15 [[BrowserWindowController alloc] initWithBrowser:browser];
16 return [controller browserWindow]; 16 return [controller browserWindow];
17 } 17 }
18
19 // static
20 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType(
21 chrome::HostDesktopType desktop_type) {
22 return desktop_type;
23 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698