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

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

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
Patch Set: Update callers Created 5 years, 7 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
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 "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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 483 }
484 484
485 void NativeAppWindowCocoa::Hide() { 485 void NativeAppWindowCocoa::Hide() {
486 HideWithoutMarkingHidden(); 486 HideWithoutMarkingHidden();
487 } 487 }
488 488
489 void NativeAppWindowCocoa::Close() { 489 void NativeAppWindowCocoa::Close() {
490 [window() close]; 490 [window() close];
491 } 491 }
492 492
493 void NativeAppWindowCocoa::Activate() { 493 void NativeAppWindowCocoa::Activate(bool user_gesture) {
494 [BrowserWindowUtils activateWindowForController:window_controller_]; 494 [BrowserWindowUtils activateWindowForController:window_controller_];
495 } 495 }
496 496
497 void NativeAppWindowCocoa::Deactivate() { 497 void NativeAppWindowCocoa::Deactivate() {
498 // TODO(jcivelli): http://crbug.com/51364 Implement me. 498 // TODO(jcivelli): http://crbug.com/51364 Implement me.
499 NOTIMPLEMENTED(); 499 NOTIMPLEMENTED();
500 } 500 }
501 501
502 void NativeAppWindowCocoa::Maximize() { 502 void NativeAppWindowCocoa::Maximize() {
503 UpdateRestoredBounds(); 503 UpdateRestoredBounds();
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 } 866 }
867 867
868 void NativeAppWindowCocoa::UpdateRestoredBounds() { 868 void NativeAppWindowCocoa::UpdateRestoredBounds() {
869 if (IsRestored(*this)) 869 if (IsRestored(*this))
870 restored_bounds_ = [window() frame]; 870 restored_bounds_ = [window() frame];
871 } 871 }
872 872
873 void NativeAppWindowCocoa::HideWithoutMarkingHidden() { 873 void NativeAppWindowCocoa::HideWithoutMarkingHidden() {
874 [window() orderOut:window_controller_]; 874 [window() orderOut:window_controller_];
875 } 875 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698