OLD | NEW |
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 <import src="/gen/examples/wm_flow/wm/window_frame_host.mojom.sky" as="example"
/> | 8 <import src="/gen/examples/wm_flow/wm/window_frame_host.mojom.sky" as="example"
/> |
9 <import src="/sky/framework/embedder.sky" as="embedder" /> | 9 <import src="/sky/framework/embedder.sky" as="embedder" /> |
10 <import src="/sky/framework/sky-button/sky-button.sky"/> | 10 <import src="/sky/framework/sky-button.sky"/> |
11 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/> | 11 <import src="/sky/framework/sky-checkbox.sky"/> |
12 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> | 12 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> |
13 | 13 |
14 <style> | 14 <style> |
15 /* FIXME: Hack until the requirement of a single root element is lifted. */ | 15 /* FIXME: Hack until the requirement of a single root element is lifted. */ |
16 sky { height: 100%; } | 16 sky { height: 100%; } |
17 </style> | 17 </style> |
18 | 18 |
19 <sky-element name="window-frame"> | 19 <sky-element name="window-frame"> |
20 <template> | 20 <template> |
21 <style> | 21 <style> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 handleBegoneClick(event) { | 75 handleBegoneClick(event) { |
76 this.embedder.closeWindow(); | 76 this.embedder.closeWindow(); |
77 } | 77 } |
78 }.register(); | 78 }.register(); |
79 </script> | 79 </script> |
80 </sky-element> | 80 </sky-element> |
81 | 81 |
82 <window-frame /> | 82 <window-frame /> |
83 | 83 |
84 </sky> | 84 </sky> |
OLD | NEW |