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 "extensions/components/javascript_dialog_extensions_client/javascript_d
ialog_extension_client_impl.h" | 5 #include "extensions/components/javascript_dialog_extensions_client/javascript_d
ialog_extension_client_impl.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "components/app_modal/javascript_dialog_extensions_client.h" | 8 #include "components/app_modal/javascript_dialog_extensions_client.h" |
8 #include "components/app_modal/javascript_dialog_manager.h" | 9 #include "components/app_modal/javascript_dialog_manager.h" |
9 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
10 #include "extensions/browser/process_manager.h" | 11 #include "extensions/browser/process_manager.h" |
11 #include "extensions/common/extension.h" | 12 #include "extensions/common/extension.h" |
12 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
13 | 14 |
14 namespace javascript_dialog_extensions_client { | 15 namespace javascript_dialog_extensions_client { |
15 namespace { | 16 namespace { |
16 | 17 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 76 |
76 } // namespace | 77 } // namespace |
77 | 78 |
78 void InstallClient() { | 79 void InstallClient() { |
79 app_modal::JavaScriptDialogManager::GetInstance()-> | 80 app_modal::JavaScriptDialogManager::GetInstance()-> |
80 SetExtensionsClient( | 81 SetExtensionsClient( |
81 make_scoped_ptr(new JavaScriptDialogExtensionsClientImpl)); | 82 make_scoped_ptr(new JavaScriptDialogExtensionsClientImpl)); |
82 } | 83 } |
83 | 84 |
84 } // namespace javascript_dialog_extensions_client | 85 } // namespace javascript_dialog_extensions_client |
OLD | NEW |