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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html

Issue 1273423004: Shows a launch spinner next to a sink once it is selected to create a route. The launch spinner sur… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Kevin's comments Created 5 years, 4 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/media_router_container/media_router_container.html
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html
index 2f7b84a3224005eaf666ddbd33b74df7f7714790..3b4efb364970dbe269d70c9752f8c512bf8dac0b 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html
@@ -68,9 +68,13 @@
<div class="sink-content">
<div>
<!-- TODO(apacible): Show device icon based on device type. -->
- <iron-icon icon="hardware:tv"
+ <iron-icon icon="hardware:tv" hidden$="[[item.isLaunching]]"
class$="[[computeSinkIconClass_(item.id, sinkToRouteMap_)]]">
</iron-icon>
+ <template is="dom-if" if="[[item.isLaunching]]">
apacible 2015/08/10 14:13:26 Switch to just using modifying the hidden attribut
haibinlu 2015/08/11 01:31:46 per offline discussion, launch is much less often
apacible 2015/08/11 18:29:58 Acknowledged.
+ <paper-spinner class="sink-icon" active>
+ </paper-spinner>
+ </template>
</div>
<div>
<div class="sink-text">

Powered by Google App Engine
This is Rietveld 408576698