| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/apps/native_app_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" |
| 6 | 6 |
| 7 #include "apps/app_shim/extension_app_shim_handler_mac.h" | 7 #include "apps/app_shim/extension_app_shim_handler_mac.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 gfx::NativeView NativeAppWindowCocoa::GetHostView() const { | 787 gfx::NativeView NativeAppWindowCocoa::GetHostView() const { |
| 788 NOTIMPLEMENTED(); | 788 NOTIMPLEMENTED(); |
| 789 return NULL; | 789 return NULL; |
| 790 } | 790 } |
| 791 | 791 |
| 792 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { | 792 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { |
| 793 NOTIMPLEMENTED(); | 793 NOTIMPLEMENTED(); |
| 794 return gfx::Point(); | 794 return gfx::Point(); |
| 795 } | 795 } |
| 796 | 796 |
| 797 gfx::Size NativeAppWindowCocoa::GetMaximumDialogSize() { |
| 798 NOTIMPLEMENTED(); |
| 799 return gfx::Size(); |
| 800 } |
| 801 |
| 797 void NativeAppWindowCocoa::AddObserver( | 802 void NativeAppWindowCocoa::AddObserver( |
| 798 web_modal::WebContentsModalDialogHostObserver* observer) { | 803 web_modal::WebContentsModalDialogHostObserver* observer) { |
| 799 NOTIMPLEMENTED(); | 804 NOTIMPLEMENTED(); |
| 800 } | 805 } |
| 801 | 806 |
| 802 void NativeAppWindowCocoa::RemoveObserver( | 807 void NativeAppWindowCocoa::RemoveObserver( |
| 803 web_modal::WebContentsModalDialogHostObserver* observer) { | 808 web_modal::WebContentsModalDialogHostObserver* observer) { |
| 804 NOTIMPLEMENTED(); | 809 NOTIMPLEMENTED(); |
| 805 } | 810 } |
| 806 | 811 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 ShellNSWindow* NativeAppWindowCocoa::window() const { | 924 ShellNSWindow* NativeAppWindowCocoa::window() const { |
| 920 NSWindow* window = [window_controller_ window]; | 925 NSWindow* window = [window_controller_ window]; |
| 921 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); | 926 CHECK(!window || [window isKindOfClass:[ShellNSWindow class]]); |
| 922 return static_cast<ShellNSWindow*>(window); | 927 return static_cast<ShellNSWindow*>(window); |
| 923 } | 928 } |
| 924 | 929 |
| 925 void NativeAppWindowCocoa::UpdateRestoredBounds() { | 930 void NativeAppWindowCocoa::UpdateRestoredBounds() { |
| 926 if (IsRestored(*this)) | 931 if (IsRestored(*this)) |
| 927 restored_bounds_ = [window() frame]; | 932 restored_bounds_ = [window() frame]; |
| 928 } | 933 } |
| OLD | NEW |