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

Unified Diff: third_party/mojo/src/mojo/public/dart/src/handle.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/handle.dart
diff --git a/third_party/mojo/src/mojo/public/dart/src/handle.dart b/third_party/mojo/src/mojo/public/dart/src/handle.dart
index a81980437d0ea4863a2da33fdabfa910a49484bd..53d0fe8bb05b5933254da0e69989727f86983205 100644
--- a/third_party/mojo/src/mojo/public/dart/src/handle.dart
+++ b/third_party/mojo/src/mojo/public/dart/src/handle.dart
@@ -7,11 +7,10 @@ part of core;
class _MojoHandleNatives {
static int register(MojoEventStream eventStream) native "MojoHandle_Register";
static int close(int handle) native "MojoHandle_Close";
- static List wait(int handle, int signals, int deadline)
- native "MojoHandle_Wait";
- static List waitMany(
- List<int> handles, List<int> signals, int deadline)
- native "MojoHandle_WaitMany";
+ static List wait(int handle, int signals, int deadline) native
+ "MojoHandle_Wait";
+ static List waitMany(List<int> handles, List<int> signals,
+ int deadline) native "MojoHandle_WaitMany";
}
@@ -50,14 +49,16 @@ class MojoHandle {
}
}
- bool get readyRead => _ready(MojoHandleSignals.READABLE);
+ bool get readyRead => _ready(MojoHandleSignals.PEER_CLOSED_READABLE);
bool get readyWrite => _ready(MojoHandleSignals.WRITABLE);
- static MojoWaitManyResult waitMany(
- List<int> handles, List<int> signals, int deadline) {
+ static MojoWaitManyResult waitMany(List<int> handles, List<int> signals,
+ int deadline) {
List result = _MojoHandleNatives.waitMany(handles, signals, deadline);
return new MojoWaitManyResult(
- new MojoResult(result[0]), result[1], result[2]);
+ new MojoResult(result[0]),
+ result[1],
+ result[2]);
}
static MojoResult register(MojoEventStream eventStream) {

Powered by Google App Engine
This is Rietveld 408576698