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

Unified Diff: samples/isolate_html/isolate_sample.dart

Issue 11418075: Dartifying members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing menuelement.compact exclusion. Created 8 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 | « samples/dartcombat/views.dart ('k') | samples/playground/playground.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/isolate_html/isolate_sample.dart
diff --git a/samples/isolate_html/isolate_sample.dart b/samples/isolate_html/isolate_sample.dart
index 7285272c0e7be11c1fe5b1d2e86187d5c54f1cf8..2d04d1b1f3f8eb1fa4d52bc242c89bdb615fa416 100644
--- a/samples/isolate_html/isolate_sample.dart
+++ b/samples/isolate_html/isolate_sample.dart
@@ -31,7 +31,7 @@ class MessageId {
SendPort createIsolate(String name) {
var sendPort = spawnDomFunction(isolateMain);
var message = {
- 'id' : MessageId.INIT,
+ 'id' : MessageId.INIT,
'args' : [name, port.toSendPort()]
};
sendPort.send(message, null);
@@ -45,7 +45,7 @@ bool isVm() => 1234567890123456789 % 2 > 0;
/**
* This function will run in a separate isolate, which shares almost
* no state with the main isolate. They will both run in the main
- * UI thread, though, so that they can share DOM state.
+ * UI thread, though, so that they can share DOM state.
*/
void isolateMain() {
Element div;
@@ -57,9 +57,9 @@ void isolateMain() {
chirpPort = chirpPort_;
div = new DivElement()
..classes = ['isolate', 'isolate${isolateName}']
- ..innerHTML = query('#isolateTemplate').innerHTML
+ ..innerHtml = query('#isolateTemplate').innerHtml
..query('.isolateName').text = isolateName
- ..query('.chirpButton').on.click.add((event) {
+ ..query('.chirpButton').on.click.add((event) {
chirpPort.send(
'this is a chirp message from isolate $isolateName', null);
});
@@ -71,7 +71,7 @@ void isolateMain() {
* the user has unchecked the reply checkbox).
*/
void greeting(String message, SendPort replyTo) {
- div.query('.messageBox').innerHTML =
+ div.query('.messageBox').innerHtml =
'received message: <span class="messageText">"${message}"</span>';
if (div.query('input.replyCheckbox').checked) {
InputElement element = div.query('.delayTextbox');
@@ -113,8 +113,8 @@ main() {
element.on.click.add((Event e) {
replyElement.text = 'waiting for reply...';
- var isolateName =
- (e.currentTarget as Element).attributes['data-isolate-name'];
+ var isolateName =
+ (e.currentTarget as Element).attributes['data-isolate-name'];
var greeting = query('input#greetingText').value;
var message = {'id': MessageId.GREETING, 'args': [greeting]};
ports[isolateName].call(message).then((var msg) {
« no previous file with comments | « samples/dartcombat/views.dart ('k') | samples/playground/playground.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698