Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 interface EventTarget {} | |
| 2 | |
| 3 // Pure interfaces. | |
| 4 interface ElementTimeControl { | |
| 5 void beginElement(); | |
| 6 void beginElementAt(num offset); | |
| 7 void endElement(); | |
| 8 void endElementAt(num offset); | |
| 9 } | |
| 10 | |
| 11 interface SVGURIReference { | |
| 12 SVGAnimatedString get href(); | |
| 13 } | |
| 14 | |
| 15 interface SVGExternalResourcesRequired { | |
| 16 SVGAnimatedBoolean get externalResourcesRequired(); | |
| 17 } | |
| 18 | |
| 19 interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { | |
| 20 SVGAnimatedLength get x(); | |
| 21 SVGAnimatedLength get y(); | |
| 22 SVGAnimatedLength get width(); | |
| 23 SVGAnimatedLength get height(); | |
| 24 SVGAnimatedString get result(); | |
| 25 } | |
| 26 | |
| 27 interface SVGFitToViewBox { | |
| 28 SVGAnimatedRect get viewBox(); | |
| 29 SVGAnimatedPreserveAspectRatio get preserveAspectRatio(); | |
| 30 } | |
| 31 | |
| 32 interface SVGLocatable { | |
| 33 SVGElement get nearestViewportElement(); | |
| 34 SVGElement get farthestViewportElement(); | |
| 35 SVGRect getBBox(); | |
| 36 SVGMatrix getCTM(); | |
| 37 SVGMatrix getScreenCTM(); | |
| 38 SVGMatrix getTransformToElement(SVGElement element); | |
| 39 } | |
| 40 | |
| 41 interface SVGLangSpace { | |
| 42 String get xmllang(); | |
| 43 set xmllang(String); | |
| 44 String get xmlspace(); | |
| 45 set xmlspace(String); | |
| 46 } | |
| 47 | |
| 48 interface SVGStylable { | |
| 49 SVGAnimatedString get className(); | |
| 50 CSSStyleDeclaration get style(); | |
| 51 CSSValue getPresentationAttribute(String name); | |
| 52 } | |
| 53 | |
| 54 interface SVGTests { | |
| 55 SVGStringList get requiredFeatures(); | |
| 56 SVGStringList get requiredExtensions(); | |
| 57 SVGStringList get systemLanguage(); | |
| 58 bool hasExtension(String extension); | |
| 59 } | |
| 60 | |
| 61 interface SVGTransformable extends SVGLocatable { | |
| 62 SVGAnimatedTransformList get transform(); | |
| 63 } | |
| 64 | |
| 65 interface SVGViewSpec extends SVGZoomAndPan { | |
| 66 SVGTransformList get transform(); | |
| 67 SVGElement get viewTarget(); | |
| 68 String get viewBoxString(); | |
| 69 String get preserveAspectRatioString(); | |
| 70 String get transformString(); | |
| 71 String get viewTargetString(); | |
| 72 } | |
| 73 | |
| 74 interface SVGZoomAndPan { | |
| 75 static final int SVG_ZOOMANDPAN_UNKNOWN = 0; | |
| 76 static final int SVG_ZOOMANDPAN_DISABLE = 1; | |
| 77 static final int SVG_ZOOMANDPAN_MAGNIFY = 2; | |
| 78 int get zoomAndPan(); | |
| 79 set zoomAndPan(int); | |
| 80 } | |
| 81 | |
| 82 Window get window() => Utils.window(); | |
| 83 | |
| 84 // This API is exploratory. | |
| 85 spawnDomIsolate(Window targetWindow, String entryPoint) { | |
|
antonm
2012/01/25 18:56:40
have you ran LTs? I wonder where this function is
podivilov
2012/01/25 19:04:05
See http://codereview.chromium.org/9290020/.
| |
| 86 if (targetWindow is! DOMWindowImplementation && targetWindow is! DOMWindowCros sFrameImplementation) { | |
| 87 throw 'Bad window argument: $targetWindow'; | |
| 88 } | |
| 89 final result = new Completer<SendPort>(); | |
| 90 final port = Utils.spawnDomIsolate(targetWindow, entryPoint); | |
| 91 window.setTimeout(() { result.complete(port); }, 0); | |
| 92 return result.future; | |
| 93 } | |
| 94 | |
| 95 // layoutTestController implementation. | |
| 96 // FIXME: provide a separate lib for layoutTestController. | |
| 97 | |
| 98 var _layoutTestController; | |
| 99 | |
| 100 LayoutTestController get layoutTestController() { | |
| 101 if (_layoutTestController === null) | |
| 102 _layoutTestController = new LayoutTestController._(NPObject.retrieve("layout TestController")); | |
| 103 return _layoutTestController; | |
| 104 } | |
| 105 | |
| 106 class LayoutTestController { | |
| 107 final NPObject _npObject; | |
| 108 | |
| 109 LayoutTestController._(this._npObject); | |
| 110 | |
| 111 dumpAsText() => _npObject.invoke('dumpAsText'); | |
| 112 notifyDone() => _npObject.invoke('notifyDone'); | |
| 113 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); | |
| 114 waitUntilDone() => _npObject.invoke('waitUntilDone'); | |
| 115 } | |
| OLD | NEW |