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

Side by Side Diff: extensions/common/api/serial.idl

Issue 1842953002: [Extensions] Convert APIs to use movable types [13] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Use the <code>chrome.serial</code> API to read from and write to a device 5 // Use the <code>chrome.serial</code> API to read from and write to a device
6 // connected to a serial port. 6 // connected to a serial port.
7 namespace serial { 7 [use_movable_types=true] namespace serial {
8 8
9 dictionary DeviceInfo { 9 dictionary DeviceInfo {
10 // The device's system path. This should be passed as the <code>path</code> 10 // The device's system path. This should be passed as the <code>path</code>
11 // argument to <code>chrome.serial.connect</code> in order to connect to 11 // argument to <code>chrome.serial.connect</code> in order to connect to
12 // this device. 12 // this device.
13 DOMString path; 13 DOMString path;
14 14
15 // A PCI or USB vendor ID if one can be determined for the underlying 15 // A PCI or USB vendor ID if one can be determined for the underlying
16 // device. 16 // device.
17 long? vendorId; 17 long? vendorId;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // |info| : Event data. 345 // |info| : Event data.
346 static void onReceive(ReceiveInfo info); 346 static void onReceive(ReceiveInfo info);
347 347
348 // Event raised when an error occurred while the runtime was waiting for 348 // Event raised when an error occurred while the runtime was waiting for
349 // data on the serial port. Once this event is raised, the connection may be 349 // data on the serial port. Once this event is raised, the connection may be
350 // set to <code>paused</code>. A <code>"timeout"</code> error does not pause 350 // set to <code>paused</code>. A <code>"timeout"</code> error does not pause
351 // the connection. 351 // the connection.
352 static void onReceiveError(ReceiveErrorInfo info); 352 static void onReceiveError(ReceiveErrorInfo info);
353 }; 353 };
354 }; 354 };
OLDNEW
« no previous file with comments | « extensions/browser/api/system_storage/storage_info_provider.cc ('k') | extensions/common/api/socket.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698