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

Side by Side Diff: chrome/browser/cocoa/browser_window_cocoa.mm

Issue 62131: Ask for user confirmation when closing a browser with in-progress downloads (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/gfx/rect.h" 5 #include "base/gfx/rect.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "chrome/browser/cocoa/browser_window_cocoa.h" 7 #include "chrome/browser/cocoa/browser_window_cocoa.h"
8 #include "chrome/browser/cocoa/browser_window_controller.h" 8 #include "chrome/browser/cocoa/browser_window_controller.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/cocoa/status_bubble_mac.h" 10 #include "chrome/browser/cocoa/status_bubble_mac.h"
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 void BrowserWindowCocoa::ShowSelectProfileDialog() { 189 void BrowserWindowCocoa::ShowSelectProfileDialog() {
190 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
191 } 191 }
192 192
193 void BrowserWindowCocoa::ShowNewProfileDialog() { 193 void BrowserWindowCocoa::ShowNewProfileDialog() {
194 NOTIMPLEMENTED(); 194 NOTIMPLEMENTED();
195 } 195 }
196 196
197 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads() {
198 NOTIMPLEMENTED();
199 browser_->InProgressDownloadResponse(false);
200 }
201
197 void BrowserWindowCocoa::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, 202 void BrowserWindowCocoa::ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
198 void* parent_window) { 203 void* parent_window) {
199 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
200 } 205 }
201 206
202 void BrowserWindowCocoa::DestroyBrowser() { 207 void BrowserWindowCocoa::DestroyBrowser() {
203 [controller_ destroyBrowser]; 208 [controller_ destroyBrowser];
204 209
205 // at this point the controller is dead (autoreleased), so 210 // at this point the controller is dead (autoreleased), so
206 // make sure we don't try to reference it any more. 211 // make sure we don't try to reference it any more.
207 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698