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

Side by Side Diff: runtime/bin/file_impl.dart

Issue 8351094: Fix type mismatch in File.fullPathSync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class _FileInputStream implements FileInputStream { 5 class _FileInputStream implements FileInputStream {
6 _FileInputStream(File file) { 6 _FileInputStream(File file) {
7 _file = new File(file.name); 7 _file = new File(file.name);
8 _file.openSync(); 8 _file.openSync();
9 } 9 }
10 10
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 static int _readList(int id, List<int> buffer, int offset, int bytes) 406 static int _readList(int id, List<int> buffer, int offset, int bytes)
407 native "File_ReadList"; 407 native "File_ReadList";
408 static int _writeByte(int id, int value) native "File_WriteByte"; 408 static int _writeByte(int id, int value) native "File_WriteByte";
409 static int _writeList(int id, List<int> buffer, int offset, int bytes) 409 static int _writeList(int id, List<int> buffer, int offset, int bytes)
410 native "File_WriteList"; 410 native "File_WriteList";
411 static int _writeString(int id, String string) native "File_WriteString"; 411 static int _writeString(int id, String string) native "File_WriteString";
412 static int _position(int id) native "File_Position"; 412 static int _position(int id) native "File_Position";
413 static int _length(int id) native "File_Length"; 413 static int _length(int id) native "File_Length";
414 static int _flush(int id) native "File_Flush"; 414 static int _flush(int id) native "File_Flush";
415 static bool _create(String name) native "File_Create"; 415 static bool _create(String name) native "File_Create";
416 static int _fullPath(String name) native "File_FullPath"; 416 static String _fullPath(String name) native "File_FullPath";
417 417
418 static int _checkReadWriteListArguments(int length, int offset, int bytes) { 418 static int _checkReadWriteListArguments(int length, int offset, int bytes) {
419 if (offset < 0) return offset; 419 if (offset < 0) return offset;
420 if (bytes < 0) return bytes; 420 if (bytes < 0) return bytes;
421 if ((offset + bytes) > length) return offset + bytes; 421 if ((offset + bytes) > length) return offset + bytes;
422 return 0; 422 return 0;
423 } 423 }
424 424
425 void exists() { 425 void exists() {
426 _asyncUsed = true; 426 _asyncUsed = true;
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 var _closeHandler; 850 var _closeHandler;
851 var _readByteHandler; 851 var _readByteHandler;
852 var _readListHandler; 852 var _readListHandler;
853 var _noPendingWriteHandler; 853 var _noPendingWriteHandler;
854 var _positionHandler; 854 var _positionHandler;
855 var _lengthHandler; 855 var _lengthHandler;
856 var _flushHandler; 856 var _flushHandler;
857 var _fullPathHandler; 857 var _fullPathHandler;
858 var _errorHandler; 858 var _errorHandler;
859 } 859 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698