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

Unified Diff: ui/webui/resources/cr_elements/policy/cr_policy_indicator.html

Issue 2744923002: cr-policy-indicator element for non-preference-based indicators (Closed)
Patch Set: alphabetize Created 3 years, 9 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/policy/cr_policy_indicator.html
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_indicator.html b/ui/webui/resources/cr_elements/policy/cr_policy_indicator.html
new file mode 100644
index 0000000000000000000000000000000000000000..cff4f8c0995f40ef0cd2a401fc1b64de80f9d497
--- /dev/null
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_indicator.html
@@ -0,0 +1,28 @@
+<link rel="import" href="chrome://resources/cr_elements/icons.html">
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-tooltip/paper-tooltip.html">
+<link rel="import" href="cr_policy_indicator_behavior.html">
+<link rel="import" href="cr_policy_vars_css.html">
+
+<dom-module id="cr-policy-indicator">
+ <style>
+ :host {
+ @apply(--cr-policy-indicator);
+ }
+
+ paper-tooltip {
+ --paper-tooltip: var(--cr-policy-tooltip);
+ }
+ </style>
+ <template>
+ <iron-icon id="indicator" tabindex="0" aria-label$="[[iconAriaLabel]]"
+ aria-describedby="tooltip" hidden$="[[!indicatorVisible]]"
+ icon="[[indicatorIcon]]"></iron-icon>
+ <paper-tooltip id="tooltip" for="indicator" position="top"
+ fit-to-visible-bounds>
+ [[indicatorTooltip]]
+ </paper-tooltip>
+ </template>
+ <script src="cr_policy_indicator.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698