| OLD | NEW |
| 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> |
| OLD | NEW |