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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11358135: Some changes to improve precision of types in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 24059cb51ceca84aaec68e7e02e2fa96cd5fbf71..5c2265e4189e02089080911457c648c009576e8e 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -4215,13 +4215,11 @@ class CanvasElement extends Element implements Element native "*HTMLCanvasElemen
/** @domName HTMLCanvasElement.width */
int width;
- /** @domName HTMLCanvasElement.getContext */
- Object getContext(String contextId) native;
-
/** @domName HTMLCanvasElement.toDataURL */
String toDataURL(String type, [num quality]) native;
+ CanvasRenderingContext getContext(String contextId) native;
CanvasRenderingContext2D get context2d => getContext('2d');
}
@@ -12564,7 +12562,7 @@ class MutationObserver native "*MutationObserver" {
static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array.
// Call native function with no conversions.
- _call(target, options) native 'observe';
+ void _call(target, options) native 'observe';
}
/// @domName MutationRecord
@@ -14064,7 +14062,8 @@ class Point native "*WebKitPoint" {
class PopStateEvent extends Event native "*PopStateEvent" {
/** @domName PopStateEvent.state */
- final Object state;
+ dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state);
+ dynamic get _state => JS("dynamic", "#.state", this);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698