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

Side by Side Diff: sky/sdk/lib/framework/editing2/editable_text.dart

Issue 1177243002: Refactor fn2.dart, since it breached our 1000-line threshold. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
OLDNEW
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 '../fn2.dart';
6 import '../theme/colors.dart';
7 import 'dart:async'; 5 import 'dart:async';
6
7 import '../widgets/wrappers.dart';
8 import 'editable_string.dart'; 8 import 'editable_string.dart';
9 9
10 class EditableText extends Component { 10 class EditableText extends Component {
11 11
12 EditableText({Object key, this.value, this.focused}) 12 EditableText({Object key, this.value, this.focused})
13 : super(key: key, stateful: true); 13 : super(key: key, stateful: true);
14 14
15 // static final Style _cursorStyle = new Style(''' 15 // static final Style _cursorStyle = new Style('''
16 // width: 2px; 16 // width: 2px;
17 // height: 1.2em; 17 // height: 1.2em;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // children.add(new Container( 97 // children.add(new Container(
98 // key: 'cursor', 98 // key: 'cursor',
99 // // style: _cursorStyle 99 // // style: _cursorStyle
100 // )); 100 // ));
101 101
102 return new Paragraph( 102 return new Paragraph(
103 text: hack 103 text: hack
104 ); 104 );
105 } 105 }
106 } 106 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/tool_bar.dart ('k') | sky/sdk/lib/framework/editing2/input.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698