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 3 // found in the LICENSE file. 4 5 #include "config.h" 6 #include "InitModules.h" 7 8 #include "EventModulesFactory.h" 9 #include "EventModulesNames.h" 10 #include "EventTargetModulesNames.h" 11 #include "EventTypeNames.h" 12 #include "core/dom/Document.h" 13 14 namespace WebCore { 15 16 void ModulesInitializer::initEventNames() 17 { 18 EventNames::init(); 19 EventNames::initModules(); 20 } 21 22 void ModulesInitializer::initEventTargetNames() 23 { 24 EventTargetNames::init(); 25 EventTargetNames::initModules(); 26 } 27 28 void ModulesInitializer::registerEventFactory() 29 { 30 CoreInitializer::registerEventFactory(); 31 Document::registerEventFactory(EventModulesFactory::create()); 32 } 33 34 } // namespace WebCore 35