Remove custom elements examples, they are no longer maintained
R=abarth@chromium.org Review URL: https://codereview.chromium.org/1022613002
This commit is contained in:
parent
0574e849d6
commit
32b16eca53
@ -1,25 +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" />
|
||||
<sky-element>
|
||||
<template>
|
||||
<style>
|
||||
div {
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<div>Hi</div>
|
||||
</template>
|
||||
<script>
|
||||
@Tagname('example')
|
||||
class ExampleElement extends SkyElement {
|
||||
}
|
||||
|
||||
_init(script) => register(script, ExampleElement);
|
||||
</script>
|
||||
</sky-element>
|
@ -1,16 +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.
|
||||
-->
|
||||
<sky>
|
||||
<import src="example-element.sky" />
|
||||
<style>
|
||||
example {
|
||||
border: 1px solid blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<example />
|
||||
</sky>
|
@ -1,10 +0,0 @@
|
||||
#!mojo mojo:sky_viewer
|
||||
<!--
|
||||
// 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.
|
||||
-->
|
||||
<sky>
|
||||
<import src="scrolling.sky" />
|
||||
<scrolling />
|
||||
</sky>
|
@ -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>
|
@ -173,10 +173,6 @@ def main():
|
||||
copy_or_link(os.path.join(bindings_path, 'dart_sky.dart'),
|
||||
sdk_path('packages/sky/sdk_additions/dart_sky.dart'))
|
||||
|
||||
# Not used in the dev environment.
|
||||
copy_or_link(src_path('sky/sdk/tools/sky'),
|
||||
sdk_path('packages/sky/bin/sky'))
|
||||
|
||||
# Mojo package, lots of overlap with gen, must be copied:
|
||||
copy(src_path('mojo/public'), sdk_path('packages/mojo/lib/public'),
|
||||
dart_filter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user