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

Unified Diff: runtime/bin/directory.dart

Issue 8386029: Consistently use setters to set event handlers in native APIs. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/directory_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.dart
diff --git a/runtime/bin/directory.dart b/runtime/bin/directory.dart
index 005dd924b2097152d14d41cfc7378b93fe2da0ce..d51033f48563c175ec76a8f4d60858ac206d8ae1 100644
--- a/runtime/bin/directory.dart
+++ b/runtime/bin/directory.dart
@@ -13,19 +13,19 @@ interface Directory factory _Directory {
/**
* Returns whether a directory with this name already exists.
*/
- bool exists();
+ bool existsSync();
/**
* Creates the directory with this name if it does not exist.
* Throw an exception if the directory already exists.
*/
- void create();
+ void createSync();
/**
* Deletes the directory with this name. Throws an exception
* if the directory is not empty or if deletion failed.
*/
- void delete();
+ void deleteSync();
/**
* List the sub-directories and files of this
@@ -42,27 +42,27 @@ interface Directory factory _Directory {
* during listing operations. The directory handler is called with
* the full path of the directory.
*/
- void setDirHandler(void dirHandler(String dir));
+ void set dirHandler(void dirHandler(String dir));
/**
* Sets the file handler that is called for all files during listing
* operations. The file handler is called with the full path of the
* file.
*/
- void setFileHandler(void fileHandler(String file));
+ void set fileHandler(void fileHandler(String file));
/**
* Set the done handler that is called when a directory listing is
* done. The handler is called with an indication of whether or not
* the listing operation completed.
*/
- void setDoneHandler(void doneHandler(bool completed));
+ void set doneHandler(void doneHandler(bool completed));
/**
* Sets the error handler that is called on error listing
* directories.
*/
- void setErrorHandler(void errorHandler(String error));
+ void set errorHandler(void errorHandler(String error));
/**
* Gets the path of this directory.
« no previous file with comments | « no previous file | runtime/bin/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698