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

Side by Side Diff: sky/sdk/lib/example/color/color-chooser.sky

Issue 1218593002: Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 #!mojo mojo:sky_viewer 1 #!mojo mojo:sky_viewer
2 <!-- 2 <!--
3 // Copyright 2015 The Chromium Authors. All rights reserved. 3 // Copyright 2015 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 --> 6 -->
7 <sky> 7 <sky>
8 <style> 8 <style>
9 #chooser { 9 #chooser {
10 display: flex; 10 display: flex;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 print(ccsColor); 87 print(ccsColor);
88 } 88 }
89 89
90 void main() { 90 void main() {
91 elt("color-wheel").addEventListener("pointerdown", updateColor); 91 elt("color-wheel").addEventListener("pointerdown", updateColor);
92 elt("color-sample").addEventListener("pointerdown", selectColor); 92 elt("color-sample").addEventListener("pointerdown", selectColor);
93 elt("color-sample").style["background-color"] = "rgb(0, 209, 255)"; 93 elt("color-sample").style["background-color"] = "rgb(0, 209, 255)";
94 } 94 }
95 </script> 95 </script>
96 </sky> 96 </sky>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698