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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/data_pipe.dart

Issue 975973002: Update mojo sdk to rev f68e697e389943cd9bf9652397312280e96b127a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shake fist at msvc Created 5 years, 10 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: third_party/mojo/src/mojo/public/dart/src/data_pipe.dart
diff --git a/third_party/mojo/src/mojo/public/dart/src/data_pipe.dart b/third_party/mojo/src/mojo/public/dart/src/data_pipe.dart
index 7f3b3ebcb8d7184d30dee3b878ffd7068ade9f32..9739be58b21cb787a12afe69cd1dfc14a7241532 100644
--- a/third_party/mojo/src/mojo/public/dart/src/data_pipe.dart
+++ b/third_party/mojo/src/mojo/public/dart/src/data_pipe.dart
@@ -93,7 +93,7 @@ class MojoDataPipeProducer {
class MojoDataPipeConsumer {
static const int FLAG_NONE = 0;
static const int FLAG_ALL_OR_NONE = 1 << 0;
- static const int FLAG_MAY_DISCARD = 1 << 1;
+ static const int FLAG_DISCARD = 1 << 1;
static const int FLAG_QUERY = 1 << 2;
static const int FLAG_PEEK = 1 << 3;
@@ -107,7 +107,7 @@ class MojoDataPipeConsumer {
int read(ByteData data, [int numBytes = -1, int flags = 0]) {
if (handle == null) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return 0;
}
int data_numBytes = (numBytes == -1) ? data.lengthInBytes : numBytes;
@@ -115,7 +115,7 @@ class MojoDataPipeConsumer {
handle.h, data, data_numBytes, flags);
if (result == null) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return 0;
}
assert((result is List) && (result.length == 2));
status = new MojoResult(result[0]);
@@ -156,7 +156,6 @@ class MojoDataPipeConsumer {
class MojoDataPipe {
static const int FLAG_NONE = 0;
- static const int FLAG_MAY_DISCARD = 1 << 0;
static const int DEFAULT_ELEMENT_SIZE = 1;
static const int DEFAULT_CAPACITY = 0;
« no previous file with comments | « third_party/mojo/src/mojo/public/dart/src/codec.dart ('k') | third_party/mojo/src/mojo/public/dart/src/event_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698