| Index: ui/file_manager/audio_player/js/audio_player_scripts.js
|
| diff --git a/ui/file_manager/audio_player/js/audio_player_scripts.js b/ui/file_manager/audio_player/js/audio_player_scripts.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5d730cf8c5c415d07bf3be15fd292bf1ed96e6b9
|
| --- /dev/null
|
| +++ b/ui/file_manager/audio_player/js/audio_player_scripts.js
|
| @@ -0,0 +1,46 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +<include src="../../../webui/resources/js/cr.js"/>
|
| +<include src="../../../webui/resources/js/cr/event_target.js"/>
|
| +<include src="../../../webui/resources/js/cr/ui/array_data_model.js"/>
|
| +
|
| +// Hack for polymer, notifying that CSP is enabled here.
|
| +// TODO(yoshiki): Find a way to remove the hack.
|
| +if (!('securityPolicy' in document))
|
| + document['securityPolicy'] = {};
|
| +if (!('allowsEval' in document.securityPolicy))
|
| + document.securityPolicy['allowsEval'] = false;
|
| +
|
| +// Force Polymer into dirty-checking mode, see http://crbug.com/351967
|
| +Object['observe'] = undefined;
|
| +
|
| +<include src="../../../../third_party/polymer/components/platform/platform.js">
|
| +<include src="../../../../third_party/polymer/components/polymer/polymer.js">
|
| +
|
| +(function() {
|
| +
|
| +// 'strict mode' is invoked for this scope.
|
| +'use strict';
|
| +
|
| +<include src="../../file_manager/common/js/async_util.js"/>
|
| +<include src="../../file_manager/common/js/util.js"/>
|
| +<include src="../../file_manager/common/js/volume_manager_common.js"/>
|
| +<include src="../../file_manager/foreground/js/file_type.js"/>
|
| +<include src="../../file_manager/foreground/js/volume_manager_wrapper.js">
|
| +<include src="../../file_manager/foreground/js/metadata/metadata_cache.js"/>
|
| +
|
| +<include src="audio_player.js"/>
|
| +<include src="audio_player_model.js"/>
|
| +
|
| +<include src="../elements/track_list.js"/>
|
| +<include src="../elements/control_panel.js"/>
|
| +<include src="../elements/volume_controller.js"/>
|
| +<include src="../elements/audio_player.js"/>
|
| +
|
| +window.reload = reload;
|
| +window.unload = unload;
|
| +window.AudioPlayer = AudioPlayer;
|
| +
|
| +})();
|
|
|