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

Unified Diff: Source/modules/InitModules.cpp

Issue 275283002: Split EventTargetFactory.in and auto-generate modules-related files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 7 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: Source/modules/InitModules.cpp
diff --git a/Source/modules/InitModules.cpp b/Source/modules/InitModules.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..f8d0ed8b03f569e3ff10ea15254005c57de4daba
--- /dev/null
+++ b/Source/modules/InitModules.cpp
@@ -0,0 +1,27 @@
+// 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 "config.h"
+#include "InitModules.h"
+
+#include "EventTargetModulesNames.h"
+#include "core/Init.h"
+
+namespace WebCore {
+
+void initModules()
Nils Barth (inactive) 2014/05/12 01:41:56 abarth: Do we have a naming preference about initM
+{
+ static bool isInited;
+ if (isInited)
+ return;
+ isInited = true;
+
+ init();
+
+// EventNames::init(); TODO: split core and modules names under bindings
Nils Barth (inactive) 2014/05/12 01:31:41 Could you link to a bug number? http://crbug.com/3
+ EventTargetNames::initModules();
+// EventTypeNames::init(); TODO: split core and modules type names under bindings
+}
+
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698