summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/cryptotoken/gnubbycodetypes.js
blob: d6eda06615e612c719677e87ca9c9018b7384995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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 provides the different code types for the gnubby
 * operations.
 */

/**
 * @const
 * @enum {number}
 */
var GnubbyCodeTypes = {
  /** Request succeeded. */
  'OK': 0,

  /** All plugged in devices are already enrolled. */
  'ALREADY_ENROLLED': 2,

  /** None of the plugged in devices are enrolled. */
  'NONE_PLUGGED_ENROLLED': 3,

  /** One or more devices are waiting for touch. */
  'WAIT_TOUCH': 4,

  /** Unknown error. */
  'UNKNOWN_ERROR': 7,

  /** Bad request. */
  'BAD_REQUEST': 12

};