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

Side by Side Diff: chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 9
10 class JavaScriptAppModalDialog; 10 class JavaScriptAppModalDialog;
11 11
12 class NativeAppModalDialog { 12 class NativeAppModalDialog {
13 public: 13 public:
14 virtual ~NativeAppModalDialog() { }
15
16 // Returns the buttons to be shown. See ui::DialogButton for which buttons can 14 // Returns the buttons to be shown. See ui::DialogButton for which buttons can
17 // be returned. 15 // be returned.
18 virtual int GetAppModalDialogButtons() const = 0; 16 virtual int GetAppModalDialogButtons() const = 0;
19 17
20 // Shows the dialog. 18 // Shows the dialog.
21 virtual void ShowAppModalDialog() = 0; 19 virtual void ShowAppModalDialog() = 0;
22 20
23 // Activates the dialog. 21 // Activates the dialog.
24 virtual void ActivateAppModalDialog() = 0; 22 virtual void ActivateAppModalDialog() = 0;
25 23
26 // Closes the dialog. 24 // Closes the dialog.
27 virtual void CloseAppModalDialog() = 0; 25 virtual void CloseAppModalDialog() = 0;
28 26
29 // Accepts or cancels the dialog. 27 // Accepts or cancels the dialog.
30 virtual void AcceptAppModalDialog() = 0; 28 virtual void AcceptAppModalDialog() = 0;
31 virtual void CancelAppModalDialog() = 0; 29 virtual void CancelAppModalDialog() = 0;
32 30
33 // Creates an app modal dialog for a JavaScript prompt. 31 // Creates an app modal dialog for a JavaScript prompt.
34 static NativeAppModalDialog* CreateNativeJavaScriptPrompt( 32 static NativeAppModalDialog* CreateNativeJavaScriptPrompt(
35 JavaScriptAppModalDialog* dialog, 33 JavaScriptAppModalDialog* dialog,
36 gfx::NativeWindow parent_window); 34 gfx::NativeWindow parent_window);
37 }; 35 };
38 36
39 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ 37 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_
40 38
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.h ('k') | chrome/browser/ui/autofill/autofill_popup_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698