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

Unified Diff: client/html/src/Window.dart

Issue 8363040: Implement measurement using futures (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove duplicated imports from html.dart Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/src/Measurement.dart ('k') | client/html/src/WindowWrappingImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/Window.dart
diff --git a/client/html/src/Window.dart b/client/html/src/Window.dart
index 48699b80b38a60296928ab1971fae4daae47ee3e..d2eae7616b3a27140524ff822bca8c50a4b33dbe 100644
--- a/client/html/src/Window.dart
+++ b/client/html/src/Window.dart
@@ -263,8 +263,6 @@ interface Window extends EventTarget {
void focus();
- CSSStyleDeclaration getComputedStyle([Element element, String pseudoElement]);
-
DOMSelection getSelection();
MediaQueryList matchMedia(String query);
@@ -295,7 +293,7 @@ interface Window extends EventTarget {
int setInterval(TimeoutHandler handler, int timeout);
- int setTimeout([TimeoutHandler handler, int timeout]);
+ int setTimeout(TimeoutHandler handler, int timeout);
Object showModalDialog(String url, [Object dialogArgs, String featureArgs]);
@@ -303,12 +301,20 @@ interface Window extends EventTarget {
void webkitCancelRequestAnimationFrame(int id);
+ // TODO(jacobr): make these return Future<Point>.
Point webkitConvertPointFromNodeToPage([Node node, Point p]);
Point webkitConvertPointFromPageToNode([Node node, Point p]);
int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Element element]);
+ /**
+ * Executes a [callback] after the next batch of browser layout measurements
+ * has completed or would have completed if any browser layout measurements
+ * had been scheduled.
+ */
+ void requestLayoutFrame(TimeoutHandler callback);
+
// Window open(String url, String target, WindowSpec features);
WindowEvents get on();
« no previous file with comments | « client/html/src/Measurement.dart ('k') | client/html/src/WindowWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698