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

Unified Diff: sky/examples/hello_world/hello_world.dart

Issue 1037163002: Improve Sky READMEs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/README.md ('k') | sky/examples/hello_world/main.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/hello_world/hello_world.dart
diff --git a/sky/compositor/rasterizer.cc b/sky/examples/hello_world/hello_world.dart
similarity index 55%
copy from sky/compositor/rasterizer.cc
copy to sky/examples/hello_world/hello_world.dart
index e0eb2d5c189c617e86582c3b774a6fa35e23af65..0ad7536b592cc43d66dc496a5024cf3b3f5f9cae 100644
--- a/sky/compositor/rasterizer.cc
+++ b/sky/examples/hello_world/hello_world.dart
@@ -2,14 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sky/compositor/rasterizer.h"
+import 'package:sky/framework/fn.dart';
-namespace sky {
-
-Rasterizer::Rasterizer() {
-}
-
-Rasterizer::~Rasterizer() {
+class HelloWorldApp extends App {
+ Node build() {
+ return new Text('Hello, world!');
+ }
}
-
-} // namespace sky
« no previous file with comments | « sky/examples/README.md ('k') | sky/examples/hello_world/main.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698