Chromium Code Reviews| Index: components/proximity_auth/webui/resources/content-panel.js |
| diff --git a/components/proximity_auth/webui/resources/content-panel.js b/components/proximity_auth/webui/resources/content-panel.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9deaec81d9e7f6e685c8fb0d4a6a5739570d4336 |
| --- /dev/null |
| +++ b/components/proximity_auth/webui/resources/content-panel.js |
| @@ -0,0 +1,116 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +Polymer('content-panel', { |
| + publish: { |
| + /** |
| + * The selected page that is currently shown. |
| + * @type {number} |
| + */ |
| + selected: 0, |
|
michaelpg
2015/04/28 04:00:49
These properties only need to be in the publish bl
Tim Song
2015/04/28 19:41:33
Done.
|
| + |
| + /** |
| + * List of devices that are eligible to be used as an unlock key. |
| + * @type {Array<DeviceInfo>} |
| + */ |
| + eligibleDevices: [ |
| + { |
| + publicKey: "CAESRQogHoQkD-Q7ryI-FL8Pei6YaONx_v9vdvCSRvGQc4_bX2wSIQDWs" + |
|
michaelpg
2015/04/28 04:00:49
use single quotes for JS strings throughout
michaelpg
2015/04/28 04:00:49
nit: indent is off here -- add another space
Tim Song
2015/04/28 19:41:33
Done.
Tim Song
2015/04/28 19:41:33
Done.
|
| + "grK8XORMk5AKxlvOMXpSdDeNiwJH2R5-TUtoJmc3Q==", |
| + friendlyDeviceName: "LGE Nexus 5", |
| + unlockKey: true, |
| + unlockable: false, |
| + connectionStatus: 'connecting', |
| + }, |
| + { |
| + publicKey: "KA5STvog9oQkt1K9r7n-AL83eiXYaqN38v3vdvCSRvGQc4_bX2wSIQDWs" + |
| + "grK8XORMk5AKxlvOMXpSdDeNiwJH2R5-TUtoJmc3Q==", |
| + friendlyDeviceName: "Apple iPhone 6", |
| + unlockKey: false, |
| + unlockable: false |
| + }, |
| + ], |
| + |
| + /** |
| + * List of devices that are ineligible to be used as an unlock key. |
| + * @type {Array<DeviceInfo>} |
| + */ |
| + ineligibleDevices: [ |
| + { |
| + publicKey: "CAESRQogHoQkD-Q7ryI-FL8Pei6YaONx_v9vdvCSRvGQc4_bX2wSIQDWs" + |
| + "grK8XORMk5AKxlvOMXpSdDeNiwJH2R5-TUtoJmc3Q==", |
| + friendlyDeviceName: "Motorola Nexus 6", |
| + unlockKey: false, |
| + unlockable: false, |
| + ineligibilityReasons: [ |
| + 'deviceOffline', |
| + 'invalidCredentials', |
| + 'unknownError' |
| + ] |
| + }, |
| + { |
| + publicKey: "CAESRQogHoQkD-Q7ryI-FL8Pei6YaONx_v9vdvCSRvGQc4_bX2wSIQDWs" + |
| + "grK8XORMk5AKxlvOMXpSdDeNiwJH2R5-TUtoJmc3Q==", |
| + friendlyDeviceName: "LGE LG-D855", |
| + unlockKey: false, |
| + unlockable: false, |
| + ineligibilityReasons: [ |
| + 'badOsVersion', |
| + 'invalidCredentials', |
| + 'bluetoothNotSupported', |
| + 'deviceOffline' |
| + ], |
| + }, |
| + ], |
| + |
| + /** |
| + * List of devices that are online and reachable by CryptAuth. |
| + * @type {Array<DeviceInfo>} |
| + */ |
| + onlineDevices: [ |
| + { |
| + publicKey: "CAESRgohAN4IwMl-bTemMQ0E-YV36s86TG0suEj422xKvNoIslyvEiE" + |
| + "Ab8m8J4dB44v2l8l-38-9vLwzf9GsPth4BsquCpAbNRk=", |
| + friendlyDeviceName: "Sony Xperia Z3", |
| + }, |
| + { |
| + publicKey: "CAESRgohAN5ljWzNNYWbuQNoQdE0NhZaCg9CmCVd-XuwR__41G_5EiE" + |
| + "A3ATFvesN_6Tr-wSM5fHL5v5Bn1mX4d-m4OXJ3beRYhk=", |
| + friendlyDeviceName: "Samsung Galaxy S5", |
| + }, |
| + { |
| + publicKey: "CAESRgohAN9QYU5HySO14Gi9PDIClacBnC0C8wqPwXsNHUNG_vXlEiE" + |
| + "AggzU80ZOd9DWuCBdp6bzpGcC-oj1yrwdVCHGg_yeaAQ=", |
| + friendlyDeviceName: "LGE Nexus 5", |
| + }, |
| + { |
| + publicKey: "CAESRgohAOGtyjLiPnkQwi-bAvp75hUrBkfRlx2pBw7_C0VojjIFEiE" + |
| + "ARMN6miPfDOtlAFOiV7fulvhoDqguq-sTjUCZ2Et0mYQ=", |
| + friendlyDeviceName: "LGE Nexus 4", |
| + unlockKey: true, |
| + connectionStatus: 'disconnected', |
| + }, |
| + { |
| + publicKey: "CAESRgohAOKowGAhRs6FryK5KZqlHoAinNCon0T1tpeyIGPzKKmlEiE" + |
| + "ARH5joqbVWtLGjuh7aO7nLEhkFxv0u2C3kyoWysq6U_4=", |
| + friendlyDeviceName: "Samsung GT-N8010", |
| + }, |
| + { |
| + publicKey: "CAESRgohAOPegrIJNl9HeFeykbCswXciAXOpJZdme6Nh2WcMMiyZEiE" + |
| + "A8X7fTDRh61X-iDE1bYASMPiCbk7bPy7n0N0MiBeJNuo=", |
| + friendlyDeviceName: "Sony D5503", |
| + }, |
| + { |
| + publicKey: "CAESRgohAOZly-M7bBQokc3CJ9Wio37bzpUYaD-p9On3e6H4n2kKEiE" + |
| + "ANhkioq9y_19lN8Wnoc8XBLOilyyT6kn6iM00DEIOhFk=", |
| + friendlyDeviceName: "LGE LG-D855", |
| + }, |
| + { |
| + publicKey: "CAESRgohAOZ6JXDntf-h7MmRgrJc9RuW0mIgDluYEBcs8zx_uESeEiE" + |
| + "AeQk_My_0AFM9jb0eOSZupZ2s_n-6Vqs-_XaOnbAGSeU=", |
| + friendlyDeviceName: "Motorola Nexus 6", |
| + }, |
| + ], |
| + }, |
| +}); |