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

Side by Side Diff: chrome/browser/ui/cocoa/browser_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser_window_cocoa.h" 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #import "base/mac/sdk_forward_declarations.h" 10 #import "base/mac/sdk_forward_declarations.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 [window() orderOut:nil]; 246 [window() orderOut:nil];
247 [window() close]; 247 [window() close];
248 } 248 }
249 } else { 249 } else {
250 [window() orderOut:nil]; 250 [window() orderOut:nil];
251 [window() close]; 251 [window() close];
252 } 252 }
253 } 253 }
254 } 254 }
255 255
256 void BrowserWindowCocoa::Activate() { 256 void BrowserWindowCocoa::Activate(bool user_gesture) {
257 [controller_ activate]; 257 [controller_ activate];
258 } 258 }
259 259
260 void BrowserWindowCocoa::Deactivate() { 260 void BrowserWindowCocoa::Deactivate() {
261 // TODO(jcivelli): http://crbug.com/51364 Implement me. 261 // TODO(jcivelli): http://crbug.com/51364 Implement me.
262 NOTIMPLEMENTED(); 262 NOTIMPLEMENTED();
263 } 263 }
264 264
265 void BrowserWindowCocoa::FlashFrame(bool flash) { 265 void BrowserWindowCocoa::FlashFrame(bool flash) {
266 if (flash) { 266 if (flash) {
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 void BrowserWindowCocoa::UnhideDownloadShelf() { 833 void BrowserWindowCocoa::UnhideDownloadShelf() {
834 GetDownloadShelf()->Unhide(); 834 GetDownloadShelf()->Unhide();
835 } 835 }
836 836
837 void BrowserWindowCocoa::HideDownloadShelf() { 837 void BrowserWindowCocoa::HideDownloadShelf() {
838 GetDownloadShelf()->Hide(); 838 GetDownloadShelf()->Hide();
839 StatusBubble* statusBubble = GetStatusBubble(); 839 StatusBubble* statusBubble = GetStatusBubble();
840 if (statusBubble) 840 if (statusBubble)
841 statusBubble->Hide(); 841 statusBubble->Hide();
842 } 842 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698