| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 <include src="../../../webui/resources/js/cr.js"/> | 5 <include src="../../../webui/resources/js/cr.js"/> |
| 6 <include src="../../../webui/resources/js/cr/event_target.js"/> | 6 <include src="../../../webui/resources/js/cr/event_target.js"/> |
| 7 <include src="../../../webui/resources/js/cr/ui/array_data_model.js"/> | 7 <include src="../../../webui/resources/js/cr/ui/array_data_model.js"/> |
| 8 | 8 |
| 9 // Hack for polymer, notifying that CSP is enabled here. | 9 // Hack for polymer, notifying that CSP is enabled here. |
| 10 // TODO(yoshiki): Find a way to remove the hack. | 10 // TODO(yoshiki): Find a way to remove the hack. |
| 11 if (!('securityPolicy' in document)) | 11 if (!('securityPolicy' in document)) |
| 12 document['securityPolicy'] = {}; | 12 document['securityPolicy'] = {}; |
| 13 if (!('allowsEval' in document.securityPolicy)) | 13 if (!('allowsEval' in document.securityPolicy)) |
| 14 document.securityPolicy['allowsEval'] = false; | 14 document.securityPolicy['allowsEval'] = false; |
| 15 | 15 |
| 16 // Force Polymer into dirty-checking mode, see http://crbug.com/351967 | |
| 17 Object['observe'] = undefined; | |
| 18 | |
| 19 <include src="../../../../third_party/polymer/components/polymer/polymer.js"> | 16 <include src="../../../../third_party/polymer/components/polymer/polymer.js"> |
| 20 | 17 |
| 21 (function() { | 18 (function() { |
| 22 | 19 |
| 23 // 'strict mode' is invoked for this scope. | 20 // 'strict mode' is invoked for this scope. |
| 24 'use strict'; | 21 'use strict'; |
| 25 | 22 |
| 26 // Base classes. | 23 // Base classes. |
| 27 <include src="../../file_manager/foreground/js/metadata/metadata_cache_set.js"> | 24 <include src="../../file_manager/foreground/js/metadata/metadata_cache_set.js"> |
| 28 <include src="../../file_manager/foreground/js/metadata/new_metadata_provider.js
"> | 25 <include src="../../file_manager/foreground/js/metadata/new_metadata_provider.js
"> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 48 <include src="../elements/track_list.js"/> | 45 <include src="../elements/track_list.js"/> |
| 49 <include src="../elements/control_panel.js"/> | 46 <include src="../elements/control_panel.js"/> |
| 50 <include src="../elements/volume_controller.js"/> | 47 <include src="../elements/volume_controller.js"/> |
| 51 <include src="../elements/audio_player.js"/> | 48 <include src="../elements/audio_player.js"/> |
| 52 | 49 |
| 53 window.reload = reload; | 50 window.reload = reload; |
| 54 window.unload = unload; | 51 window.unload = unload; |
| 55 window.AudioPlayer = AudioPlayer; | 52 window.AudioPlayer = AudioPlayer; |
| 56 | 53 |
| 57 })(); | 54 })(); |
| OLD | NEW |