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

Side by Side Diff: dart/site/try/src/decoration.dart

Issue 345143002: Handle incremental diagnostics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library trydart.decoration; 5 library trydart.decoration;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 8
9 import 'shadow_root.dart' show 9 import 'shadow_root.dart' show
10 setShadowRoot; 10 setShadowRoot;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 } 74 }
75 75
76 createAlert(text, [String cls]) { 76 createAlert(text, [String cls]) {
77 var classes = ['alert']; 77 var classes = ['alert'];
78 if (cls != null) { 78 if (cls != null) {
79 classes.add(cls); 79 classes.add(cls);
80 } 80 }
81 SpanElement result = new SpanElement() 81 SpanElement result = new SpanElement()
82 ..classes.addAll(classes) 82 ..classes.addAll(classes)
83 ..style.opacity = '0.75'; 83 ..style.fontWeight = 'normal';
84 setShadowRoot(result, text); 84 setShadowRoot(result, text);
85 return result; 85 return result;
86 } 86 }
87 87
88 info(text) => createAlert(text, 'alert-info'); 88 info(text) => createAlert(text, 'alert-info');
89 89
90 error(text) => createAlert(text, 'alert-error'); 90 error(text) => createAlert(text, 'alert-error');
91 91
92 warning(text) => createAlert(text); 92 warning(text) => createAlert(text);
93 93
(...skipping 18 matching lines...) Expand all
112 112
113 Element applyTo(text) { 113 Element applyTo(text) {
114 var codeCompletion = new DivElement() 114 var codeCompletion = new DivElement()
115 ..contentEditable = 'false' 115 ..contentEditable = 'false'
116 ..classes.add('dart-code-completion'); 116 ..classes.add('dart-code-completion');
117 return super.applyTo(text) 117 return super.applyTo(text)
118 ..classes.add('dart-code-completion-holder') 118 ..classes.add('dart-code-completion-holder')
119 ..nodes.add(codeCompletion); 119 ..nodes.add(codeCompletion);
120 } 120 }
121 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698