Move material Input component into sky/framework
The implementation details are in sky/framework/editing.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/983213005
diff --git a/sky/examples/editor/index.sky b/sky/examples/input/index.sky
similarity index 73%
rename from sky/examples/editor/index.sky
rename to sky/examples/input/index.sky
index d677e24..bc438b8 100644
--- a/sky/examples/editor/index.sky
+++ b/sky/examples/input/index.sky
@@ -2,9 +2,9 @@
<sky>
<import src="/sky/framework/debug/shake-to-reload.sky" />
<script>
-import 'editor_app.dart';
+import 'input_app.dart';
main() {
- new EditorApp();
+ new InputApp();
}
</script>
</sky>
diff --git a/sky/examples/editor/editor_app.dart b/sky/examples/input/input_app.dart
similarity index 76%
rename from sky/examples/editor/editor_app.dart
rename to sky/examples/input/input_app.dart
index 58239c9..68256cf 100644
--- a/sky/examples/editor/editor_app.dart
+++ b/sky/examples/input/input_app.dart
@@ -3,9 +3,9 @@
// found in the LICENSE file.
import '../../framework/fn.dart';
-import 'input.dart';
+import '../../framework/components/input.dart';
-class EditorApp extends App {
+class InputApp extends App {
Node build() {
return new Input();
}
diff --git a/sky/examples/editor/input.dart b/sky/framework/components/input.dart
similarity index 89%
rename from sky/examples/editor/input.dart
rename to sky/framework/components/input.dart
index 0c5b499..3de32ad 100644
--- a/sky/examples/editor/input.dart
+++ b/sky/framework/components/input.dart
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import '../../framework/fn.dart';
-import '../../framework/theme/colors.dart';
-import 'editable_string.dart';
-import 'editable_text.dart';
-import 'keyboard.dart';
+import '../editing/editable_string.dart';
+import '../editing/editable_text.dart';
+import '../editing/keyboard.dart';
+import '../fn.dart';
+import '../theme/colors.dart';
typedef void ValueChanged(value);
diff --git a/sky/examples/editor/editable_string.dart b/sky/framework/editing/editable_string.dart
similarity index 100%
rename from sky/examples/editor/editable_string.dart
rename to sky/framework/editing/editable_string.dart
diff --git a/sky/examples/editor/editable_text.dart b/sky/framework/editing/editable_text.dart
similarity index 96%
rename from sky/examples/editor/editable_text.dart
rename to sky/framework/editing/editable_text.dart
index d752972..7ad78a9 100644
--- a/sky/examples/editor/editable_text.dart
+++ b/sky/framework/editing/editable_text.dart
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import '../../framework/fn.dart';
-import '../../framework/theme/colors.dart';
+import '../fn.dart';
+import '../theme/colors.dart';
import 'dart:async';
import 'editable_string.dart';
diff --git a/sky/examples/editor/keyboard.dart b/sky/framework/editing/keyboard.dart
similarity index 92%
rename from sky/examples/editor/keyboard.dart
rename to sky/framework/editing/keyboard.dart
index c958e48..5cdfb2c 100644
--- a/sky/examples/editor/keyboard.dart
+++ b/sky/framework/editing/keyboard.dart
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import '../../framework/shell.dart' as shell;
+import '../shell.dart' as shell;
import 'package:sky/services/keyboard/keyboard.mojom.dart';
class _KeyboardConnection {