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

Unified Diff: samples/chat/dart_client/chat.dart

Issue 10823352: Rename XMLHttpRequest to HttpRequest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: samples/chat/dart_client/chat.dart
===================================================================
--- samples/chat/dart_client/chat.dart (revision 10850)
+++ samples/chat/dart_client/chat.dart (working copy)
@@ -158,8 +158,8 @@
uiJoin();
}
- XMLHttpRequest sendRequest(String url, Map json, var onSuccess, var onError) {
- XMLHttpRequest request = new XMLHttpRequest();
+ HttpRequest sendRequest(String url, Map json, var onSuccess, var onError) {
+ HttpRequest request = new HttpRequest();
request.on.readyStateChange.add((Event event) {
if (request.readyState != 4) return;
if (request.status == 200) {
@@ -310,6 +310,6 @@
String _session = null;
int _nextMessage = 0;
- XMLHttpRequest _pollRequest = null;
+ HttpRequest _pollRequest = null;
}

Powered by Google App Engine
This is Rietveld 408576698