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

Unified Diff: ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html

Issue 954293003: Support badges and connecting animation in cr-network-icon element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Feedback Created 5 years, 10 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: ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html
diff --git a/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html b/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html
index a8a53fb2ffa2440bd47394afbfb943335fcae32c..4762f6cde1664dcbe2d8c8bb884db6ba60870e5c 100644
--- a/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html
+++ b/ui/webui/resources/cr_elements/cr_network_icon/cr_network_icon.html
@@ -3,9 +3,15 @@
<polymer-element name="cr-network-icon">
<template>
<link rel="stylesheet" href="cr_network_icon.css">
- <img id="icon">
+ <img id="icon" src="{{iconType | toImageSrc}}">
+ <img id="technology" src="{{technology | toBadgeImageSrc}}"
+ hidden?="{{!technology}}">
+ <img id="roaming"
+ src="chrome://resources/cr_elements/cr_network_icon/badge_roaming.png"
+ hidden?="{{!roaming}}">
<img id="secure"
- src="chrome://resources/cr_elements/cr_network_icon/secure.png">
+ src="chrome://resources/cr_elements/cr_network_icon/badge_secure.png"
+ hidden?="{{!secure}}">
</template>
<script src="cr_network_icon.js"></script>
</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698