| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |