Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / file_manager / audio_player / js / audio_player_scripts.js
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 // The include directives are put into Javascript-style comments to prevent
6 // parsing errors in non-flattened mode. The flattener still sees them.
7 // Note that this makes the flattener to comment out the first line of the
8 // included file but that's all right since any javascript file should start
9 // with a copyright comment anyway.
10
11 //<include src="../../../../../../ui/webui/resources/js/cr.js"/>
12 //<include src="../../../../../../ui/webui/resources/js/cr/event_target.js"/>
13 //<include src="../../../../../../ui/webui/resources/js/cr/ui/array_data_model.js"/>
14
15 // Hack for polymer, notifying that CSP is enabled here.
16 // TODO(yoshiki): Find a way to remove the hack.
17 if (!('securityPolicy' in document))
18   document['securityPolicy'] = {};
19 if (!('allowsEval' in document.securityPolicy))
20   document.securityPolicy['allowsEval'] = false;
21
22 //<include src="../../../../../../third_party/polymer/platform/platform.js">
23 //<include src="../../../../../../third_party/polymer/polymer/polymer.js">
24
25 (function() {
26
27 // 'strict mode' is invoked for this scope.
28 'use strict';
29
30 //<include src="../../common/js/async_util.js"/>
31 //<include src="../../common/js/util.js"/>
32 //<include src="../../common/js/path_util.js"/>
33 //<include src="../../foreground/js/file_type.js"/>
34 //<include src="../../foreground/js/volume_manager_wrapper.js">
35 //<include src="../../foreground/js/metadata/metadata_cache.js"/>
36
37 //<include src="audio_player.js"/>
38 //<include src="audio_player_model.js"/>
39 //<include src="../../foreground/js/media/player_testapi.js"/>
40
41 //<include src="../elements/track_list.js"/>
42 //<include src="../elements/control_panel.js"/>
43 //<include src="../elements/volume_controller.js"/>
44 //<include src="../elements/audio_player.js"/>
45
46 window.reload = reload;
47 window.unload = unload;
48 window.AudioPlayer = AudioPlayer;
49
50 })();