15c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Copyright 2014 The Chromium Authors. All rights reserved. 25c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// Use of this source code is governed by a BSD-style license that can be 35c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu// found in the LICENSE file. 45c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 55c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu/** 65c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu * @fileoverview This provides the different code types for the gnubby 75c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu * operations. 85c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu */ 95c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 105c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu/** 115c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu * @const 126e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) * @enum {number} 135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu */ 146e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)var GnubbyCodeTypes = { 156e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** Request succeeded. */ 166e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'OK': 0, 175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 186e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** All plugged in devices are already enrolled. */ 196e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'ALREADY_ENROLLED': 2, 205c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 216e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** None of the plugged in devices are enrolled. */ 226e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'NONE_PLUGGED_ENROLLED': 3, 235c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 246e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** One or more devices are waiting for touch. */ 256e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'WAIT_TOUCH': 4, 265c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 276e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** Unknown error. */ 286e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'UNKNOWN_ERROR': 7, 295c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu 306e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) /** Bad request. */ 316e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles) 'BAD_REQUEST': 12 326e8cce623b6e4fe0c9e4af605d675dd9d0338c38Torne (Richard Coles)}; 33