| 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/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
| 10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 void NativeAppWindowCocoa::ShowInactive() { | 601 void NativeAppWindowCocoa::ShowInactive() { |
| 602 [window() orderFront:window_controller_]; | 602 [window() orderFront:window_controller_]; |
| 603 } | 603 } |
| 604 | 604 |
| 605 void NativeAppWindowCocoa::Hide() { | 605 void NativeAppWindowCocoa::Hide() { |
| 606 HideWithoutMarkingHidden(); | 606 HideWithoutMarkingHidden(); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void NativeAppWindowCocoa::Close() { | 609 void NativeAppWindowCocoa::Close() { |
| 610 [window() performClose:nil]; | 610 [window() close]; |
| 611 } | 611 } |
| 612 | 612 |
| 613 void NativeAppWindowCocoa::Activate() { | 613 void NativeAppWindowCocoa::Activate() { |
| 614 [BrowserWindowUtils activateWindowForController:window_controller_]; | 614 [BrowserWindowUtils activateWindowForController:window_controller_]; |
| 615 } | 615 } |
| 616 | 616 |
| 617 void NativeAppWindowCocoa::Deactivate() { | 617 void NativeAppWindowCocoa::Deactivate() { |
| 618 // TODO(jcivelli): http://crbug.com/51364 Implement me. | 618 // TODO(jcivelli): http://crbug.com/51364 Implement me. |
| 619 NOTIMPLEMENTED(); | 619 NOTIMPLEMENTED(); |
| 620 } | 620 } |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 void NativeAppWindowCocoa::UpdateRestoredBounds() { | 1003 void NativeAppWindowCocoa::UpdateRestoredBounds() { |
| 1004 if (IsRestored(*this)) | 1004 if (IsRestored(*this)) |
| 1005 restored_bounds_ = [window() frame]; | 1005 restored_bounds_ = [window() frame]; |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { | 1008 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { |
| 1009 [window() orderOut:window_controller_]; | 1009 [window() orderOut:window_controller_]; |
| 1010 } | 1010 } |
| OLD | NEW |