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

Unified Diff: mojo/public/dart/src/buffer.dart

Issue 800523004: Dart: Simplifies the handle watcher. Various cleanups and bugfixes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 11 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
« no previous file with comments | « mojo/dart/test/simple_handle_watcher_test.dart ('k') | mojo/public/dart/src/client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/src/buffer.dart
diff --git a/mojo/public/dart/src/buffer.dart b/mojo/public/dart/src/buffer.dart
index 0e6bc2c78a217f74ff896dbc33df32d1641c37ed..c0071b3f28644c9c96c23dd94bc974b3bb66ff34 100644
--- a/mojo/public/dart/src/buffer.dart
+++ b/mojo/public/dart/src/buffer.dart
@@ -28,7 +28,7 @@ class MojoSharedBuffer {
static const int DUPLICATE_FLAG_NONE = 0;
static const int MAP_FLAG_NONE = 0;
- RawMojoHandle handle;
+ MojoHandle handle;
MojoResult status;
ByteData mapping;
@@ -51,7 +51,7 @@ class MojoSharedBuffer {
MojoSharedBuffer buf = new MojoSharedBuffer._();
buf.status = r;
- buf.handle = new RawMojoHandle(result[1]);
+ buf.handle = new MojoHandle(result[1]);
buf.mapping = null;
return buf;
}
@@ -69,7 +69,7 @@ class MojoSharedBuffer {
MojoSharedBuffer dupe = new MojoSharedBuffer._();
dupe.status = r;
- dupe.handle = new RawMojoHandle(result[1]);
+ dupe.handle = new MojoHandle(result[1]);
dupe.mapping = null; // The buffer is not mapped in the duplicate.
return dupe;
}
« no previous file with comments | « mojo/dart/test/simple_handle_watcher_test.dart ('k') | mojo/public/dart/src/client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698