Chromium Code Reviews| 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..4078c437c84def2a9ccaae8ecadba020b20d44b9 |
| --- /dev/null |
| +++ b/chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
|
mtomasz
2014/01/23 08:05:09
ditto 2014
yoshiki
2014/01/24 15:34:19
Done.
|
| +// 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"/> |
| + |
| +window.reload = reload; |
| +window.unload = unload; |
| +window.AudioPlayer = AudioPlayer; |
| + |
| +})(); |