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

Side by Side Diff: mojo/services/files/public/interfaces/file.mojom

Issue 1071693003: Uses mojom module names as Dart's package: import URI (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // TODO(vtl): notes to self: 5 // TODO(vtl): notes to self:
6 // - file offsets, file positions, and file sizes are int64 (though positions 6 // - file offsets, file positions, and file sizes are int64 (though positions
7 // and sizes must always be non-negative) 7 // and sizes must always be non-negative)
8 // - buffer size parameters (for read/write) are uint32 8 // - buffer size parameters (for read/write) are uint32
9 9
10 [DartUriBase="mojo/services/files/public/interfaces"]
10 module mojo.files; 11 module mojo.files;
11 12
12 import "files/public/interfaces/types.mojom"; 13 import "files/public/interfaces/types.mojom";
13 14
14 // TODO(vtl): Write comments. 15 // TODO(vtl): Write comments.
15 interface File { 16 interface File {
16 // Flushes/closes this file; no operations may be performed on this file after 17 // Flushes/closes this file; no operations may be performed on this file after
17 // this. Note that any error code is strictly informational -- the close may 18 // this. Note that any error code is strictly informational -- the close may
18 // not be retried. 19 // not be retried.
19 Close() => (Error err); 20 Close() => (Error err);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // Special-file-specific control function, for device "files". |in| and |out| 84 // Special-file-specific control function, for device "files". |in| and |out|
84 // are dependent on |request|. 85 // are dependent on |request|.
85 // TODO(vtl): Make a master list of request values somewhere. 86 // TODO(vtl): Make a master list of request values somewhere.
86 Ioctl(uint32 request, array<uint32>? in_values) 87 Ioctl(uint32 request, array<uint32>? in_values)
87 => (Error error, array<uint32>? out_values); 88 => (Error error, array<uint32>? out_values);
88 89
89 // TODO(vtl): Add a "watch"? 90 // TODO(vtl): Add a "watch"?
90 // TODO(vtl): Add something analogous to fsync(2)? 91 // TODO(vtl): Add something analogous to fsync(2)?
91 }; 92 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698