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

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

Issue 2698813002: [dart:io][windows] Make unicode characters display correctly. (Closed)
Patch Set: Address comments Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_unsupported.cc » ('j') | 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) 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 _File { 5 @patch class _File {
6 @patch static _exists(String path) native "File_Exists"; 6 @patch static _exists(String path) native "File_Exists";
7 @patch static _create(String path) native "File_Create"; 7 @patch static _create(String path) native "File_Create";
8 @patch static _createLink(String path, String target) 8 @patch static _createLink(String path, String target)
9 native "File_CreateLink"; 9 native "File_CreateLink";
10 @patch static _linkTarget(String path) native "File_LinkTarget"; 10 @patch static _linkTarget(String path) native "File_LinkTarget";
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 read(int bytes) native "File_Read"; 48 read(int bytes) native "File_Read";
49 readInto(List<int> buffer, int start, int end) native "File_ReadInto"; 49 readInto(List<int> buffer, int start, int end) native "File_ReadInto";
50 writeByte(int value) native "File_WriteByte"; 50 writeByte(int value) native "File_WriteByte";
51 writeFrom(List<int> buffer, int start, int end) native "File_WriteFrom"; 51 writeFrom(List<int> buffer, int start, int end) native "File_WriteFrom";
52 position() native "File_Position"; 52 position() native "File_Position";
53 setPosition(int position) native "File_SetPosition"; 53 setPosition(int position) native "File_SetPosition";
54 truncate(int length) native "File_Truncate"; 54 truncate(int length) native "File_Truncate";
55 length() native "File_Length"; 55 length() native "File_Length";
56 flush() native "File_Flush"; 56 flush() native "File_Flush";
57 lock(int lock, int start, int end) native "File_Lock"; 57 lock(int lock, int start, int end) native "File_Lock";
58 setTranslation(int translation) native "File_SetTranslation";
58 } 59 }
59 60
60 61
61 class _WatcherPath { 62 class _WatcherPath {
62 final int pathId; 63 final int pathId;
63 final String path; 64 final String path;
64 final int events; 65 final int events;
65 int count = 0; 66 int count = 0;
66 _WatcherPath(this.pathId, this.path, this.events); 67 _WatcherPath(this.pathId, this.path, this.events);
67 } 68 }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 void _pathWatchedEnd() { 381 void _pathWatchedEnd() {
381 _subscription.cancel(); 382 _subscription.cancel();
382 _controller.close(); 383 _controller.close();
383 } 384 }
384 } 385 }
385 386
386 387
387 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) { 388 Uint8List _makeUint8ListView(Uint8List source, int offsetInBytes, int length) {
388 return new Uint8List.view(source.buffer, offsetInBytes, length); 389 return new Uint8List.view(source.buffer, offsetInBytes, length);
389 } 390 }
OLDNEW
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_unsupported.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698