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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/webui/resources/local-state.js
diff --git a/components/proximity_auth/webui/resources/local-state.js b/components/proximity_auth/webui/resources/local-state.js
new file mode 100644
index 0000000000000000000000000000000000000000..40470585e2360bd75e007d1069e98a573088afed
--- /dev/null
+++ b/components/proximity_auth/webui/resources/local-state.js
@@ -0,0 +1,67 @@
+// 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('local-state', {
+ publish: {
+ /**
+ * The current CryptAuth enrollment status.
+ * @type {{
+ * lastSuccessTime: ?number,
+ * nextRefreshTime: string,
+ * lastAttemptFailed: boolean,
+ * }}
+ */
+ enrollmentInfo: null,
+
+ /**
+ * The current CryptAuth device sync status.
+ * @type {{
+ * lastSuccessTime: ?number,
+ * nextRefreshTime: string,
+ * lastAttemptFailed: boolean,
+ * }}
+ */
+ deviceSyncInfo: null,
+
+ /**
+ * List of unlock keys that can unlock the local device.
+ * @type {Array<DeviceInfo>}
+ */
+ unlockKeys: null,
+ },
+
+ /**
+ * Called when an instance is created.
+ */
+ created: function() {
+ this.enrollmentInfo = {
+ lastSuccessTime: null,
+ nextRefreshTime: '90 days',
+ lastAttemptFailed: true
+ };
+
+ this.deviceSyncInfo = {
+ lastSuccessTime: 'April 20 14:23',
+ nextRefreshTime: '15.5 hours',
+ lastAttemptFailed: false
+ };
+
+ this.unlockKeys = [
+ {
+ publicKey: 'CAESRQogOlH8DgPMQu7eAt-b6yoTXcazG8mAl6SPC5Ds-LTULIcSIQDZDM' +
+ 'qsoYRO4tNMej1FBEl1sTiTiVDqrcGq-CkYCzDThw==',
+ friendlyDeviceName: 'LGE Nexus 4',
+ bluetoothAddress: 'C4:43:8F:12:07:07',
+ unlockKey: true,
+ unlockable: false,
+ connectionStatus: 'connected',
+ remoteState: {
+ userPresent: true,
+ secureScreenLock: true,
+ trustAgent: true
+ },
+ },
+ ];
+ },
+});
« 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