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

Unified Diff: Source/bindings/v8/BlinkInJSController.js

Issue 345893002: Implement an infrastructure of Blink-in-JS Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/bindings/v8/BlinkInJSController.js
diff --git a/Source/core/css/Pair.cpp b/Source/bindings/v8/BlinkInJSController.js
similarity index 50%
copy from Source/core/css/Pair.cpp
copy to Source/bindings/v8/BlinkInJSController.js
index 5362b6b52747f321f8c880c5518db518edd0230f..706a0c28ce0348bc31c6e4657cd10063e67a209c 100644
--- a/Source/core/css/Pair.cpp
+++ b/Source/bindings/v8/BlinkInJSController.js
@@ -2,15 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
abarth-chromium 2014/06/20 15:17:43 PrivateScriptController.js ?
haraken 2014/06/23 01:32:55 Renamed all "BlinkInJS" to "PrivateScript".
-#include "config.h"
-#include "core/css/Pair.h"
+"use strict";
-namespace WebCore {
+var installedClasses = {};
-void Pair::trace(Visitor* visitor)
-{
- visitor->trace(m_first);
- visitor->trace(m_second);
+function installClass(className, implementation) {
+ installedClasses[className] = implementation();
}
-}
+(installedClasses);
arv (Not doing code reviews) 2014/06/20 15:06:22 useless parens... This could use a comment that y
haraken 2014/06/23 01:32:55 Done.

Powered by Google App Engine
This is Rietveld 408576698