Index: chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js |
diff --git a/chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js b/chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..93aefe5db756bcaeaa204f6e5cef25e39d985bdb |
--- /dev/null |
+++ b/chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js |
@@ -0,0 +1,27 @@ |
+// Copyright 2017 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. |
+ |
+/** |
+ * Interface for the Polymer element that shows media controls for a route that |
+ * is currently cast to a device. |
+ * @record |
+ */ |
+function RouteControlsInterface() {} |
+ |
+/** |
+ * @type {!media_router.RouteStatus} |
+ */ |
+RouteControlsInterface.prototype.routeStatus; |
+ |
+/** |
+ * Resets the route controls. Called when the route details view is closed. |
+ */ |
+RouteControlsInterface.prototype.reset = function() {}; |
+ |
+/** |
+ * Called when the route is updated. Updates the description shown if it has |
+ * not been provided by status updates. |
+ * @param {!media_router.Route} route |
+ */ |
+RouteControlsInterface.prototype.onRouteUpdated = function(route) {}; |