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

Side by Side Diff: chrome/browser/ui/tab_modal_confirm_dialog.h

Issue 10972002: chrome: Add TabModalConfirmDialog interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
7
8 class TabContents;
9 class TabModalConfirmDialogDelegate;
10
11 class TabModalConfirmDialog {
12 public:
13 static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate,
Peter Kasting 2012/09/25 00:39:20 This serves the same purpose as ShowTabModalConfir
tfarina 2012/09/25 02:03:38 Can I do this in a follow up, or this should be do
Peter Kasting 2012/09/25 02:10:32 It probably makes sense to do it in this patch bec
tfarina 2012/09/25 02:10:42 Would you be fine if I add a Show() function here?
14 TabContents* tab_contents);
15
16 virtual ~TabModalConfirmDialog() {}
Peter Kasting 2012/09/25 00:39:20 Nit: Should probably be protected, I doubt we want
tfarina 2012/09/25 02:03:38 Done.
17
18 // Accepts the dialog.
19 virtual void AcceptTabModalDialog() = 0;
20
21 // Cancels the dialog.
22 virtual void CancelTabModalDialog() = 0;
23 };
24
25 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698