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

Side by Side Diff: samples/solar3d/web/solar.dart

Issue 11865005: Remove Futures class, move methods to Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/dartcombat/state.dart ('k') | samples/solar3d/web/texture_manager.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * A solar system visualization. 6 * A solar system visualization.
7 */ 7 */
8 8
9 library solar3d; 9 library solar3d;
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 futures.add(textureManager.load('uranus_diffuse.jpg')); 96 futures.add(textureManager.load('uranus_diffuse.jpg'));
97 futures.add(textureManager.load('neptune_diffuse.jpg')); 97 futures.add(textureManager.load('neptune_diffuse.jpg'));
98 futures.add(textureManager.loadCube('Sky', [ 98 futures.add(textureManager.loadCube('Sky', [
99 'positiveX.jpg', 99 'positiveX.jpg',
100 'negativeX.jpg', 100 'negativeX.jpg',
101 'positiveY.jpg', 101 'positiveY.jpg',
102 'negativeY.jpg', 102 'negativeY.jpg',
103 'positiveZ.jpg', 103 'positiveZ.jpg',
104 'negativeZ.jpg', 104 'negativeZ.jpg',
105 ])); 105 ]));
106 return Futures.wait(futures); 106 return Future.wait(futures);
107 } 107 }
108 108
109 bool get _fullScreened => canvas == document.webkitFullscreenElement; 109 bool get _fullScreened => canvas == document.webkitFullscreenElement;
110 110
111 void clicked(Event event) { 111 void clicked(Event event) {
112 canvas.webkitRequestPointerLock(); 112 canvas.webkitRequestPointerLock();
113 } 113 }
114 114
115 /* Returns true if the pointer is owned by our canvas element */ 115 /* Returns true if the pointer is owned by our canvas element */
116 bool get _pointerLocked => canvas == document.webkitPointerLockElement; 116 bool get _pointerLocked => canvas == document.webkitPointerLockElement;
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 print(log); 536 print(log);
537 } 537 }
538 } 538 }
539 539
540 /** 540 /**
541 * The entry point to the application. 541 * The entry point to the application.
542 */ 542 */
543 void main() { 543 void main() {
544 application.startup('#container'); 544 application.startup('#container');
545 } 545 }
OLDNEW
« no previous file with comments | « samples/dartcombat/state.dart ('k') | samples/solar3d/web/texture_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698