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

Unified Diff: third_party/WebKit/Source/modules/InitModules.cpp

Issue 1776993007: Rename Init.h to CoreInitializer.h, and InitModules.h to ModuleInitializer.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/InitModules.cpp
diff --git a/third_party/WebKit/Source/modules/InitModules.cpp b/third_party/WebKit/Source/modules/InitModules.cpp
deleted file mode 100644
index 031048d6f370a4d11071715213e5eed495cc45af..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/InitModules.cpp
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "InitModules.h"
-
-#include "bindings/modules/v8/ModuleBindingsInitializer.h"
-#include "core/EventTypeNames.h"
-#include "core/dom/Document.h"
-#include "core/html/HTMLCanvasElement.h"
-#include "modules/EventModulesFactory.h"
-#include "modules/EventModulesNames.h"
-#include "modules/EventTargetModulesNames.h"
-#include "modules/IndexedDBNames.h"
-#include "modules/accessibility/AXObjectCacheImpl.h"
-#include "modules/canvas2d/CanvasRenderingContext2D.h"
-#include "modules/filesystem/DraggedIsolatedFileSystemImpl.h"
-#include "modules/imagebitmap/ImageBitmapRenderingContext.h"
-#include "modules/offscreencanvas/OffscreenCanvas.h"
-#include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h"
-#include "modules/webdatabase/DatabaseManager.h"
-#include "modules/webgl/WebGL2RenderingContext.h"
-#include "modules/webgl/WebGLRenderingContext.h"
-
-namespace blink {
-
-void ModulesInitializer::init()
-{
- ASSERT(!isInitialized());
-
- // Strings must be initialized before calling CoreInitializer::init().
- const unsigned modulesStaticStringsCount = EventNames::EventModulesNamesCount
- + EventTargetNames::EventTargetModulesNamesCount
- + IndexedDBNames::IndexedDBNamesCount;
- StringImpl::reserveStaticStringsCapacityForSize(modulesStaticStringsCount);
-
- EventNames::initModules();
- EventTargetNames::initModules();
- Document::registerEventFactory(EventModulesFactory::create());
- ModuleBindingsInitializer::init();
- IndexedDBNames::init();
- AXObjectCache::init(AXObjectCacheImpl::create);
- DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystemImpl::prepareForDataObject);
-
- CoreInitializer::init();
-
- // Canvas context types must be registered with the HTMLCanvasElement.
- HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRenderingContext2D::Factory()));
- HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderingContext::Factory()));
- HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2RenderingContext::Factory()));
- HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapRenderingContext::Factory()));
-
- // OffscreenCanvas context types must be registered with the OffscreenCanvas.
- OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanvasRenderingContext2D::Factory()));
-
- ASSERT(isInitialized());
-}
-
-void ModulesInitializer::shutdown()
-{
- ASSERT(isInitialized());
- DatabaseManager::terminateDatabaseThread();
- CoreInitializer::shutdown();
-
-}
-
-} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/InitModules.h ('k') | third_party/WebKit/Source/modules/ModulesInitializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698