| 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 "InitModules.h" | 5 #include "InitModules.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/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/html/HTMLCanvasElement.h" | 10 #include "core/html/HTMLCanvasElement.h" |
| 11 #include "modules/EventModulesFactory.h" | 11 #include "modules/EventModulesFactory.h" |
| 12 #include "modules/EventModulesNames.h" | 12 #include "modules/EventModulesNames.h" |
| 13 #include "modules/EventTargetModulesNames.h" | 13 #include "modules/EventTargetModulesNames.h" |
| 14 #include "modules/IndexedDBNames.h" | 14 #include "modules/IndexedDBNames.h" |
| 15 #include "modules/accessibility/AXObjectCacheImpl.h" | 15 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 16 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 16 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 17 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" | 17 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
| 18 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" |
| 18 #include "modules/webdatabase/DatabaseManager.h" | 19 #include "modules/webdatabase/DatabaseManager.h" |
| 19 #include "modules/webgl/WebGL2RenderingContext.h" | 20 #include "modules/webgl/WebGL2RenderingContext.h" |
| 20 #include "modules/webgl/WebGLRenderingContext.h" | 21 #include "modules/webgl/WebGLRenderingContext.h" |
| 21 | 22 |
| 22 namespace blink { | 23 namespace blink { |
| 23 | 24 |
| 24 void ModulesInitializer::init() | 25 void ModulesInitializer::init() |
| 25 { | 26 { |
| 26 ASSERT(!isInitialized()); | 27 ASSERT(!isInitialized()); |
| 27 | 28 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 IndexedDBNames::init(); | 39 IndexedDBNames::init(); |
| 39 AXObjectCache::init(AXObjectCacheImpl::create); | 40 AXObjectCache::init(AXObjectCacheImpl::create); |
| 40 DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystemImpl::prepareForDat
aObject); | 41 DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystemImpl::prepareForDat
aObject); |
| 41 | 42 |
| 42 CoreInitializer::init(); | 43 CoreInitializer::init(); |
| 43 | 44 |
| 44 // Canvas context types must be registered with the HTMLCanvasElement. | 45 // Canvas context types must be registered with the HTMLCanvasElement. |
| 45 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); | 46 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); |
| 46 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); | 47 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); |
| 47 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); | 48 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); |
| 49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); |
| 48 | 50 |
| 49 ASSERT(isInitialized()); | 51 ASSERT(isInitialized()); |
| 50 } | 52 } |
| 51 | 53 |
| 52 void ModulesInitializer::terminateThreads() | 54 void ModulesInitializer::terminateThreads() |
| 53 { | 55 { |
| 54 DatabaseManager::terminateDatabaseThread(); | 56 DatabaseManager::terminateDatabaseThread(); |
| 55 } | 57 } |
| 56 | 58 |
| 57 } // namespace blink | 59 } // namespace blink |
| OLD | NEW |