Upstream version 7.35.144.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 // Force Polymer into dirty-checking mode, see http://crbug.com/351967
23 Object['observe'] = undefined;
24 Object['unobserve'] = undefined;
25
26 //<include src="../../../../../../third_party/polymer/platform/platform.js">
27 //<include src="../../../../../../third_party/polymer/polymer/polymer.js">
28
29 (function() {
30
31 // 'strict mode' is invoked for this scope.
32 'use strict';
33
34 //<include src="../../common/js/async_util.js"/>
35 //<include src="../../common/js/util.js"/>
36 //<include src="../../common/js/path_util.js"/>
37 //<include src="../../foreground/js/file_type.js"/>
38 //<include src="../../foreground/js/volume_manager_wrapper.js">
39 //<include src="../../foreground/js/metadata/metadata_cache.js"/>
40
41 //<include src="audio_player.js"/>
42 //<include src="audio_player_model.js"/>
43 //<include src="../../foreground/js/media/player_testapi.js"/>
44
45 //<include src="../elements/track_list.js"/>
46 //<include src="../elements/control_panel.js"/>
47 //<include src="../elements/volume_controller.js"/>
48 //<include src="../elements/audio_player.js"/>
49
50 window.reload = reload;
51 window.unload = unload;
52 window.AudioPlayer = AudioPlayer;
53
54 })();