| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 patch class _FileUtils { | 5 patch class _FileUtils { | 
| 6   /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; | 6   /* patch */ static SendPort _newServicePort() native "File_NewServicePort"; | 
| 7 } | 7 } | 
| 8 | 8 | 
| 9 patch class _File { | 9 patch class _File { | 
| 10   /* patch */ static _exists(String path) native "File_Exists"; | 10   /* patch */ static _exists(String path) native "File_Exists"; | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 35   /* patch */ static _writeFrom(int id, List<int> buffer, int start, int end) | 35   /* patch */ static _writeFrom(int id, List<int> buffer, int start, int end) | 
| 36       native "File_WriteFrom"; | 36       native "File_WriteFrom"; | 
| 37   /* patch */ static _position(int id) native "File_Position"; | 37   /* patch */ static _position(int id) native "File_Position"; | 
| 38   /* patch */ static _setPosition(int id, int position) | 38   /* patch */ static _setPosition(int id, int position) | 
| 39       native "File_SetPosition"; | 39       native "File_SetPosition"; | 
| 40   /* patch */ static _truncate(int id, int length) native "File_Truncate"; | 40   /* patch */ static _truncate(int id, int length) native "File_Truncate"; | 
| 41   /* patch */ static _length(int id) native "File_Length"; | 41   /* patch */ static _length(int id) native "File_Length"; | 
| 42   /* patch */ static _flush(int id) native "File_Flush"; | 42   /* patch */ static _flush(int id) native "File_Flush"; | 
| 43 } | 43 } | 
| 44 | 44 | 
|  | 45 patch class _FileSystemWatcher { | 
|  | 46   int _watchPath(String path, int events, bool recursive) | 
|  | 47       native "FileSystemWatcher_WatchPath"; | 
|  | 48   void _unwatchPath() native "FileSystemWatcher_UnwatchPath"; | 
|  | 49   List _readEvents() native "FileSystemWatcher_ReadEvents"; | 
|  | 50 } | 
|  | 51 | 
| 45 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { | 52 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { | 
| 46   return new Uint8List.view(source.buffer, offsetInBytes, length); | 53   return new Uint8List.view(source.buffer, offsetInBytes, length); | 
| 47 } | 54 } | 
| OLD | NEW | 
|---|