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<include src="../../../../webui/resources/js/cr.js"/> 6<include src="../../../../webui/resources/js/cr/event_target.js"/> 7<include src="../../../../webui/resources/js/cr/ui/array_data_model.js"/> 8 9// Hack for polymer, notifying that CSP is enabled here. 10// TODO(yoshiki): Find a way to remove the hack. 11if (!('securityPolicy' in document)) 12 document['securityPolicy'] = {}; 13if (!('allowsEval' in document.securityPolicy)) 14 document.securityPolicy['allowsEval'] = false; 15 16// Force Polymer into dirty-checking mode, see http://crbug.com/351967 17Object['observe'] = undefined; 18 19<include src="../../../../../third_party/polymer/platform/platform.js"> 20<include src="../../../../../third_party/polymer/polymer/polymer.js"> 21 22(function() { 23 24// 'strict mode' is invoked for this scope. 25'use strict'; 26 27<include src="../../common/js/async_util.js"/> 28<include src="../../common/js/util.js"/> 29<include src="../../common/js/volume_manager_common.js"/> 30<include src="../../foreground/js/file_type.js"/> 31<include src="../../foreground/js/volume_manager_wrapper.js"> 32<include src="../../foreground/js/metadata/metadata_cache.js"/> 33 34<include src="audio_player.js"/> 35<include src="audio_player_model.js"/> 36<include src="../../foreground/js/media/player_testapi.js"/> 37 38<include src="../elements/track_list.js"/> 39<include src="../elements/control_panel.js"/> 40<include src="../elements/volume_controller.js"/> 41<include src="../elements/audio_player.js"/> 42 43window.reload = reload; 44window.unload = unload; 45window.AudioPlayer = AudioPlayer; 46 47})(); 48