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

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

Issue 209233005: Simplify content rewriting. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | dart/site/try/src/html_to_text.dart » ('j') | dart/site/try/src/html_to_text.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class Decoration { 9 class Decoration {
10 final String color; 10 final String color;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 color: decoration.color, 115 color: decoration.color,
116 bold: decoration.bold, 116 bold: decoration.bold,
117 italic: decoration.italic, 117 italic: decoration.italic,
118 stress: decoration.stress, 118 stress: decoration.stress,
119 important: decoration.important); 119 important: decoration.important);
120 } 120 }
121 121
122 Element applyTo(text) { 122 Element applyTo(text) {
123 var codeCompletion = new DivElement() 123 var codeCompletion = new DivElement()
124 ..contentEditable = 'false' 124 ..contentEditable = 'false'
125 ..classes.add('dart-code-completion') 125 ..classes.add('dart-code-completion');
126 ..appendText('Completion goes here');
127 return super.applyTo(text) 126 return super.applyTo(text)
128 ..classes.add('dart-code-completion-holder') 127 ..classes.add('dart-code-completion-holder')
129 ..nodes.add(codeCompletion); 128 ..nodes.add(codeCompletion);
130 } 129 }
131 } 130 }
OLDNEW
« no previous file with comments | « no previous file | dart/site/try/src/html_to_text.dart » ('j') | dart/site/try/src/html_to_text.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698