OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 import 'dart:sky' as sky; | 5 import 'dart:sky' as sky; |
| 6 |
6 import 'box.dart'; | 7 import 'box.dart'; |
7 import 'object.dart'; | 8 import 'object.dart'; |
8 | 9 |
9 class RenderInline extends RenderObject { | 10 class RenderInline extends RenderObject { |
10 RenderInline(this.data); | 11 RenderInline(this.data); |
11 String data; | 12 String data; |
12 } | 13 } |
13 | 14 |
14 enum FontWeight { | 15 enum FontWeight { |
15 light, // 300 | 16 light, // 300 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // we should probably expose a way to do precise (inter-glpyh) hit testing | 213 // we should probably expose a way to do precise (inter-glpyh) hit testing |
213 | 214 |
214 String debugDescribeSettings(String prefix) { | 215 String debugDescribeSettings(String prefix) { |
215 String result = '${super.debugDescribeSettings(prefix)}'; | 216 String result = '${super.debugDescribeSettings(prefix)}'; |
216 if (style != null) | 217 if (style != null) |
217 result += '${prefix}style:\n' + style.toString('$prefix ') + '\n'; | 218 result += '${prefix}style:\n' + style.toString('$prefix ') + '\n'; |
218 result += '${prefix}text: ${text}\n'; | 219 result += '${prefix}text: ${text}\n'; |
219 return result; | 220 return result; |
220 } | 221 } |
221 } | 222 } |
OLD | NEW |