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

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: Use typemaped types in the TestDeviceInfo struct. 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 import "url/mojo/origin.mojom";
8 import "url/mojo/url.mojom";
9
10 struct TestDeviceInfo {
11 string guid;
12 string name;
13 string serial_number;
14 url.mojom.Url landing_page;
15 url.mojom.Origin allowed_origin;
16 };
17
18 interface UsbInternalsPageHandler {
19 // Simulate the connection of a new device with the given properties.
20 AddDeviceForTesting(string name,
21 string serial_number,
22 string landing_page,
23 string allowed_origin) => (bool success, string message);
24
25 // Simulate the disconnection of a device added with the function above.
26 RemoveDeviceForTesting(string guid) => ();
27
28 // Retrieves the list of test devices added with this API.
29 GetTestDevices() => (array<TestDeviceInfo> devices);
30 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/usb_internals/OWNERS ('k') | chrome/browser/ui/webui/usb_internals/usb_internals_page_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698