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 <include src="../../../webui/resources/js/cr.js"/> | 5 <include src="../../../webui/resources/js/cr.js"/> |
6 <include src="../../../webui/resources/js/cr/event_target.js"/> | 6 <include src="../../../webui/resources/js/cr/event_target.js"/> |
7 <include src="../../../webui/resources/js/cr/ui/array_data_model.js"/> | 7 <include src="../../../webui/resources/js/cr/ui/array_data_model.js"/> |
8 | 8 |
9 // Hack for polymer, notifying that CSP is enabled here. | 9 // Hack for polymer, notifying that CSP is enabled here. |
10 // TODO(yoshiki): Find a way to remove the hack. | 10 // TODO(yoshiki): Find a way to remove the hack. |
11 if (!('securityPolicy' in document)) | 11 if (!('securityPolicy' in document)) |
12 document['securityPolicy'] = {}; | 12 document['securityPolicy'] = {}; |
13 if (!('allowsEval' in document.securityPolicy)) | 13 if (!('allowsEval' in document.securityPolicy)) |
14 document.securityPolicy['allowsEval'] = false; | 14 document.securityPolicy['allowsEval'] = false; |
15 | 15 |
16 // Force Polymer into dirty-checking mode, see http://crbug.com/351967 | 16 // Force Polymer into dirty-checking mode, see http://crbug.com/351967 |
17 Object['observe'] = undefined; | 17 Object['observe'] = undefined; |
18 | 18 |
19 <include src="../../../../third_party/polymer/components/polymer/polymer.js"> | 19 <include src="../../../../third_party/polymer/components/polymer/polymer.js"> |
20 | 20 |
21 (function() { | 21 (function() { |
22 | 22 |
23 // 'strict mode' is invoked for this scope. | 23 // 'strict mode' is invoked for this scope. |
24 'use strict'; | 24 'use strict'; |
25 | 25 |
| 26 // Base classes. |
| 27 <include src="../../file_manager/foreground/js/metadata/metadata_cache_set.js"> |
| 28 <include src="../../file_manager/foreground/js/metadata/new_metadata_provider.js
"> |
| 29 |
26 <include src="../../file_manager/common/js/async_util.js"/> | 30 <include src="../../file_manager/common/js/async_util.js"/> |
27 <include src="../../file_manager/common/js/file_type.js"/> | 31 <include src="../../file_manager/common/js/file_type.js"/> |
28 <include src="../../file_manager/common/js/util.js"/> | 32 <include src="../../file_manager/common/js/util.js"/> |
29 <include src="../../file_manager/common/js/volume_manager_common.js"/> | 33 <include src="../../file_manager/common/js/volume_manager_common.js"/> |
30 <include src="../../file_manager/foreground/js/volume_manager_wrapper.js"> | 34 <include src="../../file_manager/foreground/js/volume_manager_wrapper.js"> |
31 <include src="../../file_manager/foreground/js/metadata/metadata_cache.js"/> | 35 |
| 36 <include src="../../file_manager/foreground/js/metadata/content_metadata_provide
r.js"> |
| 37 <include src="../../file_manager/foreground/js/metadata/external_metadata_provid
er.js"> |
| 38 <include src="../../file_manager/foreground/js/metadata/file_system_metadata.js"
> |
| 39 <include src="../../file_manager/foreground/js/metadata/file_system_metadata_pro
vider.js"> |
| 40 <include src="../../file_manager/foreground/js/metadata/metadata_cache_item.js"> |
| 41 <include src="../../file_manager/foreground/js/metadata/metadata_item.js"> |
| 42 <include src="../../file_manager/foreground/js/metadata/thumbnail_model.js"> |
32 | 43 |
33 <include src="audio_player.js"/> | 44 <include src="audio_player.js"/> |
34 <include src="audio_player_model.js"/> | 45 <include src="audio_player_model.js"/> |
35 | 46 |
36 <include src="../elements/track_list.js"/> | 47 <include src="../elements/track_list.js"/> |
37 <include src="../elements/control_panel.js"/> | 48 <include src="../elements/control_panel.js"/> |
38 <include src="../elements/volume_controller.js"/> | 49 <include src="../elements/volume_controller.js"/> |
39 <include src="../elements/audio_player.js"/> | 50 <include src="../elements/audio_player.js"/> |
40 | 51 |
41 window.reload = reload; | 52 window.reload = reload; |
42 window.unload = unload; | 53 window.unload = unload; |
43 window.AudioPlayer = AudioPlayer; | 54 window.AudioPlayer = AudioPlayer; |
44 | 55 |
45 })(); | 56 })(); |
OLD | NEW |