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

Unified Diff: sky/examples/scrolling/scrolling.sky

Issue 1022613002: Remove custom elements examples, they are no longer maintained (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
Index: sky/examples/scrolling/scrolling.sky
diff --git a/sky/examples/scrolling/scrolling.sky b/sky/examples/scrolling/scrolling.sky
deleted file mode 100644
index da20178c75453e26451fe65a63f8b925e36ce2e7..0000000000000000000000000000000000000000
--- a/sky/examples/scrolling/scrolling.sky
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
--->
-<import src="/sky/framework/elements/sky-element.sky" />
-<import src="/sky/framework/elements/sky-scrollable.sky" />
-
-<sky-element>
-<template>
- <style>
- sky-scrollable {
- margin: 20px;
- height: 400px;
- border: 2px solid blue;
- }
- </style>
- <sky-scrollable />
-</template>
-<script>
-import "dart:sky";
-import "../data/cities.dart" as cities;
-
-@Tagname('scrolling')
-class Scrolling extends SkyElement {
- void shadowRootReady() {
- Element parent = shadowRoot.querySelector('sky-scrollable');
- for (Map city in cities.kData.getRange(0, 300)) {
- Element div = document.createElement('div');
- div.setChild(new Text(city['name']));
- parent.appendChild(div);
- }
- }
-}
-
-_init(script) => register(script, Scrolling);
-</script>
-</sky-element>

Powered by Google App Engine
This is Rietveld 408576698