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

Unified Diff: runtime/bin/file_patch.dart

Issue 19263003: Add FileSystemWatcher class to dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix android socket. Created 7 years, 3 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 | « runtime/bin/eventhandler_win.cc ('k') | runtime/bin/file_system_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_patch.dart
diff --git a/runtime/bin/file_patch.dart b/runtime/bin/file_patch.dart
index c9e4fccb01e9df906a65981a24a627cb2d68cdd8..e011c6fe4a6300af2071bed8cb78fc2d3b2c602b 100644
--- a/runtime/bin/file_patch.dart
+++ b/runtime/bin/file_patch.dart
@@ -42,6 +42,13 @@ patch class _RandomAccessFile {
/* patch */ static _flush(int id) native "File_Flush";
}
+patch class _FileSystemWatcher {
+ int _watchPath(String path, int events, bool recursive)
+ native "FileSystemWatcher_WatchPath";
+ void _unwatchPath() native "FileSystemWatcher_UnwatchPath";
+ List _readEvents() native "FileSystemWatcher_ReadEvents";
+}
+
Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) {
return new Uint8List.view(source.buffer, offsetInBytes, length);
}
« no previous file with comments | « runtime/bin/eventhandler_win.cc ('k') | runtime/bin/file_system_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698