OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ | 5 #ifndef COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |
6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ | 6 #define COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
| 10 namespace app_modal { |
| 11 |
10 class JavaScriptAppModalDialog; | 12 class JavaScriptAppModalDialog; |
11 class NativeAppModalDialog; | 13 class NativeAppModalDialog; |
12 | 14 |
13 class JavaScriptNativeDialogFactory { | 15 class JavaScriptNativeDialogFactory { |
14 public: | 16 public: |
15 virtual ~JavaScriptNativeDialogFactory() {} | 17 virtual ~JavaScriptNativeDialogFactory() {} |
16 | 18 |
17 // Creates an native modal dialog for a JavaScript dialog; | 19 // Creates an native modal dialog for a JavaScript dialog; |
18 virtual NativeAppModalDialog* CreateNativeJavaScriptDialog( | 20 virtual NativeAppModalDialog* CreateNativeJavaScriptDialog( |
19 JavaScriptAppModalDialog* dialog, | 21 JavaScriptAppModalDialog* dialog, |
20 gfx::NativeWindow parent_window) = 0; | 22 gfx::NativeWindow parent_window) = 0; |
21 }; | 23 }; |
22 | 24 |
| 25 } // namespace app_modal |
| 26 |
23 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ | 27 #endif // COMPONENTS_APP_MODAL_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |
OLD | NEW |