summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js')
-rw-r--r--chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js b/chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js
new file mode 100644
index 00000000000..2bc2a1e93af
--- /dev/null
+++ b/chromium/chrome/browser/resources/cryptotoken/devicestatuscodes.js
@@ -0,0 +1,51 @@
+// Copyright 2014 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.
+
+/**
+ * @fileoverview This file defines the status codes returned by the device.
+ */
+
+var DeviceStatusCodes = {};
+
+/**
+ * Device operation succeeded.
+ * @const
+ */
+DeviceStatusCodes.OK_STATUS = 0;
+
+/**
+ * Device operation wait touch status.
+ * @const
+ */
+DeviceStatusCodes.WAIT_TOUCH_STATUS = 0x6985;
+
+/**
+ * Device operation invalid data status.
+ * @const
+ */
+DeviceStatusCodes.INVALID_DATA_STATUS = 0x6984;
+
+/**
+ * Device operation wrong data status.
+ * @const
+ */
+DeviceStatusCodes.WRONG_DATA_STATUS = 0x6a80;
+
+/**
+ * Device operation timeout status.
+ * @const
+ */
+DeviceStatusCodes.TIMEOUT_STATUS = -5;
+
+/**
+ * Device operation busy status.
+ * @const
+ */
+DeviceStatusCodes.BUSY_STATUS = -6;
+
+/**
+ * Device removed status.
+ * @const
+ */
+DeviceStatusCodes.GONE_STATUS = -8;