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

Side by Side Diff: dart/samples/swarm/Views.dart

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of swarmlib; 5 part of swarmlib;
6 6
7 // This file contains View framework classes. 7 // This file contains View framework classes.
8 // As it grows, it may need to be split into multiple files. 8 // As it grows, it may need to be split into multiple files.
9 9
10 /** A factory that creates a view from a data model. */ 10 /** A factory that creates a view from a data model. */
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 <div class="dialog $_cssName"> 963 <div class="dialog $_cssName">
964 <div class="dialog-title-area"> 964 <div class="dialog-title-area">
965 <span class="dialog-title">$_title</span> 965 <span class="dialog-title">$_title</span>
966 </div> 966 </div>
967 <div class="dialog-body"></div> 967 <div class="dialog-body"></div>
968 </div> 968 </div>
969 </div>'''); 969 </div>''');
970 970
971 _done = new PushButtonView('Done', 'done-button', 971 _done = new PushButtonView('Done', 'done-button',
972 EventBatch.wrap((e) => onDone())); 972 EventBatch.wrap((e) => onDone()));
973 final titleArea = node.query('.dialog-title-area'); 973 final titleArea = node.querySelector('.dialog-title-area');
974 titleArea.nodes.add(_done.node); 974 titleArea.nodes.add(_done.node);
975 975
976 container = node.query('.dialog-body'); 976 container = node.querySelector('.dialog-body');
977 container.nodes.add(_content.node); 977 container.nodes.add(_content.node);
978 978
979 return node; 979 return node;
980 } 980 }
981 981
982 /** Override to handle dialog done. */ 982 /** Override to handle dialog done. */
983 void onDone() { } 983 void onDone() { }
984 } 984 }
OLDNEW
« no previous file with comments | « dart/samples/swarm/SwarmViews.dart ('k') | dart/samples/swarm/swarm_ui_lib/touch/EventUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698