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

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 21344002: Move native_app_window code to apps areas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to after mac app shim fix Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/cocoa/extensions/native_app_window_cocoa.h" 5 #include "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/cocoa/browser_window_utils.h" 11 #include "chrome/browser/ui/cocoa/browser_window_utils.h"
12 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" 12 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h"
13 #include "chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa .h" 13 #include "chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa .h"
14 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" 14 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 } 835 }
836 836
837 NativeAppWindowCocoa::~NativeAppWindowCocoa() { 837 NativeAppWindowCocoa::~NativeAppWindowCocoa() {
838 } 838 }
839 839
840 ShellNSWindow* NativeAppWindowCocoa::window() const { 840 ShellNSWindow* NativeAppWindowCocoa::window() const {
841 NSWindow* window = [window_controller_ window]; 841 NSWindow* window = [window_controller_ window];
842 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); 842 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]);
843 return static_cast<ShellNSWindow*>(window); 843 return static_cast<ShellNSWindow*>(window);
844 } 844 }
845
846 // static
847 NativeAppWindow* NativeAppWindow::Create(
848 ShellWindow* shell_window,
849 const ShellWindow::CreateParams& params) {
850 return new NativeAppWindowCocoa(shell_window, params);
851 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h ('k') | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698