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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_modal_confirm_dialog.h
diff --git a/chrome/browser/ui/tab_modal_confirm_dialog.h b/chrome/browser/ui/tab_modal_confirm_dialog.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d6a438101e39946836ad479b5b5cb7e07653c9c
--- /dev/null
+++ b/chrome/browser/ui/tab_modal_confirm_dialog.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
+#define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
+
+class TabContents;
+class TabModalConfirmDialogDelegate;
+
+class TabModalConfirmDialog {
+ public:
+ 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?
+ TabContents* tab_contents);
+
+ 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.
+
+ // Accepts the dialog.
+ virtual void AcceptTabModalDialog() = 0;
+
+ // Cancels the dialog.
+ virtual void CancelTabModalDialog() = 0;
+};
+
+#endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_

Powered by Google App Engine
This is Rietveld 408576698