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

Side by Side Diff: ui/webui/resources/cr_elements/policy/cr_policy_pref_indicator.html

Issue 2178273002: MD Settings: add a <controlled-button> that uses prefs to disable itself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tooltip/paper-too ltip.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tooltip/paper-too ltip.html">
5 <link rel="import" href="cr_policy_indicator_behavior.html"> 5 <link rel="import" href="cr_policy_indicator_behavior.html">
6 <link rel="import" href="cr_policy_pref_behavior.html"> 6 <link rel="import" href="cr_policy_pref_behavior.html">
7 7
8 <dom-module id="cr-policy-pref-indicator"> 8 <dom-module id="cr-policy-pref-indicator">
9 <link rel="import" type="css" href="cr_policy_indicator.css"> 9 <link rel="import" type="css" href="cr_policy_indicator.css">
10 <style> 10 <style>
11 paper-tooltip { 11 paper-tooltip {
12 --paper-tooltip: { 12 --paper-tooltip: {
13 font-size: 92.31%; /* Effectively 12px if the host default is 13px. */ 13 font-size: 92.31%; /* Effectively 12px if the host default is 13px. */
14 font-weight: 500; 14 font-weight: 500;
15 max-width: 330px;
16 min-width: 200px;
15 padding: 10px 8px; 17 padding: 10px 8px;
16 }; 18 };
17 } 19 }
18 </style> 20 </style>
19 <template> 21 <template>
20 <iron-icon id="indicator" tabindex=0 22 <iron-icon id="indicator" tabindex=0
21 hidden$="[[!isIndicatorVisible(indicatorType)]]" 23 hidden$="[[!isIndicatorVisible(indicatorType)]]"
22 icon="[[getPolicyIndicatorIcon(indicatorType)]]"></iron-icon> 24 icon="[[getPolicyIndicatorIcon(indicatorType)]]"></iron-icon>
23 <paper-tooltip for="indicator" position="top"> 25 <paper-tooltip for="indicator" position="top" fit-to-visible-bounds>
24 [[getTooltip_(indicatorType, pref, controllingUser)]] 26 [[getTooltip_(indicatorType, pref, controllingUser)]]
25 </paper-tooltip> 27 </paper-tooltip>
26 </template> 28 </template>
27 <script src="cr_policy_pref_indicator.js"></script> 29 <script src="cr_policy_pref_indicator.js"></script>
28 </dom-module> 30 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698