Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: third_party/WebKit/Source/modules/ModulesInitializer.cpp

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to yosin@'s comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/html/HTMLCanvasElement.h" 14 #include "core/html/HTMLCanvasElement.h"
14 #include "core/html/HTMLMediaElement.h" 15 #include "core/html/HTMLMediaElement.h"
15 #include "core/offscreencanvas/OffscreenCanvas.h" 16 #include "core/offscreencanvas/OffscreenCanvas.h"
16 #include "core/workers/WorkerContentSettingsClient.h" 17 #include "core/workers/WorkerContentSettingsClient.h"
17 #include "modules/EventModulesFactory.h" 18 #include "modules/EventModulesFactory.h"
18 #include "modules/EventModulesNames.h" 19 #include "modules/EventModulesNames.h"
19 #include "modules/EventTargetModulesNames.h" 20 #include "modules/EventTargetModulesNames.h"
20 #include "modules/IndexedDBNames.h" 21 #include "modules/IndexedDBNames.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 95 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
95 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); 96 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame)));
96 } 97 }
97 frame->GetInterfaceRegistry()->AddInterface( 98 frame->GetInterfaceRegistry()->AddInterface(
98 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); 99 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame)));
99 // TODO(dominickn): This interface should be document-scoped rather than 100 // TODO(dominickn): This interface should be document-scoped rather than
100 // frame-scoped, as the resulting banner event is dispatched to 101 // frame-scoped, as the resulting banner event is dispatched to
101 // frame()->document(). 102 // frame()->document().
102 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 103 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
103 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); 104 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame)));
105 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
106 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame)));
104 }); 107 });
105 108
106 // WebSharedWorkerImpl callbacks for modules initialization. 109 // WebSharedWorkerImpl callbacks for modules initialization.
107 // TODO(nhiroki): Implement a common mechanism to set up WorkerClients 110 // TODO(nhiroki): Implement a common mechanism to set up WorkerClients
108 // (https://crbug.com/729500). 111 // (https://crbug.com/729500).
109 WebSharedWorkerImpl::RegisterWorkerClientsCreatedCallback( 112 WebSharedWorkerImpl::RegisterWorkerClientsCreatedCallback(
110 [](WorkerClients* worker_clients) { 113 [](WorkerClients* worker_clients) {
111 ProvideLocalFileSystemToWorker(worker_clients, 114 ProvideLocalFileSystemToWorker(worker_clients,
112 LocalFileSystemClient::Create()); 115 LocalFileSystemClient::Create());
113 ProvideIndexedDBClientToWorker( 116 ProvideIndexedDBClientToWorker(
114 worker_clients, IndexedDBClientImpl::Create(*worker_clients)); 117 worker_clients, IndexedDBClientImpl::Create(*worker_clients));
115 }); 118 });
116 119
117 HTMLMediaElement::RegisterMediaControlsFactory( 120 HTMLMediaElement::RegisterMediaControlsFactory(
118 WTF::MakeUnique<MediaControlsImpl::Factory>()); 121 WTF::MakeUnique<MediaControlsImpl::Factory>());
119 122
120 DCHECK(IsInitialized()); 123 DCHECK(IsInitialized());
121 } 124 }
122 125
123 } // namespace blink 126 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698