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

Unified Diff: mojo/dart/packages/mojo/lib/src/handle.dart

Issue 1978593002: Make the dart:mojo.internal import configuration specific. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add test. Created 4 years, 7 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/packages/mojo/lib/src/buffer.dart ('k') | mojo/dart/packages/mojo/lib/src/internal.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/packages/mojo/lib/src/handle.dart
diff --git a/mojo/dart/packages/mojo/lib/src/handle.dart b/mojo/dart/packages/mojo/lib/src/handle.dart
index 3c98ff491fccbe8d7dab4567c31db693a6c7f84e..fbc664da37d4f0f89cd7978a621fbd3f8667b849 100644
--- a/mojo/dart/packages/mojo/lib/src/handle.dart
+++ b/mojo/dart/packages/mojo/lib/src/handle.dart
@@ -5,11 +5,15 @@
part of core;
class MojoHandle {
+ // TODO(floitsch): get the INVALID value from the backing internal
+ // implementation.
static const int INVALID = 0;
static const int DEADLINE_INDEFINITE = -1;
- int _h;
- int get h => _h;
+ // The type of this field is determined by the backing internal
+ // implementation.
+ Object _h;
+ Object get h => _h;
MojoHandle(this._h, {String description}) {
MojoHandleNatives.addOpenHandle(_h, description: description);
« no previous file with comments | « mojo/dart/packages/mojo/lib/src/buffer.dart ('k') | mojo/dart/packages/mojo/lib/src/internal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698