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

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 latest comments Created 3 years, 5 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/inspector/InspectorSession.h" 17 #include "core/inspector/InspectorSession.h"
17 #include "core/offscreencanvas/OffscreenCanvas.h" 18 #include "core/offscreencanvas/OffscreenCanvas.h"
18 #include "core/page/ChromeClient.h" 19 #include "core/page/ChromeClient.h"
19 #include "core/workers/Worker.h" 20 #include "core/workers/Worker.h"
20 #include "core/workers/WorkerClients.h" 21 #include "core/workers/WorkerClients.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 117 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
117 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); 118 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame)));
118 } 119 }
119 frame->GetInterfaceRegistry()->AddInterface( 120 frame->GetInterfaceRegistry()->AddInterface(
120 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); 121 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame)));
121 // TODO(dominickn): This interface should be document-scoped rather than 122 // TODO(dominickn): This interface should be document-scoped rather than
122 // frame-scoped, as the resulting banner event is dispatched to 123 // frame-scoped, as the resulting banner event is dispatched to
123 // frame()->document(). 124 // frame()->document().
124 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( 125 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
125 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); 126 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame)));
127 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind(
128 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame)));
126 }); 129 });
127 130
128 // Supplements installed on a frame using ChromeClient 131 // Supplements installed on a frame using ChromeClient
129 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) { 132 ChromeClient::RegisterSupplementInstallCallback([](LocalFrame& frame) {
130 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame); 133 WebLocalFrameBase* web_frame = WebLocalFrameBase::FromFrame(&frame);
131 WebFrameClient* client = web_frame->Client(); 134 WebFrameClient* client = web_frame->Client();
132 DCHECK(client); 135 DCHECK(client);
133 ProvidePushControllerTo(frame, client->PushClient()); 136 ProvidePushControllerTo(frame, client->PushClient());
134 ProvideUserMediaTo(frame, 137 ProvideUserMediaTo(frame,
135 UserMediaClientImpl::Create(client->UserMediaClient())); 138 UserMediaClientImpl::Create(client->UserMediaClient()));
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 session->Append(new InspectorAccessibilityAgent(page, dom_agent)); 197 session->Append(new InspectorAccessibilityAgent(page, dom_agent));
195 session->Append(InspectorDOMStorageAgent::Create(page)); 198 session->Append(InspectorDOMStorageAgent::Create(page));
196 session->Append(InspectorCacheStorageAgent::Create()); 199 session->Append(InspectorCacheStorageAgent::Create());
197 } 200 }
198 }); 201 });
199 202
200 DCHECK(IsInitialized()); 203 DCHECK(IsInitialized());
201 } 204 }
202 205
203 } // namespace blink 206 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698