| 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 // 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_ |
| OLD | NEW |