OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "use strict"; | 5 "use strict"; |
6 | 6 |
7 var installedClasses = {}; | 7 var installedClasses = {}; |
8 | 8 |
9 function installClass(className, implementation) { | 9 function installClass(className, implementation) { |
10 installedClasses[className] = implementation(); | 10 installedClasses[className] = implementation(window); |
11 } | 11 } |
12 | 12 |
13 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn
er.cpp) | 13 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn
er.cpp) |
14 // is depending on the completion value of this script. | 14 // is depending on the completion value of this script. |
15 (installedClasses); | 15 (installedClasses); |
OLD | NEW |