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/core/v8/TransferableExtractor.h" |
7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" | 8 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
| 9 #include "bindings/modules/v8/TransferableOffscreenCanvasExtractor.h" |
8 #include "core/EventTypeNames.h" | 10 #include "core/EventTypeNames.h" |
9 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
10 #include "core/html/HTMLCanvasElement.h" | 12 #include "core/html/HTMLCanvasElement.h" |
11 #include "modules/EventModulesFactory.h" | 13 #include "modules/EventModulesFactory.h" |
12 #include "modules/EventModulesNames.h" | 14 #include "modules/EventModulesNames.h" |
13 #include "modules/EventTargetModulesNames.h" | 15 #include "modules/EventTargetModulesNames.h" |
14 #include "modules/IndexedDBNames.h" | 16 #include "modules/IndexedDBNames.h" |
15 #include "modules/accessibility/AXObjectCacheImpl.h" | 17 #include "modules/accessibility/AXObjectCacheImpl.h" |
16 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 18 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
17 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" | 19 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
(...skipping 28 matching lines...) Expand all Loading... |
46 | 48 |
47 // Canvas context types must be registered with the HTMLCanvasElement. | 49 // Canvas context types must be registered with the HTMLCanvasElement. |
48 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); | 50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); |
49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); | 51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); |
50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); | 52 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); |
51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); | 53 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); |
52 | 54 |
53 // OffscreenCanvas context types must be registered with the OffscreenCanvas
. | 55 // OffscreenCanvas context types must be registered with the OffscreenCanvas
. |
54 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva
sRenderingContext2D::Factory())); | 56 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva
sRenderingContext2D::Factory())); |
55 | 57 |
| 58 TransferableExtractor::registerTransferableExtractor(adoptPtr(new Transferab
leOffscreenCanvasExtractor())); |
| 59 |
56 ASSERT(isInitialized()); | 60 ASSERT(isInitialized()); |
57 } | 61 } |
58 | 62 |
59 void ModulesInitializer::shutdown() | 63 void ModulesInitializer::shutdown() |
60 { | 64 { |
61 ASSERT(isInitialized()); | 65 ASSERT(isInitialized()); |
62 DatabaseManager::terminateDatabaseThread(); | 66 DatabaseManager::terminateDatabaseThread(); |
63 CoreInitializer::shutdown(); | 67 CoreInitializer::shutdown(); |
64 } | 68 } |
65 | 69 |
66 } // namespace blink | 70 } // namespace blink |
OLD | NEW |