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