Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 module mojom; | |
| 6 | |
| 7 struct TestDeviceInfo { | |
| 8 string guid; | |
| 9 string name; | |
| 10 string serial_number; | |
| 11 string landing_page; | |
| 12 string allowed_origin; | |
| 13 }; | |
| 14 | |
| 15 interface UsbInternalsPageHandler { | |
| 16 // Simulate the connection of a new device with the given properties. | |
| 17 AddDeviceForTesting(string name, | |
| 18 string serial_number, | |
| 19 string landing_page, | |
| 20 string allowed_origin) => (bool success, string message); | |
|
dpapad
2016/08/04 20:55:34
Ideally we would want the Promise that JS holds to
Reilly Grant (use Gerrit)
2016/08/05 01:30:55
There is not, because it doesn't translate well to
| |
| 21 | |
| 22 // Simulate the disconnection of a device added with the function above. | |
| 23 RemoveDeviceForTesting(string guid) => (); | |
|
dpapad
2016/08/04 20:55:34
It is not clear where the guid is found. Based on
Reilly Grant (use Gerrit)
2016/08/05 01:30:55
It simplifies the JS code if it doesn't have to ha
| |
| 24 | |
| 25 // Retrieves the list of test devices added with this API. | |
| 26 GetTestDevices() => (array<TestDeviceInfo> devices); | |
| 27 }; | |
| OLD | NEW |