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

Side by Side Diff: sky/examples/fn/lib/fakesky.dart

Issue 987833002: add some more sky api to fakesky stub implementation. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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 import 'dart:async'; 1 import 'dart:async';
2 2
3 void assertHasParentNode(Node n) { assert(n.parentNode != null); } 3 void assertHasParentNode(Node n) { assert(n.parentNode != null); }
4 void assertHasParentNodes(List<Node> list) { 4 void assertHasParentNodes(List<Node> list) {
5 for (var n in list) { 5 for (var n in list) {
6 assertHasParentNode(n); 6 assertHasParentNode(n);
7 } 7 }
8 } 8 }
9 9
10 class Node { 10 class Node {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 } 116 }
117 } 117 }
118 118
119 class HTMLImageElement extends Element { 119 class HTMLImageElement extends Element {
120 Image(); 120 Image();
121 String src; 121 String src;
122 Object style = {}; 122 Object style = {};
123 } 123 }
124 124
125 class Event { 125 class Event {}
126 Event(); 126
127 } 127 class PointerEvent extends Event {}
128 class GestureEvent extends Event {}
129 class WheelEvent extends Event {}
128 130
129 typedef EventListener(Event event); 131 typedef EventListener(Event event);
130 132
131 void _callRAF(Function fn) { 133 void _callRAF(Function fn) {
132 fn(new DateTime.now().millisecondsSinceEpoch.toDouble()); 134 fn(new DateTime.now().millisecondsSinceEpoch.toDouble());
133 } 135 }
134 136
135 class Window { 137 class Window {
136 int requestAnimationFrame(Function fn) { 138 int requestAnimationFrame(Function fn) {
137 new Timer(const Duration(milliseconds: 16), () { 139 new Timer(const Duration(milliseconds: 16), () {
138 _callRAF(fn); 140 _callRAF(fn);
139 }); 141 });
140 } 142 }
141 143
142 void cancelAnimationFrame(int id) { 144 void cancelAnimationFrame(int id) {
143 } 145 }
144 } 146 }
145 147
146 Document document = new Document(); 148 Document document = new Document();
147 149
148 Window window = new Window(); 150 Window window = new Window();
151
152 class ClientRect {
153 double top
154 double right;
155 double bottomr;
156 double left;
157 double width;
158 double height;
159 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698