Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / ui / tab_modal_confirm_dialog.h
blob04951a5851e827099fdf721d6c2c443523859352
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.
5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
8 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
10 namespace content {
11 class WebContents;
14 // Base class for the tab modal confirm dialog.
15 class TabModalConfirmDialog : public TabModalConfirmDialogCloseDelegate {
16 public:
17 // Platform specific factory function. This function will automatically show
18 // the dialog.
19 static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate,
20 content::WebContents* web_contents);
21 // Accepts the dialog.
22 virtual void AcceptTabModalDialog() = 0;
24 // Cancels the dialog.
25 virtual void CancelTabModalDialog() = 0;
27 // TabModalConfirmDialogCloseDelegate:
28 // Closes the dialog.
29 void CloseDialog() override = 0;
31 protected:
32 ~TabModalConfirmDialog() override {}
35 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_