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

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

Issue 8502011: Rephrase some comments. (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 | runtime/bin/input_stream.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) 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 interface Directory factory _Directory { 5 interface Directory factory _Directory {
6 /** 6 /**
7 * Creates a directory object. The path is either a full path or 7 * Creates a directory object. The path is either a full path or
8 * relative to the directory in which the Dart VM was 8 * relative to the directory in which the Dart VM was
9 * started. 9 * started.
10 */ 10 */
(...skipping 27 matching lines...) Expand all
38 void list([bool recursive]); 38 void list([bool recursive]);
39 39
40 /** 40 /**
41 * Sets the directory handler that is called for all directories 41 * Sets the directory handler that is called for all directories
42 * during listing operations. The directory handler is called with 42 * during listing operations. The directory handler is called with
43 * the full path of the directory. 43 * the full path of the directory.
44 */ 44 */
45 void set dirHandler(void dirHandler(String dir)); 45 void set dirHandler(void dirHandler(String dir));
46 46
47 /** 47 /**
48 * Sets the file handler that is called for all files during listing 48 * Sets the handler that is called for all files during listing
49 * operations. The file handler is called with the full path of the 49 * operations. The file handler is called with the full path of the
50 * file. 50 * file.
51 */ 51 */
52 void set fileHandler(void fileHandler(String file)); 52 void set fileHandler(void fileHandler(String file));
53 53
54 /** 54 /**
55 * Set the done handler that is called when a directory listing is 55 * Set the handler that is called when a directory listing is
56 * done. The handler is called with an indication of whether or not 56 * done. The handler is called with an indication of whether or not
57 * the listing operation completed. 57 * the listing operation completed.
58 */ 58 */
Bill Hesse 2011/11/08 09:35:39 Maybe we can leave the argument as a bool, if we a
59 void set doneHandler(void doneHandler(bool completed)); 59 void set doneHandler(void doneHandler(bool completed));
60 60
61 /** 61 /**
62 * Sets the error handler that is called on error listing 62 * Sets the handler that is called on error listing directories.
63 * directories.
64 */ 63 */
65 void set errorHandler(void errorHandler(String error)); 64 void set errorHandler(void errorHandler(String error));
66 65
67 /** 66 /**
68 * Gets the path of this directory. 67 * Gets the path of this directory.
69 */ 68 */
70 final String path; 69 final String path;
71 } 70 }
72 71
73 72
74 class DirectoryException { 73 class DirectoryException {
75 const DirectoryException(String this.message); 74 const DirectoryException(String this.message);
76 String toString() => "DirectoryException: $message"; 75 String toString() => "DirectoryException: $message";
77 final String message; 76 final String message;
78 } 77 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/input_stream.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698