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

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

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/browser_window.h ('k') | chrome/browser/cocoa/browser_window_cocoa.mm » ('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 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual void ShowAboutChromeDialog(); 58 virtual void ShowAboutChromeDialog();
59 virtual void ShowBookmarkManager(); 59 virtual void ShowBookmarkManager();
60 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked); 60 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked);
61 virtual void ShowReportBugDialog(); 61 virtual void ShowReportBugDialog();
62 virtual void ShowClearBrowsingDataDialog(); 62 virtual void ShowClearBrowsingDataDialog();
63 virtual void ShowImportDialog(); 63 virtual void ShowImportDialog();
64 virtual void ShowSearchEnginesDialog(); 64 virtual void ShowSearchEnginesDialog();
65 virtual void ShowPasswordManager(); 65 virtual void ShowPasswordManager();
66 virtual void ShowSelectProfileDialog(); 66 virtual void ShowSelectProfileDialog();
67 virtual void ShowNewProfileDialog(); 67 virtual void ShowNewProfileDialog();
68 virtual void ConfirmBrowserCloseWithPendingDownloads();
68 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, 69 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
69 void* parent_window); 70 void* parent_window);
70 71
71 protected: 72 protected:
72 virtual void DestroyBrowser(); 73 virtual void DestroyBrowser();
73 74
74 private: 75 private:
75 Browser* browser_; 76 Browser* browser_;
76 BrowserWindowController* controller_; // weak, owns us 77 BrowserWindowController* controller_; // weak, owns us
77 NSWindow* window_; // weak, owned by |controller_| 78 NSWindow* window_; // weak, owned by |controller_|
78 // The status bubble manager. Always non-NULL. 79 // The status bubble manager. Always non-NULL.
79 scoped_ptr<StatusBubbleMac> status_bubble_; 80 scoped_ptr<StatusBubbleMac> status_bubble_;
80 }; 81 };
81 82
82 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 83 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_window.h ('k') | chrome/browser/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698