| OLD | NEW |
| 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 Loading... |
| 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 } | |
| OLD | NEW |