| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #include "base/mac/sdk_forward_declarations.h" | 10 #include "base/mac/sdk_forward_declarations.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 | 665 |
| 666 gfx::NativeView NativeAppWindowCocoa::GetHostView() const { | 666 gfx::NativeView NativeAppWindowCocoa::GetHostView() const { |
| 667 return WebContents()->GetNativeView(); | 667 return WebContents()->GetNativeView(); |
| 668 } | 668 } |
| 669 | 669 |
| 670 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { | 670 gfx::Point NativeAppWindowCocoa::GetDialogPosition(const gfx::Size& size) { |
| 671 NOTIMPLEMENTED(); | 671 NOTIMPLEMENTED(); |
| 672 return gfx::Point(); | 672 return gfx::Point(); |
| 673 } | 673 } |
| 674 | 674 |
| 675 gfx::Point NativeAppWindowCocoa::GetHostPosition() const { |
| 676 NOTIMPLEMENTED(); |
| 677 return gfx::Point(); |
| 678 } |
| 679 |
| 675 gfx::Size NativeAppWindowCocoa::GetMaximumDialogSize() { | 680 gfx::Size NativeAppWindowCocoa::GetMaximumDialogSize() { |
| 676 NOTIMPLEMENTED(); | 681 NOTIMPLEMENTED(); |
| 677 return gfx::Size(); | 682 return gfx::Size(); |
| 678 } | 683 } |
| 679 | 684 |
| 680 void NativeAppWindowCocoa::AddObserver( | 685 void NativeAppWindowCocoa::AddObserver( |
| 681 web_modal::ModalDialogHostObserver* observer) { | 686 web_modal::ModalDialogHostObserver* observer) { |
| 682 NOTIMPLEMENTED(); | 687 NOTIMPLEMENTED(); |
| 683 } | 688 } |
| 684 | 689 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 } | 837 } |
| 833 | 838 |
| 834 void NativeAppWindowCocoa::UpdateRestoredBounds() { | 839 void NativeAppWindowCocoa::UpdateRestoredBounds() { |
| 835 if (IsRestored(*this)) | 840 if (IsRestored(*this)) |
| 836 restored_bounds_ = [window() frame]; | 841 restored_bounds_ = [window() frame]; |
| 837 } | 842 } |
| 838 | 843 |
| 839 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { | 844 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { |
| 840 [window() orderOut:window_controller_]; | 845 [window() orderOut:window_controller_]; |
| 841 } | 846 } |
| OLD | NEW |