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/frame/LocalFrame.h" | 11 #include "core/frame/LocalFrame.h" |
12 #include "core/html/HTMLCanvasElement.h" | 12 #include "core/html/HTMLCanvasElement.h" |
| 13 #include "core/html/HTMLMediaElement.h" |
13 #include "core/offscreencanvas/OffscreenCanvas.h" | 14 #include "core/offscreencanvas/OffscreenCanvas.h" |
14 #include "modules/EventModulesFactory.h" | 15 #include "modules/EventModulesFactory.h" |
15 #include "modules/EventModulesNames.h" | 16 #include "modules/EventModulesNames.h" |
16 #include "modules/EventTargetModulesNames.h" | 17 #include "modules/EventTargetModulesNames.h" |
17 #include "modules/IndexedDBNames.h" | 18 #include "modules/IndexedDBNames.h" |
18 #include "modules/accessibility/AXObjectCacheImpl.h" | 19 #include "modules/accessibility/AXObjectCacheImpl.h" |
19 #include "modules/app_banner/AppBannerController.h" | 20 #include "modules/app_banner/AppBannerController.h" |
20 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 21 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
21 #include "modules/compositorworker/CompositorWorkerThread.h" | 22 #include "modules/compositorworker/CompositorWorkerThread.h" |
22 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" | 23 #include "modules/csspaint/CSSPaintImageGeneratorImpl.h" |
23 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" | 24 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
24 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" | 25 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" |
25 #include "modules/installation/InstallationServiceImpl.h" | 26 #include "modules/installation/InstallationServiceImpl.h" |
| 27 #include "modules/media_controls/MediaControlsImpl.h" |
26 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" | 28 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" |
27 #include "modules/time_zone_monitor/TimeZoneMonitorClient.h" | 29 #include "modules/time_zone_monitor/TimeZoneMonitorClient.h" |
28 #include "modules/webdatabase/DatabaseManager.h" | 30 #include "modules/webdatabase/DatabaseManager.h" |
29 #include "modules/webgl/WebGL2RenderingContext.h" | 31 #include "modules/webgl/WebGL2RenderingContext.h" |
30 #include "modules/webgl/WebGLRenderingContext.h" | 32 #include "modules/webgl/WebGLRenderingContext.h" |
31 #include "platform/mojo/MojoHelper.h" | 33 #include "platform/mojo/MojoHelper.h" |
32 #include "public/platform/InterfaceRegistry.h" | 34 #include "public/platform/InterfaceRegistry.h" |
33 #include "wtf/PtrUtil.h" | 35 #include "wtf/PtrUtil.h" |
34 | 36 |
35 namespace blink { | 37 namespace blink { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Mojo Interfaces registered with LocalFrame | 84 // Mojo Interfaces registered with LocalFrame |
83 LocalFrame::registerInitializationCallback([](LocalFrame* frame) { | 85 LocalFrame::registerInitializationCallback([](LocalFrame* frame) { |
84 frame->interfaceRegistry()->addInterface( | 86 frame->interfaceRegistry()->addInterface( |
85 WTF::bind(&InstallationServiceImpl::create, wrapWeakPersistent(frame))); | 87 WTF::bind(&InstallationServiceImpl::create, wrapWeakPersistent(frame))); |
86 // TODO(dominickn): This interface should be document-scoped rather than | 88 // TODO(dominickn): This interface should be document-scoped rather than |
87 // frame-scoped, as the resulting banner event is dispatched to | 89 // frame-scoped, as the resulting banner event is dispatched to |
88 // frame()->document(). | 90 // frame()->document(). |
89 frame->interfaceRegistry()->addInterface(WTF::bind( | 91 frame->interfaceRegistry()->addInterface(WTF::bind( |
90 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame))); | 92 &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame))); |
91 }); | 93 }); |
| 94 |
| 95 HTMLMediaElement::registerMediaControlsFactory( |
| 96 WTF::makeUnique<MediaControlsImpl::Factory>()); |
| 97 |
92 ASSERT(isInitialized()); | 98 ASSERT(isInitialized()); |
93 } | 99 } |
94 | 100 |
95 } // namespace blink | 101 } // namespace blink |
OLD | NEW |