| 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/TextSuggestionBackendImpl.h" |
| 11 #include "core/frame/LocalFrame.h" | 12 #include "core/frame/LocalFrame.h" |
| 12 #include "core/html/HTMLCanvasElement.h" | 13 #include "core/html/HTMLCanvasElement.h" |
| 13 #include "core/html/HTMLMediaElement.h" | 14 #include "core/html/HTMLMediaElement.h" |
| 14 #include "core/offscreencanvas/OffscreenCanvas.h" | 15 #include "core/offscreencanvas/OffscreenCanvas.h" |
| 15 #include "modules/EventModulesFactory.h" | 16 #include "modules/EventModulesFactory.h" |
| 16 #include "modules/EventModulesNames.h" | 17 #include "modules/EventModulesNames.h" |
| 17 #include "modules/EventTargetModulesNames.h" | 18 #include "modules/EventTargetModulesNames.h" |
| 18 #include "modules/IndexedDBNames.h" | 19 #include "modules/IndexedDBNames.h" |
| 19 #include "modules/accessibility/AXObjectCacheImpl.h" | 20 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 20 #include "modules/app_banner/AppBannerController.h" | 21 #include "modules/app_banner/AppBannerController.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( | 89 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
| 89 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); | 90 &CopylessPasteServer::BindMojoRequest, WrapWeakPersistent(frame))); |
| 90 } | 91 } |
| 91 frame->GetInterfaceRegistry()->AddInterface( | 92 frame->GetInterfaceRegistry()->AddInterface( |
| 92 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); | 93 WTF::Bind(&InstallationServiceImpl::Create, WrapWeakPersistent(frame))); |
| 93 // TODO(dominickn): This interface should be document-scoped rather than | 94 // TODO(dominickn): This interface should be document-scoped rather than |
| 94 // frame-scoped, as the resulting banner event is dispatched to | 95 // frame-scoped, as the resulting banner event is dispatched to |
| 95 // frame()->document(). | 96 // frame()->document(). |
| 96 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( | 97 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
| 97 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); | 98 &AppBannerController::BindMojoRequest, WrapWeakPersistent(frame))); |
| 99 frame->GetInterfaceRegistry()->AddInterface(WTF::Bind( |
| 100 &TextSuggestionBackendImpl::Create, WrapWeakPersistent(frame))); |
| 98 }); | 101 }); |
| 99 | 102 |
| 100 HTMLMediaElement::RegisterMediaControlsFactory( | 103 HTMLMediaElement::RegisterMediaControlsFactory( |
| 101 WTF::MakeUnique<MediaControlsImpl::Factory>()); | 104 WTF::MakeUnique<MediaControlsImpl::Factory>()); |
| 102 | 105 |
| 103 DCHECK(IsInitialized()); | 106 DCHECK(IsInitialized()); |
| 104 } | 107 } |
| 105 | 108 |
| 106 } // namespace blink | 109 } // namespace blink |
| OLD | NEW |