Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: chrome/browser/ui/tab_modal_confirm_dialog.h

Issue 17500003: Close web contents modal dialogs on content load start (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compilation fixes, change "inhibit" variable names Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_ 6 #define CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
7 7
8 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h" 8 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } 12 }
13 13
14 // Base class for the tab modal confirm dialog. 14 // Base class for the tab modal confirm dialog.
15 class TabModalConfirmDialog : public TabModalConfirmDialogCloseDelegate { 15 class TabModalConfirmDialog : public TabModalConfirmDialogOperationsDelegate {
16 public: 16 public:
17 // Platform specific factory function. This function will automatically show 17 // Platform specific factory function. This function will automatically show
18 // the dialog. 18 // the dialog.
19 static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate, 19 static TabModalConfirmDialog* Create(TabModalConfirmDialogDelegate* delegate,
20 content::WebContents* web_contents); 20 content::WebContents* web_contents);
21 // Accepts the dialog. 21 // Accepts the dialog.
22 virtual void AcceptTabModalDialog() = 0; 22 virtual void AcceptTabModalDialog() = 0;
23 23
24 // Cancels the dialog. 24 // Cancels the dialog.
25 virtual void CancelTabModalDialog() = 0; 25 virtual void CancelTabModalDialog() = 0;
26 26
27 // TabModalConfirmDialogCloseDelegate: 27 // TabModalConfirmDialogOperationsDelegate:
28 // Closes the dialog. 28 // Closes the dialog.
29 virtual void CloseDialog() = 0; 29 virtual void CloseDialog() = 0;
30 // Prevents the dialog from closing on WebContents load start.
31 virtual void SetPreventCloseOnLoadStart(bool prevent) = 0;
30 32
31 protected: 33 protected:
32 virtual ~TabModalConfirmDialog() {} 34 virtual ~TabModalConfirmDialog() {}
33 }; 35 };
34 36
35 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_ 37 #endif // CHROME_BROWSER_UI_TAB_MODAL_CONFIRM_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tab_modal_confirm_dialog_gtk.cc ('k') | chrome/browser/ui/tab_modal_confirm_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698