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