1 <link href=
"chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html" rel=
"import">
2 <link href=
"chrome://resources/polymer/v1_0/iron-icon/iron-icon.html" rel=
"import">
3 <link href=
"chrome://resources/polymer/v1_0/iron-icons/device-icons.html" rel=
"import">
4 <link href=
"chrome://resources/polymer/v1_0/iron-icons/hardware-icons.html" rel=
"import">
5 <link href=
"chrome://resources/polymer/v1_0/iron-icons/iron-icons.html" rel=
"import">
6 <link href=
"chrome://resources/polymer/v1_0/iron-icons/notification-icons.html" rel=
"import">
7 <link href=
"chrome://resources/polymer/v1_0/paper-button/paper-button.html" rel=
"import">
8 <link href=
"chrome://resources/polymer/v1_0/paper-dialog/paper-dialog.html" rel=
"import">
9 <link href=
"chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html" rel=
"import">
10 <link href=
"chrome://resources/polymer/v1_0/paper-material/paper-material.html" rel=
"import">
11 <link href=
"chrome://resources/polymer/v1_0/paper-spinner/paper-spinner.html" rel=
"import">
12 <link href=
"chrome://resources/polymer/v1_0/polymer/polymer.html" rel=
"import">
14 <dom-module id=
"device-list">
17 color: rgb(
153,
153,
153);
24 background-color: white;
28 border-bottom:
1px solid rgba(
0,
0,
0,
0.12);
41 text-overflow: ellipsis;
56 paper-icon-button, iron-icon {
60 paper-icon-button:hover, iron-icon:hover {
64 .ineligibility-icons {
73 iron-tooltip::shadow .iron-tooltip {
91 justify-content: flex-end;
105 <div class=
"devices-label">[[label]]
</div>
107 <paper-dialog id=
"unlock-key-dialog"
108 no-cancel-on-outside-click=
"true"
110 no-cancel-on-esc-key=
"true">
111 <div id=
"dialog-text">
112 <span hidden$=
"[[deviceForDialog_.unlockKey]]">
113 Make
<span>[[deviceForDialog_.friendlyDeviceName]]
</span> an unlock
116 <span hidden$=
"[[!deviceForDialog_.unlockKey]]">
117 Remove
<span>[[deviceForDialog_.friendlyDeviceName]]
</span> as an
121 <div id=
"dialog-buttons">
122 <paper-button dialog-dismiss disabled$=
"[[toggleUnlockKeyInProgress_]]">
125 <paper-button id=
"unlock-key-button" on-click=
"toggleUnlockKey_"
126 disabled$=
"[[toggleUnlockKeyInProgress_]]">
127 <span hidden$=
"[[deviceForDialog_.unlockKey]]">
130 <span hidden$=
"[[!deviceForDialog_.unlockKey]]">
138 <template is=
"dom-repeat" items=
"[[devices]]">
139 <div class=
"item layout horizontal center">
140 <paper-icon-button class=
"end-icon"
141 icon=
"[[getIconForUnlockKey_(item)]]"
142 on-click=
"showUnlockKeyDialog_">
146 <div class=
"layout horizontal center">
147 <span class=
"name">[[item.friendlyDeviceName]]
</span>
148 <core-tooltip position=
"top" hidden$=
"[[!item.remoteState]]">
149 <iron-icon icon=
"[[getIconForRemoteState_(item.remoteState)]]"
150 class=
"phone-lock flex"></iron-icon>
151 <!--TODO(tengs): Reimplement the tooltip after it is ported to
157 [[getUserPresenceText_(item.remoteState.userPresent)]]
163 [[getScreenLockText_(item.remoteState.secureScreenLock)]]
169 [[getTrustAgentText_(item.remoteState.trustAgent)]]
175 <div class=
"public-key">[[item.publicKey]]
</div>
178 <div class=
"flex"></div>
179 <div class=
"ineligibility-icons"
180 hidden$=
"[[!item.ineligibilityReasons]]">
181 <template is=
"dom-repeat" items=
"[[item.ineligibilityReasons]]">
182 <core-tooltip label=
"[[prettifyReason_(item)]]" position=
"top">
183 <iron-icon icon=
"[[getIconForIneligibilityReason_(item)]]")
184 class=
"ineligibility-icon">
189 <paper-icon-button class=
"end-icon"
190 bluetooth-address=
"[[item.bluetoothAddress]]"
191 on-click=
"toggleConnection_"
192 icon=
"[[getIconForConnection_(item.connectionStatus)]]"
193 hidden$=
"{{!item.unlockKey}}">
199 <script src=
"device-list.js"></script>