Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(826)

Side by Side Diff: chrome/browser/ui/webui/usb_internals/usb_internals.mojom

Issue 2204713006: Add chrome://usb-internals page for adding and removing test devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698