Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm

Issue 389453003: [Mac] Use -close instead of -performClose. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698