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

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: Re-upload with no changes because I screwed something up trying to cancel the last upload when I sa… 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 94 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
94 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); 95 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame)));
95 } 96 }
96 frame->GetInterfaceRegistry()->AddInterface( 97 frame->GetInterfaceRegistry()->AddInterface(
97 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); 98 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame)));
98 // TODO(dominickn): This interface should be document-scoped rather than 99 // TODO(dominickn): This interface should be document-scoped rather than
99 // frame-scoped, as the resulting banner event is dispatched to 100 // frame-scoped, as the resulting banner event is dispatched to
100 // frame()->document(). 101 // frame()->document().
101 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 102 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
102 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); 103 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame)));
104 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
105 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame)));
103 }); 106 });
104 107
105 // WebSharedWorkerImpl callbacks for modules initialization. 108 // WebSharedWorkerImpl callbacks for modules initialization.
106 // TODO(nhiroki): Implement a common mechanism to set up WorkerClients 109 // TODO(nhiroki): Implement a common mechanism to set up WorkerClients
107 // (https://crbug.com/729500). 110 // (https://crbug.com/729500).
108 WebSharedWorkerImpl::RegisterWorkerClientsCreatedCallback( 111 WebSharedWorkerImpl::RegisterWorkerClientsCreatedCallback(
109 [](WorkerClients* worker_clients) { 112 [](WorkerClients* worker_clients) {
110 ProvideLocalFileSystemToWorker(worker_clients, 113 ProvideLocalFileSystemToWorker(worker_clients,
111 LocalFileSystemClient::Create()); 114 LocalFileSystemClient::Create());
112 ProvideIndexedDBClientToWorker( 115 ProvideIndexedDBClientToWorker(
113 worker_clients, IndexedDBClientImpl::Create(*worker_clients)); 116 worker_clients, IndexedDBClientImpl::Create(*worker_clients));
114 }); 117 });
115 118
116 HTMLMediaElement::RegisterMediaControlsFactory( 119 HTMLMediaElement::RegisterMediaControlsFactory(
117 WTF::MakeUnique<MediaControlsImpl::Factory>()); 120 WTF::MakeUnique<MediaControlsImpl::Factory>());
118 121
119 DCHECK(IsInitialized()); 122 DCHECK(IsInitialized());
120 } 123 }
121 124
122 } // namespace blink 125 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698