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

Side by Side Diff: dart/samples/webcomponents/game_of_life/components/components.html

Issue 10918082: adding game_of_life sample (Closed) Base URL: git@github.com:samhopkins/bleeding_edge.git@master
Patch Set: ready for second round of review Created 8 years, 3 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
(Empty)
1 <!DOCTYPE html>
2
3 <!-- Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 for details. All rights reserved. Use of this source code is governed by a
5 BSD-style license that can be found in the LICENSE file. -->
6
7 <html>
8 <head>
9 <title>Game of Life Components</title>
10 </head>
11 <body>
12 <!-- An individual cell for our version of Conway's Game of Life. -->
13 <element extends="div" name="x-cell" apply-author-styles>
14 <!-- The DOM portion is trivial; see the styling and Dart behavior. -->
15 <template>
16 </template>
17 </element>
18
19 <!-- A control panel for the Game of Life, with stop/start/step controls -->
20 <element extends="div" name="x-control-panel" apply-author-styles>
21 <template>
22 <button type="button" id="start">Start</button>
23 <button type="button" id="stop">Stop</button>
24 <button type="button" id="step">Step</button>
25 </template>
26 </element>
27
28 <!-- A Game of Life widget. Contains a board and a control panel. -->
29 <element extends="div" name="x-game-of-life" apply-author-styles>
30 <template>
31 <!-- Not much is here, since the cells will be instantiated
32 programatically, once we know how many to make. -->
33 <div is="x-control-panel"></div>
34 </template>
35 </element>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698