OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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. |
| 4 |
| 5 /** |
| 6 * @fileoverview Contains a factory interface for creating and opening gnubbies. |
| 7 * @author juanlang@google.com (Juan Lang) |
| 8 */ |
| 9 'use strict'; |
| 10 |
| 11 /** |
| 12 * A factory for creating and opening gnubbies. |
| 13 * @interface |
| 14 */ |
| 15 function GnubbyFactory() {} |
| 16 |
| 17 /** |
| 18 * Enumerates gnubbies. |
| 19 * @param {function(number, Array.<llGnubbyDeviceId>)} cb |
| 20 */ |
| 21 GnubbyFactory.prototype.enumerate = function(cb) { |
| 22 }; |
| 23 |
| 24 /** |
| 25 * Creates a new gnubby object, and opens the gnubby with the given index. |
| 26 * @param {llGnubbyDeviceId} which The device to open. |
| 27 * @param {boolean} forEnroll Whether this gnubby is being opened for enrolling. |
| 28 * @param {function(number, usbGnubby=)} cb Called with result of opening the |
| 29 * gnubby. |
| 30 * @param {string=} logMsgUrl the url to post log messages to |
| 31 */ |
| 32 GnubbyFactory.prototype.openGnubby = function(which, forEnroll, cb, logMsgUrl) { |
| 33 }; |
OLD | NEW |