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

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

Issue 2696903005: Move common cr-policy-indicator behavior into CrPolicyIndicatorBehavior (Closed)
Patch Set: remove behavior from Settings controls that have indicators Created 3 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/policy/cr_policy_pref_indicator.html
diff --git a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html
index a1cccce1f3fc016c13c3e5dd65e6db8b25f46570..deb56836b0c9e30dc583ffdda8c2a2eaec3563bf 100644
--- a/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html
+++ b/ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html
@@ -3,14 +3,12 @@
<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_pref_behavior.html">
<link rel="import" href="cr_policy_vars_css.html">
<dom-module id="cr-policy-pref-indicator">
- <link rel="import" type="css" href="cr_policy_indicator.css">
<style>
:host {
- display: flex; /* Position independantly from the line-height. */
+ @apply(--cr-policy-indicator);
}
paper-tooltip {
@@ -18,12 +16,11 @@
}
</style>
<template>
- <iron-icon id="indicator" tabindex=0 aria-describedby="tooltip"
- hidden$="[[!isIndicatorVisible(indicatorType_)]]"
- icon="[[getPolicyIndicatorIcon(indicatorType_)]]"></iron-icon>
+ <iron-icon id="indicator" tabindex="0" aria-describedby="tooltip"
+ hidden$="[[!indicatorVisible]]" icon="[[indicatorIcon]]"></iron-icon>
<paper-tooltip id="tooltip" for="indicator" position="top"
fit-to-visible-bounds>
- [[getTooltip_(indicatorType_, pref.*)]]
+ [[indicatorTooltip]]
</paper-tooltip>
</template>
<script src="cr_policy_pref_indicator.js"></script>

Powered by Google App Engine
This is Rietveld 408576698