| Index: chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js
|
| diff --git a/chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js b/chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..249691efe6379037bc76ac629d253cbaccfa0eed
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2013 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.
|
| +
|
| +// The include directives are put into Javascript-style comments to prevent
|
| +// parsing errors in non-flattened mode. The flattener still sees them.
|
| +// Note that this makes the flattener to comment out the first line of the
|
| +// included file but that's all right since any javascript file should start
|
| +// with a copyright comment anyway.
|
| +
|
| +//<include src="../../../../../../ui/webui/resources/js/cr.js"/>
|
| +//<include src="../../../../../../ui/webui/resources/js/cr/event_target.js"/>
|
| +//<include src="../../../../../../ui/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;
|
| +
|
| +//<include src="../../../../../../third_party/polymer/platform/platform.js">
|
| +//<include src="../../../../../../third_party/polymer/polymer/polymer.js">
|
| +
|
| +(function() {
|
| +
|
| +// 'strict mode' is invoked for this scope.
|
| +'use strict';
|
| +
|
| +//<include src="../../common/js/async_util.js"/>
|
| +//<include src="../../common/js/util.js"/>
|
| +//<include src="../../common/js/path_util.js"/>
|
| +//<include src="../../foreground/js/file_type.js"/>
|
| +//<include src="../../foreground/js/volume_manager_wrapper.js">
|
| +//<include src="../../foreground/js/metadata/metadata_cache.js"/>
|
| +
|
| +//<include src="audio_player.js"/>
|
| +//<include src="../../foreground/js/media/player_testapi.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;
|
| +
|
| +})();
|
|
|