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

Side by Side Diff: samples/calculator/calcui.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « runtime/tests/vm/dart/isolate_mirror_local_test.dart ('k') | samples/calculator/settings.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 // Generated Dart class from HTML template. 1 // Generated Dart class from HTML template.
2 // DO NOT EDIT. 2 // DO NOT EDIT.
3 3
4 class FlatPadUI { 4 class FlatPadUI {
5 Map<String, Object> _scopes; 5 Map<String, Object> _scopes;
6 Element _fragment; 6 Element _fragment;
7 7
8 8
9 // Elements bound to a variable: 9 // Elements bound to a variable:
10 var keySeven; 10 var keySeven;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 keyDot = new Element.html('<span class="calc-period"></span>'); 75 keyDot = new Element.html('<span class="calc-period"></span>');
76 e4.elements.add(keyDot); 76 e4.elements.add(keyDot);
77 var e5 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' ); 77 var e5 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' );
78 keyDot.elements.add(e5); 78 keyDot.elements.add(e5);
79 var e6 = new Text('.'); 79 var e6 = new Text('.');
80 keyDot.elements.add(e6); 80 keyDot.elements.add(e6);
81 var e7 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' ); 81 var e7 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' );
82 keyDot.elements.add(e7); 82 keyDot.elements.add(e7);
83 } 83 }
84 84
85 Element get root() => _fragment; 85 Element get root => _fragment;
86 86
87 // CSS class selectors for this template. 87 // CSS class selectors for this template.
88 static String get calcPad() => "calc-pad"; 88 static String get calcPad => "calc-pad";
89 static String get calcRow() => "calc-row"; 89 static String get calcRow => "calc-row";
90 static String get calcNum() => "calc-num"; 90 static String get calcNum => "calc-num";
91 static String get calcPeriod() => "calc-period"; 91 static String get calcPeriod => "calc-period";
92 static String get calcOpButton() => "calc-op-button"; 92 static String get calcOpButton => "calc-op-button";
93 static String get calcNumHover() => "calc-num-hover"; 93 static String get calcNumHover => "calc-num-hover";
94 static String get calcNumActive() => "calc-num-active"; 94 static String get calcNumActive => "calc-num-active";
95 static String get calcPeriodHover() => "calc-period-hover"; 95 static String get calcPeriodHover => "calc-period-hover";
96 static String get calcPeriodActive() => "calc-period-active"; 96 static String get calcPeriodActive => "calc-period-active";
97 static String get calcPeriodError() => "calc-period-error"; 97 static String get calcPeriodError => "calc-period-error";
98 static String get opPlusBase() => "op-plus-base"; 98 static String get opPlusBase => "op-plus-base";
99 static String get opPlus() => "op-plus"; 99 static String get opPlus => "op-plus";
100 static String get opPlusHover() => "op-plus-hover"; 100 static String get opPlusHover => "op-plus-hover";
101 static String get opPlusActive() => "op-plus-active"; 101 static String get opPlusActive => "op-plus-active";
102 static String get opMinusBase() => "op-minus-base"; 102 static String get opMinusBase => "op-minus-base";
103 static String get opMinus() => "op-minus"; 103 static String get opMinus => "op-minus";
104 static String get opMinusHover() => "op-minus-hover"; 104 static String get opMinusHover => "op-minus-hover";
105 static String get opMinusActive() => "op-minus-active"; 105 static String get opMinusActive => "op-minus-active";
106 static String get opMultBase() => "op-mult-base"; 106 static String get opMultBase => "op-mult-base";
107 static String get opMult() => "op-mult"; 107 static String get opMult => "op-mult";
108 static String get opMultHover() => "op-mult-hover"; 108 static String get opMultHover => "op-mult-hover";
109 static String get opMultActive() => "op-mult-active"; 109 static String get opMultActive => "op-mult-active";
110 static String get opDivBase() => "op-div-base"; 110 static String get opDivBase => "op-div-base";
111 static String get opDiv() => "op-div"; 111 static String get opDiv => "op-div";
112 static String get opDivHover() => "op-div-hover"; 112 static String get opDivHover => "op-div-hover";
113 static String get opDivActive() => "op-div-active"; 113 static String get opDivActive => "op-div-active";
114 static String get opEqualBase() => "op-equal-base"; 114 static String get opEqualBase => "op-equal-base";
115 static String get opEqual() => "op-equal"; 115 static String get opEqual => "op-equal";
116 static String get opEqualHover() => "op-equal-hover"; 116 static String get opEqualHover => "op-equal-hover";
117 static String get opEqualActive() => "op-equal-active"; 117 static String get opEqualActive => "op-equal-active";
118 static String get opArrowBase() => "op-arrow-base"; 118 static String get opArrowBase => "op-arrow-base";
119 static String get opArrow() => "op-arrow"; 119 static String get opArrow => "op-arrow";
120 static String get opArrowHover() => "op-arrow-hover"; 120 static String get opArrowHover => "op-arrow-hover";
121 static String get opArrowActive() => "op-arrow-active"; 121 static String get opArrowActive => "op-arrow-active";
122 122
123 // Injection functions: 123 // Injection functions:
124 // Each functions: 124 // Each functions:
125 125
126 // With functions: 126 // With functions:
127 127
128 // CSS for this template. 128 // CSS for this template.
129 static const String stylesheet = ''' 129 static const String stylesheet = '''
130 130
131 .calc-pad { 131 .calc-pad {
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 keyDot = new Element.html('<span class="button-period"></span>'); 659 keyDot = new Element.html('<span class="button-period"></span>');
660 e4.elements.add(keyDot); 660 e4.elements.add(keyDot);
661 var e5 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' ); 661 var e5 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' );
662 keyDot.elements.add(e5); 662 keyDot.elements.add(e5);
663 var e6 = new Text('.'); 663 var e6 = new Text('.');
664 keyDot.elements.add(e6); 664 keyDot.elements.add(e6);
665 var e7 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' ); 665 var e7 = new Element.html('<span style="font-size:9pt;">&nbsp;&nbsp;</span>' );
666 keyDot.elements.add(e7); 666 keyDot.elements.add(e7);
667 } 667 }
668 668
669 Element get root() => _fragment; 669 Element get root => _fragment;
670 670
671 // CSS class selectors for this template. 671 // CSS class selectors for this template.
672 static String get buttonPad() => "button-pad"; 672 static String get buttonPad => "button-pad";
673 static String get buttonRow() => "button-row"; 673 static String get buttonRow => "button-row";
674 static String get buttonNum() => "button-num"; 674 static String get buttonNum => "button-num";
675 static String get buttonPeriod() => "button-period"; 675 static String get buttonPeriod => "button-period";
676 static String get buttonNumHover() => "button-num-hover"; 676 static String get buttonNumHover => "button-num-hover";
677 static String get buttonNumActive() => "button-num-active"; 677 static String get buttonNumActive => "button-num-active";
678 static String get buttonPeriodHover() => "button-period-hover"; 678 static String get buttonPeriodHover => "button-period-hover";
679 static String get buttonPeriodActive() => "button-period-active"; 679 static String get buttonPeriodActive => "button-period-active";
680 static String get buttonPeriodError() => "button-period-error"; 680 static String get buttonPeriodError => "button-period-error";
681 static String get buttonopPlusBase() => "buttonop-plus-base"; 681 static String get buttonopPlusBase => "buttonop-plus-base";
682 static String get buttonopPlus() => "buttonop-plus"; 682 static String get buttonopPlus => "buttonop-plus";
683 static String get buttonopPlusHover() => "buttonop-plus-hover"; 683 static String get buttonopPlusHover => "buttonop-plus-hover";
684 static String get buttonopPlusActive() => "buttonop-plus-active"; 684 static String get buttonopPlusActive => "buttonop-plus-active";
685 static String get buttonopMinusBase() => "buttonop-minus-base"; 685 static String get buttonopMinusBase => "buttonop-minus-base";
686 static String get buttonopMinus() => "buttonop-minus"; 686 static String get buttonopMinus => "buttonop-minus";
687 static String get buttonopMinusHover() => "buttonop-minus-hover"; 687 static String get buttonopMinusHover => "buttonop-minus-hover";
688 static String get buttonopMinusActive() => "buttonop-minus-active"; 688 static String get buttonopMinusActive => "buttonop-minus-active";
689 static String get buttonopMultBase() => "buttonop-mult-base"; 689 static String get buttonopMultBase => "buttonop-mult-base";
690 static String get buttonopMult() => "buttonop-mult"; 690 static String get buttonopMult => "buttonop-mult";
691 static String get buttonopMultHover() => "buttonop-mult-hover"; 691 static String get buttonopMultHover => "buttonop-mult-hover";
692 static String get buttonopMultActive() => "buttonop-mult-active"; 692 static String get buttonopMultActive => "buttonop-mult-active";
693 static String get buttonopDivBase() => "buttonop-div-base"; 693 static String get buttonopDivBase => "buttonop-div-base";
694 static String get buttonopDiv() => "buttonop-div"; 694 static String get buttonopDiv => "buttonop-div";
695 static String get buttonopDivHover() => "buttonop-div-hover"; 695 static String get buttonopDivHover => "buttonop-div-hover";
696 static String get buttonopDivActive() => "buttonop-div-active"; 696 static String get buttonopDivActive => "buttonop-div-active";
697 static String get buttonopEqualBase() => "buttonop-equal-base"; 697 static String get buttonopEqualBase => "buttonop-equal-base";
698 static String get buttonopEqual() => "buttonop-equal"; 698 static String get buttonopEqual => "buttonop-equal";
699 static String get buttonopEqualHover() => "buttonop-equal-hover"; 699 static String get buttonopEqualHover => "buttonop-equal-hover";
700 static String get buttonopEqualActive() => "buttonop-equal-active"; 700 static String get buttonopEqualActive => "buttonop-equal-active";
701 static String get buttonopArrowBase() => "buttonop-arrow-base"; 701 static String get buttonopArrowBase => "buttonop-arrow-base";
702 static String get buttonopArrow() => "buttonop-arrow"; 702 static String get buttonopArrow => "buttonop-arrow";
703 static String get buttonopArrowHover() => "buttonop-arrow-hover"; 703 static String get buttonopArrowHover => "buttonop-arrow-hover";
704 static String get buttonopArrowActive() => "buttonop-arrow-active"; 704 static String get buttonopArrowActive => "buttonop-arrow-active";
705 705
706 // Injection functions: 706 // Injection functions:
707 // Each functions: 707 // Each functions:
708 708
709 // With functions: 709 // With functions:
710 710
711 // CSS for this template. 711 // CSS for this template.
712 static const String stylesheet = ''' 712 static const String stylesheet = '''
713 713
714 .button-pad { 714 .button-pad {
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 var e3 = new Element.html('<span>Simple</span>'); 1164 var e3 = new Element.html('<span>Simple</span>');
1165 simpleTitle.elements.add(e3); 1165 simpleTitle.elements.add(e3);
1166 buttonTitle = new Element.html('<div style="cursor: pointer;"></div>'); 1166 buttonTitle = new Element.html('<div style="cursor: pointer;"></div>');
1167 e1.elements.add(buttonTitle); 1167 e1.elements.add(buttonTitle);
1168 buttons = new Element.html('<input class="dlg-item" name="theme" type="radio "></input>'); 1168 buttons = new Element.html('<input class="dlg-item" name="theme" type="radio "></input>');
1169 buttonTitle.elements.add(buttons); 1169 buttonTitle.elements.add(buttons);
1170 var e4 = new Element.html('<span>Buttons</span>'); 1170 var e4 = new Element.html('<span>Buttons</span>');
1171 buttonTitle.elements.add(e4); 1171 buttonTitle.elements.add(e4);
1172 } 1172 }
1173 1173
1174 Element get root() => _fragment; 1174 Element get root => _fragment;
1175 1175
1176 // CSS class selectors for this template. 1176 // CSS class selectors for this template.
1177 static String get settingGlyph() => "setting-glyph"; 1177 static String get settingGlyph => "setting-glyph";
1178 static String get dialog() => "dialog"; 1178 static String get dialog => "dialog";
1179 static String get dlgArea() => "dlg-area"; 1179 static String get dlgArea => "dlg-area";
1180 static String get dlgItem() => "dlg-item"; 1180 static String get dlgItem => "dlg-item";
1181 static String get dlgSubtitle() => "dlg-subtitle"; 1181 static String get dlgSubtitle => "dlg-subtitle";
1182 static String get expressionInput() => "expression-input"; 1182 static String get expressionInput => "expression-input";
1183 1183
1184 // Injection functions: 1184 // Injection functions:
1185 // Each functions: 1185 // Each functions:
1186 1186
1187 // With functions: 1187 // With functions:
1188 1188
1189 // CSS for this template. 1189 // CSS for this template.
1190 static const String stylesheet = ''' 1190 static const String stylesheet = '''
1191 1191
1192 .setting-glyph { 1192 .setting-glyph {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 } 1312 }
1313 1313
1314 String replaceActiveOp(value) { 1314 String replaceActiveOp(value) {
1315 return '''<div class="alignleft">${value}</div>'''; 1315 return '''<div class="alignleft">${value}</div>''';
1316 } 1316 }
1317 1317
1318 String replaceActiveTotal(value) { 1318 String replaceActiveTotal(value) {
1319 return '''<div class="alignright">${value}</div>'''; 1319 return '''<div class="alignright">${value}</div>''';
1320 } 1320 }
1321 1321
1322 Element get root() => _fragment; 1322 Element get root => _fragment;
1323 1323
1324 // CSS class selectors for this template. 1324 // CSS class selectors for this template.
1325 static String get calculatorTape() => "calculator-tape"; 1325 static String get calculatorTape => "calculator-tape";
1326 static String get alignleft() => "alignleft"; 1326 static String get alignleft => "alignleft";
1327 static String get alignright() => "alignright"; 1327 static String get alignright => "alignright";
1328 static String get clearLine() => "clear-line"; 1328 static String get clearLine => "clear-line";
1329 static String get clearCalc() => "clear-calc"; 1329 static String get clearCalc => "clear-calc";
1330 static String get error() => "error"; 1330 static String get error => "error";
1331 static String get total() => "total"; 1331 static String get total => "total";
1332 1332
1333 // Injection functions: 1333 // Injection functions:
1334 // Each functions: 1334 // Each functions:
1335 1335
1336 // With functions: 1336 // With functions:
1337 1337
1338 // CSS for this template. 1338 // CSS for this template.
1339 static const String stylesheet = ''' 1339 static const String stylesheet = '''
1340 1340
1341 .calculator-tape { 1341 .calculator-tape {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 // All templates stylesheet. 1410 // All templates stylesheet.
1411 styles.add(FlatPadUI.stylesheet); 1411 styles.add(FlatPadUI.stylesheet);
1412 styles.add(ButtonPadUI.stylesheet); 1412 styles.add(ButtonPadUI.stylesheet);
1413 styles.add(SettingsDialog.stylesheet); 1413 styles.add(SettingsDialog.stylesheet);
1414 styles.add(TapeUI.stylesheet); 1414 styles.add(TapeUI.stylesheet);
1415 1415
1416 calcui_stylesheet_added = true; 1416 calcui_stylesheet_added = true;
1417 document.head.elements.add(new Element.html('<style>${styles.toString()}</st yle>')); 1417 document.head.elements.add(new Element.html('<style>${styles.toString()}</st yle>'));
1418 } 1418 }
1419 } 1419 }
OLDNEW
« no previous file with comments | « runtime/tests/vm/dart/isolate_mirror_local_test.dart ('k') | samples/calculator/settings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698