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

Side by Side Diff: sky/examples/raw/touch-demo.sky

Issue 1059743004: Teach window.location.href setter to handle relative urls. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!mojo mojo:sky_viewer 1 #!mojo mojo:sky_viewer
2 <sky> 2 <sky>
3 <import src="/sky/framework/debug/shake-to-reload.sky" /> 3 <import src="/sky/framework/debug/shake-to-reload.sky" />
4 <style> 4 <style>
5 dot { 5 dot {
6 position: absolute; 6 position: absolute;
7 height: 10px; 7 height: 10px;
8 width: 10px; 8 width: 10px;
9 background-color: #00FF00; 9 background-color: #00FF00;
10 border-radius: 5px; 10 border-radius: 5px;
11 opacity: .75; 11 opacity: .75;
12 } 12 }
13 13
14 log { 14 log {
15 display: paragraph;
15 margin-top: 50px; 16 margin-top: 50px;
16 } 17 }
17 </style> 18 </style>
18 <log>Touch the screen!</log> 19 <log>Touch the screen!</log>
19 <script> 20 <script>
20 import "dart:sky"; 21 import "dart:sky";
21 22
22 // Material design colors. :p 23 // Material design colors. :p
23 List<String> colors = [ 24 List<String> colors = [
24 "#009688", 25 "#009688",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 61 }
61 62
62 void main() { 63 void main() {
63 document.addEventListener("pointerdown", moreDots); 64 document.addEventListener("pointerdown", moreDots);
64 document.addEventListener("pointermove", runToTheCenter); 65 document.addEventListener("pointermove", runToTheCenter);
65 document.addEventListener("pointerup", goAway); 66 document.addEventListener("pointerup", goAway);
66 document.addEventListener("pointercancel", stopDots); 67 document.addEventListener("pointercancel", stopDots);
67 } 68 }
68 </script> 69 </script>
69 </sky> 70 </sky>
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalDOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698