| 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..80a9a9cb70473279c703fec3318e71d960e13583
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/tab_modal_confirm_dialog.h
|
| @@ -0,0 +1,28 @@
|
| +// 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;
|
| +
|
| +// Base class for the tab modal confirm dialog.
|
| +class TabModalConfirmDialog {
|
| + public:
|
| + // Platform specific factory function. This function will automatically show
|
| + // the dialog.
|
| + static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate,
|
| + TabContents* tab_contents);
|
| + // Accepts the dialog.
|
| + virtual void AcceptTabModalDialog() = 0;
|
| +
|
| + // Cancels the dialog.
|
| + virtual void CancelTabModalDialog() = 0;
|
| +
|
| + protected:
|
| + virtual ~TabModalConfirmDialog() {}
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
|
|
|