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

Unified Diff: chrome/browser/resources/media_router/elements/route_controls/route_controls_interface.js

Issue 2725503002: [Media Router] Custom Controls 4 - Implement details view WebUI (Closed)
Patch Set: Add braces to @implements {Interface} Created 3 years, 7 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/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) {};

Powered by Google App Engine
This is Rietveld 408576698