OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This script includes additional resources via document.write(). Hence, it | 5 // This script includes additional resources via document.write(). Hence, it |
6 // must be a separate script file loaded before other scripts which would | 6 // must be a separate script file loaded before other scripts which would |
7 // reference the resources. | 7 // reference the resources. |
8 | 8 |
9 var css = [ | 9 var css = [ |
| 10 'chrome_shared.css', |
10 'list.css', | 11 'list.css', |
11 'table.css', | 12 'table.css', |
12 'menu.css', | 13 'menu.css', |
| 14 'button.css', |
13 ]; | 15 ]; |
14 | 16 |
15 var script = [ | 17 var script = [ |
16 'local_strings.js', | 18 'local_strings.js', |
17 'i18n_template.js', | 19 'i18n_template.js', |
18 | 20 |
19 'util.js', | 21 'util.js', |
20 'cr.js', | 22 'cr.js', |
21 'cr/ui.js', | 23 'cr/ui.js', |
22 'cr/event_target.js', | 24 'cr/event_target.js', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 for (var i = 0; i < css.length; ++i) { | 57 for (var i = 0; i < css.length; ++i) { |
56 document.write('<link href="' + prefix + 'css/' + css[i] + | 58 document.write('<link href="' + prefix + 'css/' + css[i] + |
57 '" rel="stylesheet"></link>'); | 59 '" rel="stylesheet"></link>'); |
58 } | 60 } |
59 | 61 |
60 for (var i = 0; i < script.length; ++i) { | 62 for (var i = 0; i < script.length; ++i) { |
61 document.write('<script src="' + prefix + 'js/' + script[i] + | 63 document.write('<script src="' + prefix + 'js/' + script[i] + |
62 '"><\/script>'); | 64 '"><\/script>'); |
63 } | 65 } |
64 })(); | 66 })(); |
OLD | NEW |