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

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: Fix dependency 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/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/WorkerContentSettingsClient.h" 19 #include "core/workers/WorkerContentSettingsClient.h"
19 #include "modules/EventModulesFactory.h" 20 #include "modules/EventModulesFactory.h"
20 #include "modules/EventModulesNames.h" 21 #include "modules/EventModulesNames.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 107 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
107 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); 108 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame)));
108 } 109 }
109 frame->GetInterfaceRegistry()->AddInterface( 110 frame->GetInterfaceRegistry()->AddInterface(
110 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); 111 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame)));
111 // TODO(dominickn): This interface should be document-scoped rather than 112 // TODO(dominickn): This interface should be document-scoped rather than
112 // frame-scoped, as the resulting banner event is dispatched to 113 // frame-scoped, as the resulting banner event is dispatched to
113 // frame()->document(). 114 // frame()->document().
114 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 115 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
115 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); 116 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame)));
117 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
118 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame)));
116 }); 119 });
117 120
118 // Supplements installed on a frame using ChromeClient 121 // Supplements installed on a frame using ChromeClient
119 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) { 122 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) {
120 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame); 123 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame);
121 WebFrameClient* client = web_frame->Client(); 124 WebFrameClient* client = web_frame->Client();
122 DCHECK(client); 125 DCHECK(client);
123 ProvidePushControllerTo(frame, client->PushClient()); 126 ProvidePushControllerTo(frame, client->PushClient());
124 ProvideUserMediaTo(frame, 127 ProvideUserMediaTo(frame,
125 UserMediaClientImpl::Create(client->UserMediaClient())); 128 UserMediaClientImpl::Create(client->UserMediaClient()));
(...skipping 25 matching lines...) Expand all
151 worker_clients, IndexedDBClientImpl::Create(*worker_clients)); 154 worker_clients, IndexedDBClientImpl::Create(*worker_clients));
152 }); 155 });
153 156
154 HTMLMediaElement::RegisterMediaControlsFactory( 157 HTMLMediaElement::RegisterMediaControlsFactory(
155 WTF::MakeUnique<MediaControlsImpl::Factory>()); 158 WTF::MakeUnique<MediaControlsImpl::Factory>());
156 159
157 DCHECK(IsInitialized()); 160 DCHECK(IsInitialized());
158 } 161 }
159 162
160 } // namespace blink 163 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698