OLD | NEW |
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; |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual void CloseAppModalDialog() = 0; | 25 virtual void CloseAppModalDialog() = 0; |
26 | 26 |
27 // Accepts or cancels the dialog. | 27 // Accepts or cancels the dialog. |
28 virtual void AcceptAppModalDialog() = 0; | 28 virtual void AcceptAppModalDialog() = 0; |
29 virtual void CancelAppModalDialog() = 0; | 29 virtual void CancelAppModalDialog() = 0; |
30 | 30 |
31 // Creates an app modal dialog for a JavaScript prompt. | 31 // Creates an app modal dialog for a JavaScript prompt. |
32 static NativeAppModalDialog* CreateNativeJavaScriptPrompt( | 32 static NativeAppModalDialog* CreateNativeJavaScriptPrompt( |
33 JavaScriptAppModalDialog* dialog, | 33 JavaScriptAppModalDialog* dialog, |
34 gfx::NativeWindow parent_window); | 34 gfx::NativeWindow parent_window); |
| 35 |
| 36 protected: |
| 37 virtual ~NativeAppModalDialog() { } |
35 }; | 38 }; |
36 | 39 |
37 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ | 40 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_NATIVE_APP_MODAL_DIALOG_H_ |
38 | 41 |
OLD | NEW |