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

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

Issue 9145004: Revert "Example showing alternate async measurement solution" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
Index: client/html/src/Element.dart
diff --git a/client/html/src/Element.dart b/client/html/src/Element.dart
index 7236491115dd067adcff143e0ba9b898d5bd1a6b..ea5a3de313e826245c101113a4754df92a1f1ab9 100644
--- a/client/html/src/Element.dart
+++ b/client/html/src/Element.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -8,6 +8,10 @@ interface ElementList extends List<Element> {
// TODO(jacobr): add insertAt
}
+class DeferredElementRect {
+ // TODO(jacobr)
+}
+
interface ElementEvents extends Events {
EventListenerList get abort();
EventListenerList get beforeCopy();
@@ -181,14 +185,11 @@ interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
bool matchesSelector([String selectors]);
- /** Only access members when [window.inMeasurementFrame] is true. */
- ElementRect get rect();
+ Future<ElementRect> get rect();
- /** Only call when [window.inMeasurementFrame] is true. */
- CSSStyleDeclaration get computedStyle();
+ Future<CSSStyleDeclaration> get computedStyle();
- /** Only call when [window.inMeasurementFrame] is true. */
- CSSStyleDeclaration getComputedStyle(String pseudoElement);
+ Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
ElementEvents get on();
« no previous file with comments | « client/html/src/DocumentWrappingImplementation.dart ('k') | client/html/src/ElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698