OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ModulesInitializer.h" | 5 #include "ModulesInitializer.h" |
6 | 6 |
7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" | 7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
8 #include "core/EventTypeNames.h" | 8 #include "core/EventTypeNames.h" |
9 #include "core/css/CSSPaintImageGenerator.h" | 9 #include "core/css/CSSPaintImageGenerator.h" |
10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/editing/suggestion/TextSuggestionBackendImpl.h" |
11 #include "core/exported/WebSharedWorkerImpl.h" | 12 #include "core/exported/WebSharedWorkerImpl.h" |
12 #include "core/frame/LocalFrame.h" | 13 #include "core/frame/LocalFrame.h" |
13 #include "core/frame/WebLocalFrameBase.h" | 14 #include "core/frame/WebLocalFrameBase.h" |
14 #include "core/html/HTMLCanvasElement.h" | 15 #include "core/html/HTMLCanvasElement.h" |
15 #include "core/html/HTMLMediaElement.h" | 16 #include "core/html/HTMLMediaElement.h" |
16 #include "core/offscreencanvas/OffscreenCanvas.h" | 17 #include "core/offscreencanvas/OffscreenCanvas.h" |
17 #include "core/page/ChromeClient.h" | 18 #include "core/page/ChromeClient.h" |
18 #include "core/workers/Worker.h" | 19 #include "core/workers/Worker.h" |
19 #include "core/workers/WorkerClients.h" | 20 #include "core/workers/WorkerClients.h" |
20 #include "core/workers/WorkerContentSettingsClient.h" | 21 #include "core/workers/WorkerContentSettingsClient.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( | 110 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
110 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); | 111 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); |
111 } | 112 } |
112 frame->GetInterfaceRegistry()->AddInterface( | 113 frame->GetInterfaceRegistry()->AddInterface( |
113 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); | 114 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); |
114 // TODO(dominickn): This interface should be document-scoped rather than | 115 // TODO(dominickn): This interface should be document-scoped rather than |
115 // frame-scoped, as the resulting banner event is dispatched to | 116 // frame-scoped, as the resulting banner event is dispatched to |
116 // frame()->document(). | 117 // frame()->document(). |
117 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( | 118 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
118 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); | 119 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); |
| 120 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
| 121 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame))); |
119 }); | 122 }); |
120 | 123 |
121 // Supplements installed on a frame using ChromeClient | 124 // Supplements installed on a frame using ChromeClient |
122 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) { | 125 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) { |
123 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame); | 126 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame); |
124 WebFrameClient* client = web_frame->Client(); | 127 WebFrameClient* client = web_frame->Client(); |
125 DCHECK(client); | 128 DCHECK(client); |
126 ProvidePushControllerTo(frame, client->PushClient()); | 129 ProvidePushControllerTo(frame, client->PushClient()); |
127 ProvideUserMediaTo(frame, | 130 ProvideUserMediaTo(frame, |
128 UserMediaClientImpl::Create(client->UserMediaClient())); | 131 UserMediaClientImpl::Create(client->UserMediaClient())); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 worker_clients, IndexedDBClientImpl::Create(*worker_clients)); | 171 worker_clients, IndexedDBClientImpl::Create(*worker_clients)); |
169 }); | 172 }); |
170 | 173 |
171 HTMLMediaElement::RegisterMediaControlsFactory( | 174 HTMLMediaElement::RegisterMediaControlsFactory( |
172 WTF::MakeUnique<MediaControlsImpl::Factory>()); | 175 WTF::MakeUnique<MediaControlsImpl::Factory>()); |
173 | 176 |
174 DCHECK(IsInitialized()); | 177 DCHECK(IsInitialized()); |
175 } | 178 } |
176 | 179 |
177 } // namespace blink | 180 } // namespace blink |
OLD | NEW |