| 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/extensions/native_app_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/cocoa/browser_window_utils.h" | 10 #include "chrome/browser/ui/cocoa/browser_window_utils.h" |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 | 702 |
| 703 return frame_rect.InsetsFrom(content_rect); | 703 return frame_rect.InsetsFrom(content_rect); |
| 704 } | 704 } |
| 705 | 705 |
| 706 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { | 706 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { |
| 707 NOTIMPLEMENTED(); | 707 NOTIMPLEMENTED(); |
| 708 return gfx::Point(); | 708 return gfx::Point(); |
| 709 } | 709 } |
| 710 | 710 |
| 711 void NativeAppWindowCocoa::AddObserver( | 711 void NativeAppWindowCocoa::AddObserver( |
| 712 WebContentsModalDialogHostObserver* observer) { | 712 web_modal::WebContentsModalDialogHostObserver* observer) { |
| 713 NOTIMPLEMENTED(); | 713 NOTIMPLEMENTED(); |
| 714 } | 714 } |
| 715 | 715 |
| 716 void NativeAppWindowCocoa::RemoveObserver( | 716 void NativeAppWindowCocoa::RemoveObserver( |
| 717 WebContentsModalDialogHostObserver* observer) { | 717 web_modal::WebContentsModalDialogHostObserver* observer) { |
| 718 NOTIMPLEMENTED(); | 718 NOTIMPLEMENTED(); |
| 719 } | 719 } |
| 720 | 720 |
| 721 void NativeAppWindowCocoa::WindowWillClose() { | 721 void NativeAppWindowCocoa::WindowWillClose() { |
| 722 [window_controller_ setAppWindow:NULL]; | 722 [window_controller_ setAppWindow:NULL]; |
| 723 shell_window_->OnNativeWindowChanged(); | 723 shell_window_->OnNativeWindowChanged(); |
| 724 shell_window_->OnNativeClose(); | 724 shell_window_->OnNativeClose(); |
| 725 } | 725 } |
| 726 | 726 |
| 727 void NativeAppWindowCocoa::WindowDidBecomeKey() { | 727 void NativeAppWindowCocoa::WindowDidBecomeKey() { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); | 800 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); |
| 801 return static_cast<ShellNSWindow*>(window); | 801 return static_cast<ShellNSWindow*>(window); |
| 802 } | 802 } |
| 803 | 803 |
| 804 // static | 804 // static |
| 805 NativeAppWindow* NativeAppWindow::Create( | 805 NativeAppWindow* NativeAppWindow::Create( |
| 806 ShellWindow* shell_window, | 806 ShellWindow* shell_window, |
| 807 const ShellWindow::CreateParams& params) { | 807 const ShellWindow::CreateParams& params) { |
| 808 return new NativeAppWindowCocoa(shell_window, params); | 808 return new NativeAppWindowCocoa(shell_window, params); |
| 809 } | 809 } |
| OLD | NEW |