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

Unified Diff: runtime/bin/socket.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 | « runtime/bin/process_impl.dart ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.dart
diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
index 5d882b4421d240e059809b0318f8356cdc51c59c..b807c9691455657fadf5fe0180bbda9ada9e3ddd 100644
--- a/runtime/bin/socket.dart
+++ b/runtime/bin/socket.dart
@@ -18,12 +18,12 @@ interface ServerSocket factory _ServerSocket {
* The connection handler gets executed when there are incoming connections
* on the socket.
*/
- void setConnectionHandler(void callback());
+ void set connectionHandler(void callback());
/*
* The error handler gets executed when a socket error occurs.
*/
- void setErrorHandler(void callback());
+ void set errorHandler(void callback());
/*
* Returns the port used by this socket.
@@ -71,28 +71,28 @@ interface Socket factory _Socket {
* The connect handler gets executed when connection to a given host
* succeeded.
*/
- void setConnectHandler(void callback());
+ void set connectHandler(void callback());
/*
* The data handler gets executed when data becomes available at the socket.
*/
- void setDataHandler(void callback());
+ void set dataHandler(void callback());
/*
* The write handler gets executed when the socket becomes available for
* writing.
*/
- void setWriteHandler(void callback());
+ void set writeHandler(void callback());
/*
* The error handler gets executed when a socket error occurs.
*/
- void setErrorHandler(void callback());
+ void set errorHandler(void callback());
/*
* The close handler gets executed when the socket was closed.
*/
- void setCloseHandler(void callback());
+ void set closeHandler(void callback());
/*
* Returns input stream to the socket.
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698