OLD | NEW |
---|---|
(Empty) | |
1 <!-- | |
2 // Copyright 2015 The Chromium Authors. All rights reserved. | |
3 // Use of this source code is governed by a BSD-style license that can be | |
4 // found in the LICENSE file. | |
5 --> | |
6 <import src="sky-element.sky" /> | |
7 <import src="sky-ink-splash.sky" /> | |
8 <script> | |
9 import "dart:sky"; | |
10 | |
11 HTMLStyleElement _kStyleElement; | |
12 | |
13 class MaterialElement extends SkyElement { | |
14 MaterialElement() { | |
15 addEventListener('pointerdown', _handlePointerDown); | |
16 } | |
17 | |
18 void _handlePointerDown(PointerEvent event) { | |
19 style['transform'] = 'translateX(0)'; | |
eseidel
2015/02/24 23:38:57
Add FIXME.
| |
20 ClientRect rect = getBoundingClientRect(); | |
21 SkyInkSplash splash = new SkyInkSplash(); | |
22 shadowRoot.prependChild(splash); | |
23 splash.start(event.x, event.y, rect); | |
24 } | |
25 } | |
26 </script> | |
OLD | NEW |