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

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

Issue 1405103002: Dart: Merge message pipe query and read into one native call. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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: 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 236069efdcbf3c431f211cf9714c88aab69983a3..23c80e3e2882539f252156c93fcbf4b601eb4beb 100644
--- a/mojo/public/dart/mojo/sdk_ext/src/natives.dart
+++ b/mojo/public/dart/mojo/sdk_ext/src/natives.dart
@@ -43,6 +43,9 @@ 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)
+ native "MojoMessagePipe_QueryAndRead";
}
class MojoDataPipeNatives {
« no previous file with comments | « mojo/public/dart/mojo/lib/src/stub.dart ('k') | mojo/public/tools/bindings/generators/dart_templates/struct_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698