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

Side by Side Diff: extensions/shell/browser/shell_app_window_client_mac.mm

Issue 745093002: AppShell support for Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minors Created 6 years 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
OLDNEW
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 "extensions/shell/browser/shell_app_window_client.h" 5 #include "extensions/shell/browser/shell_app_window_client.h"
6 6
7 #include "extensions/browser/app_window/app_window.h" 7 #include "extensions/browser/app_window/app_window.h"
8 #include "extensions/shell/browser/desktop_controller.h" 8 #include "extensions/shell/browser/desktop_controller.h"
9 #include "extensions/shell/browser/shell_native_app_window_aura.h" 9 #import "extensions/shell/browser/shell_native_app_window_mac.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow( 13 NativeAppWindow* ShellAppWindowClient::CreateNativeAppWindow(
14 AppWindow* window, 14 AppWindow* window,
15 AppWindow::CreateParams* params) { 15 AppWindow::CreateParams* params) {
16 ShellNativeAppWindow* native_app_window = 16 ShellNativeAppWindow* native_app_window =
17 new ShellNativeAppWindowAura(window, *params); 17 new ShellNativeAppWindowMac(window, *params);
18 DesktopController::instance()->AddAppWindow( 18 DesktopController::instance()->AddAppWindow(
19 native_app_window->GetNativeWindow()); 19 native_app_window->GetNativeWindow());
20 return native_app_window; 20 return native_app_window;
21 } 21 }
22 22
23 } // namespace extensions 23 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_app_delegate.cc ('k') | extensions/shell/browser/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698