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 #include "athena/extensions/athena_javascript_native_dialog_factory.h" | 5 #include "athena/extensions/athena_javascript_native_dialog_factory.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "components/app_modal_dialogs/javascript_dialog_manager.h" | 8 #include "components/app_modal/javascript_dialog_manager.h" |
9 #include "components/app_modal_dialogs/javascript_native_dialog_factory.h" | 9 #include "components/app_modal/javascript_native_dialog_factory.h" |
10 #include "components/app_modal_dialogs/views/javascript_app_modal_dialog_views.h
" | 10 #include "components/app_modal/views/javascript_app_modal_dialog_views.h" |
11 #include "components/constrained_window/constrained_window_views.h" | 11 #include "components/constrained_window/constrained_window_views.h" |
12 | 12 |
13 class JavaScriptAppModalDialog; | 13 class JavaScriptAppModalDialog; |
14 class NativeAppModalDialog; | 14 class NativeAppModalDialog; |
15 | 15 |
16 namespace athena { | 16 namespace athena { |
17 namespace { | 17 namespace { |
18 | 18 |
19 class AthenaJavaScriptNativeDialogFactory | 19 class AthenaJavaScriptNativeDialogFactory |
20 : public JavaScriptNativeDialogFactory { | 20 : public JavaScriptNativeDialogFactory { |
(...skipping 16 matching lines...) Expand all Loading... |
37 }; | 37 }; |
38 | 38 |
39 } // namespace | 39 } // namespace |
40 | 40 |
41 void InstallJavaScriptNativeDialogFactory() { | 41 void InstallJavaScriptNativeDialogFactory() { |
42 SetJavaScriptNativeDialogFactory( | 42 SetJavaScriptNativeDialogFactory( |
43 make_scoped_ptr(new AthenaJavaScriptNativeDialogFactory)); | 43 make_scoped_ptr(new AthenaJavaScriptNativeDialogFactory)); |
44 } | 44 } |
45 | 45 |
46 } // namespace athena | 46 } // namespace athena |
OLD | NEW |