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

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: no else after return 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 // Base class for the tab modal confirm dialog.
12 class TabModalConfirmDialog {
13 public:
14 // Platform specific factory function. This function will automatically show
15 // the dialog.
16 static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate,
17 TabContents* tab_contents);
18 // Accepts the dialog.
19 virtual void AcceptTabModalDialog() = 0;
20
21 // Cancels the dialog.
22 virtual void CancelTabModalDialog() = 0;
23
24 protected:
25 virtual ~TabModalConfirmDialog() {}
26 };
27
28 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc ('k') | chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698