Index: chrome/browser/resources/cryptotoken/devicestatuscodes.js |
diff --git a/chrome/browser/resources/cryptotoken/devicestatuscodes.js b/chrome/browser/resources/cryptotoken/devicestatuscodes.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a8123636780a9b440a34104fb79dd0bbcfaa59c |
--- /dev/null |
+++ b/chrome/browser/resources/cryptotoken/devicestatuscodes.js |
@@ -0,0 +1,51 @@ |
+// Copyright (c) 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; |