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

Unified Diff: chrome/common/extensions/api/experimental.serial.idl

Issue 10272021: Files generated by the JSON schema compiler are named incorrectly (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor changes Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental.serial.idl
diff --git a/chrome/common/extensions/api/experimental.serial.idl b/chrome/common/extensions/api/experimental.serial.idl
deleted file mode 100644
index dab964319d09fa1b8cd5ac31c562c9a1cef6b337..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/experimental.serial.idl
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// File-level comment to appease parser. Eventually this will not be necessary.
-
-[nodoc] namespace experimental.serial {
-
- callback GetPortsCallback = void (DOMString[] ports);
-
- dictionary OpenInfo {
- // The id of the opened connection.
- long connectionId;
- };
-
- callback OpenCallback = void (OpenInfo openInfo);
-
- callback CloseCallback = void (boolean result);
-
- dictionary ReadInfo {
- // The number of bytes received, or a negative number if an error occurred.
- long bytesRead;
-
- // The data received. Warning: will probably become a blob or other
- // appropriate binary-friendly type.
- // TODO(miket): [instanceOf=ArrayBuffer]object data;
- long[] data;
- };
-
- callback ReadCallback = void (ReadInfo readInfo);
-
- dictionary WriteInfo {
- // The number of bytes written.
- long bytesWritten;
- };
-
- callback WriteCallback = void (WriteInfo writeInfo);
-
- interface Functions {
- // Returns names of valid ports on this machine, each of which is likely to
- // be valid to pass as the port argument to open(). The list is regenerated
- // each time this method is called, as port validity is dynamic.
- //
- // |callback| : Called with the list of ports.
- static void getPorts(GetPortsCallback callback);
-
- // Opens a connection to the given serial port.
- // |port| : The name of the serial port to open.
- // |callback| : Called when the connection has been opened.
- static void open(DOMString port,
- OpenCallback callback);
-
- // Closes an open connection.
- // |connectionId| : The id of the opened connection.
- // |callback| : Called when the connection has been closed.
- static void close(long connectionId,
- CloseCallback callback);
-
- // Reads a byte from the given connection.
- // |connectionId| : The id of the connection.
- // |callback| : Called when the byte has been read or the read blocked.
- static void read(long connectionId,
- ReadCallback callback);
-
- // Writes a string to the given connection.
- // |connectionId| : The id of the connection.
- // |data| : The string to write.
- // |callback| : Called when the string has been written.
- //
- // TODO(miket): [instanceOf=ArrayBuffer]object data;
- static void write(long connectionId,
- long[] data,
- WriteCallback callback);
- };
-
-};
« no previous file with comments | « chrome/common/extensions/api/experimental.runtime.json ('k') | chrome/common/extensions/api/experimental.socket.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698