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