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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (Closed)
Patch Set: Created 3 years, 9 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/common_patch.dart ('k') | runtime/bin/eventhandler_patch.dart » ('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 _Directory { 5 @patch
6 @patch static _current() native "Directory_Current"; 6 class _Directory {
7 @patch static _setCurrent(path) native "Directory_SetCurrent"; 7 @patch
8 @patch static _createTemp(String path) native "Directory_CreateTemp"; 8 static _current() native "Directory_Current";
9 @patch static String _systemTemp() native "Directory_SystemTemp"; 9 @patch
10 @patch static _exists(String path) native "Directory_Exists"; 10 static _setCurrent(path) native "Directory_SetCurrent";
11 @patch static _create(String path) native "Directory_Create"; 11 @patch
12 @patch static _deleteNative(String path, bool recursive) 12 static _createTemp(String path) native "Directory_CreateTemp";
13 native "Directory_Delete"; 13 @patch
14 @patch static _rename(String path, String newPath) 14 static String _systemTemp() native "Directory_SystemTemp";
15 native "Directory_Rename"; 15 @patch
16 @patch static void _fillWithDirectoryListing( 16 static _exists(String path) native "Directory_Exists";
17 List<FileSystemEntity> list, String path, bool recursive, 17 @patch
18 bool followLinks) 18 static _create(String path) native "Directory_Create";
19 native "Directory_FillWithDirectoryListing"; 19 @patch
20 static _deleteNative(String path, bool recursive) native "Directory_Delete";
21 @patch
22 static _rename(String path, String newPath) native "Directory_Rename";
23 @patch
24 static void _fillWithDirectoryListing(
25 List<FileSystemEntity> list,
26 String path,
27 bool recursive,
28 bool followLinks) native "Directory_FillWithDirectoryListing";
20 } 29 }
21 30
22 @patch class _AsyncDirectoryListerOps { 31 @patch
23 @patch factory _AsyncDirectoryListerOps(int pointer) => 32 class _AsyncDirectoryListerOps {
33 @patch
34 factory _AsyncDirectoryListerOps(int pointer) =>
24 new _AsyncDirectoryListerOpsImpl(pointer); 35 new _AsyncDirectoryListerOpsImpl(pointer);
25 } 36 }
26 37
27 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 38 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
28 implements _AsyncDirectoryListerOps { 39 implements _AsyncDirectoryListerOps {
29 _AsyncDirectoryListerOpsImpl._(); 40 _AsyncDirectoryListerOpsImpl._();
30 41
31 factory _AsyncDirectoryListerOpsImpl(int pointer) 42 factory _AsyncDirectoryListerOpsImpl(int pointer) =>
32 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); 43 new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer);
33 44
34 void _setPointer(int pointer) 45 void _setPointer(int pointer)
35 native "Directory_SetAsyncDirectoryListerPointer"; 46 native "Directory_SetAsyncDirectoryListerPointer";
36 int getPointer() 47 int getPointer() native "Directory_GetAsyncDirectoryListerPointer";
37 native "Directory_GetAsyncDirectoryListerPointer";
38 } 48 }
OLDNEW
« no previous file with comments | « runtime/bin/common_patch.dart ('k') | runtime/bin/eventhandler_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698