Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4477)

Unified Diff: chrome/browser/resources/file_manager/audio_player/js/audio_player_scripts.js

Issue 144883002: [Files.app] Initial implementation of new audio player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the script/css files flattened. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+
+})();

Powered by Google App Engine
This is Rietveld 408576698