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

Side by Side Diff: components/proximity_auth/webui/resources/local-state.js

Issue 1108713002: Add chrome://proximity-auth UI implemented with Polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use hidden?= Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 Polymer('local-state', {
6 publish: {
7 /**
8 * The current CryptAuth enrollment status.
9 * @type {{
10 * lastSuccessTime: ?number,
11 * nextRefreshTime: string,
12 * lastAttemptFailed: boolean,
13 * }}
14 */
15 enrollmentInfo: null,
16
17 /**
18 * The current CryptAuth device sync status.
19 * @type {{
20 * lastSuccessTime: ?number,
21 * nextRefreshTime: string,
22 * lastAttemptFailed: boolean,
23 * }}
24 */
25 deviceSyncInfo: null,
26
27 /**
28 * List of unlock keys that can unlock the local device.
29 * @type {Array<DeviceInfo>}
30 */
31 unlockKeys: null,
32 },
33
34 /**
35 * Called when an instance is created.
36 */
37 created: function() {
38 this.enrollmentInfo = {
39 lastSuccessTime: null,
40 nextRefreshTime: '90 days',
41 lastAttemptFailed: true
42 };
43
44 this.deviceSyncInfo = {
45 lastSuccessTime: 'April 20 14:23',
46 nextRefreshTime: '15.5 hours',
47 lastAttemptFailed: false
48 };
49
50 this.unlockKeys = [
51 {
52 publicKey: 'CAESRQogOlH8DgPMQu7eAt-b6yoTXcazG8mAl6SPC5Ds-LTULIcSIQDZDM' +
53 'qsoYRO4tNMej1FBEl1sTiTiVDqrcGq-CkYCzDThw==',
54 friendlyDeviceName: 'LGE Nexus 4',
55 bluetoothAddress: 'C4:43:8F:12:07:07',
56 unlockKey: true,
57 unlockable: false,
58 connectionStatus: 'connected',
59 remoteState: {
60 userPresent: true,
61 secureScreenLock: true,
62 trustAgent: true
63 },
64 },
65 ];
66 },
67 });
OLDNEW
« no previous file with comments | « components/proximity_auth/webui/resources/local-state.html ('k') | components/proximity_auth/webui/resources/log-panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698