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

Unified Diff: mojo/public/dart/mojo/sdk_ext/src/natives.dart

Issue 1415253008: Dart: Merge message pipe query and read into one native call (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add cast Created 5 years, 1 month 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: mojo/public/dart/mojo/sdk_ext/src/natives.dart
diff --git a/mojo/public/dart/mojo/sdk_ext/src/natives.dart b/mojo/public/dart/mojo/sdk_ext/src/natives.dart
index a9ec169ab442a9319f3f5bc02182256c3f98dad5..5b2dabe36362d59aef0ab936f51c8a892ab0bdae 100644
--- a/mojo/public/dart/mojo/sdk_ext/src/natives.dart
+++ b/mojo/public/dart/mojo/sdk_ext/src/natives.dart
@@ -69,6 +69,10 @@ class MojoMessagePipeNatives {
static List MojoReadMessage(
int handle, ByteData data, int numBytes, List<int> handles, int flags)
native "MojoMessagePipe_Read";
+
+ static List MojoQueryAndReadMessage(
+ int handle, int flags, ByteData data, Uint32List handles, List result)
+ native "MojoMessagePipe_QueryAndRead";
}
class MojoDataPipeNatives {

Powered by Google App Engine
This is Rietveld 408576698