Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / devicestatuscodes.js
bloba7bb72c1756c44bf60da453a06a0d3d0646a4b80
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.
5 /**
6 * @fileoverview This file defines the status codes returned by the device.
7 */
9 /**
10 * Status codes returned by the gnubby device.
11 * @const
12 * @enum {number}
13 * @export
15 var DeviceStatusCodes = {};
17 /**
18 * Device operation succeeded.
19 * @const
21 DeviceStatusCodes.OK_STATUS = 0;
23 /**
24 * Device operation wrong length status.
25 * @const
27 DeviceStatusCodes.WRONG_LENGTH_STATUS = 0x6700;
29 /**
30 * Device operation wait touch status.
31 * @const
33 DeviceStatusCodes.WAIT_TOUCH_STATUS = 0x6985;
35 /**
36 * Device operation invalid data status.
37 * @const
39 DeviceStatusCodes.INVALID_DATA_STATUS = 0x6984;
41 /**
42 * Device operation wrong data status.
43 * @const
45 DeviceStatusCodes.WRONG_DATA_STATUS = 0x6a80;
47 /**
48 * Device operation timeout status.
49 * @const
51 DeviceStatusCodes.TIMEOUT_STATUS = -5;
53 /**
54 * Device operation busy status.
55 * @const
57 DeviceStatusCodes.BUSY_STATUS = -6;
59 /**
60 * Device removed status.
61 * @const
63 DeviceStatusCodes.GONE_STATUS = -8;