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

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.cc

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/gtk/browser_window_gtk.h ('k') | chrome/browser/views/frame/browser_view.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 "chrome/browser/gtk/browser_window_gtk.h" 5 #include "chrome/browser/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include "base/base_paths_linux.h" 9 #include "base/base_paths_linux.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 void BrowserWindowGtk::ShowNewProfileDialog() { 488 void BrowserWindowGtk::ShowNewProfileDialog() {
489 NOTIMPLEMENTED(); 489 NOTIMPLEMENTED();
490 } 490 }
491 491
492 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, 492 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
493 void* parent_window) { 493 void* parent_window) {
494 NOTIMPLEMENTED(); 494 NOTIMPLEMENTED();
495 } 495 }
496 496
497 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() {
498 NOTIMPLEMENTED();
499 browser_->InProgressDownloadResponse(false);
500 }
501
497 void BrowserWindowGtk::Observe(NotificationType type, 502 void BrowserWindowGtk::Observe(NotificationType type,
498 const NotificationSource& source, 503 const NotificationSource& source,
499 const NotificationDetails& details) { 504 const NotificationDetails& details) {
500 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) { 505 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) {
501 MaybeShowBookmarkBar(browser_->GetSelectedTabContents()); 506 MaybeShowBookmarkBar(browser_->GetSelectedTabContents());
502 } else { 507 } else {
503 NOTREACHED() << "Got a notification we didn't register for!"; 508 NOTREACHED() << "Got a notification we didn't register for!";
504 } 509 }
505 } 510 }
506 511
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 } else { 675 } else {
671 browser_window->ExecuteBrowserCommand(command_id); 676 browser_window->ExecuteBrowserCommand(command_id);
672 } 677 }
673 678
674 return TRUE; 679 return TRUE;
675 } 680 }
676 681
677 void BrowserWindowGtk::ExecuteBrowserCommand(int id) { 682 void BrowserWindowGtk::ExecuteBrowserCommand(int id) {
678 browser_->ExecuteCommand(id); 683 browser_->ExecuteCommand(id);
679 } 684 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.h ('k') | chrome/browser/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698