Chromium Code Reviews| 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_ |