OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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="media_router_data.js"> | 5 // <include src="media_router_data.js"> |
6 <include src="media_router_ui_interface.js"> | 6 // <include src="media_router_ui_interface.js"> |
7 | 7 |
8 // Handles user events for the Media Router UI. | 8 // Handles user events for the Media Router UI. |
9 cr.define('media_router', function() { | 9 cr.define('media_router', function() { |
10 'use strict'; | 10 'use strict'; |
11 | 11 |
12 /** | 12 /** |
13 * The media-router-container element. Initialized after polymer is ready. | 13 * The media-router-container element. Initialized after polymer is ready. |
14 * @type {?MediaRouterContainerElement} | 14 * @type {?MediaRouterContainerElement} |
15 */ | 15 */ |
16 var container = null; | 16 var container = null; |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 function onWindowBlur() { | 379 function onWindowBlur() { |
380 media_router.browserApi.reportBlur(); | 380 media_router.browserApi.reportBlur(); |
381 } | 381 } |
382 | 382 |
383 return { | 383 return { |
384 initialize: initialize, | 384 initialize: initialize, |
385 }; | 385 }; |
386 }); | 386 }); |
387 | 387 |
388 window.addEventListener('load', media_router.initialize); | 388 window.addEventListener('load', media_router.initialize); |
OLD | NEW |