Chromium Code Reviews| Index: client/html/src/BeforeLoadEventWrappingImplementation.dart |
| diff --git a/client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart b/client/html/src/BeforeLoadEventWrappingImplementation.dart |
| similarity index 60% |
| rename from client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart |
| rename to client/html/src/BeforeLoadEventWrappingImplementation.dart |
| index 9b59d901e3bfb074236cc91b732c801bccaca449..4559cbe75abe528140ab22d988c135125a5d6846 100644 |
| --- a/client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart |
| +++ b/client/html/src/BeforeLoadEventWrappingImplementation.dart |
| @@ -2,15 +2,15 @@ |
| // 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. |
| -// WARNING: Do not edit - generated code. |
| - |
| class BeforeLoadEventWrappingImplementation extends EventWrappingImplementation implements BeforeLoadEvent { |
| BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| - String get url() { return _ptr.url; } |
| - |
| - void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) { |
| - _ptr.initBeforeLoadEvent(type, canBubble, cancelable, url); |
| - return; |
| + factory BeforeLoadEventWrappingImplementation(String type, String url, |
|
Jacob
2011/10/27 21:23:05
I like that canBubble and cancelable are now alway
nweiz
2011/10/27 22:23:54
Well, they aren't, strictly; they're after all the
|
| + [bool canBubble = false, bool cancelable = false]) { |
| + var e = dom.document.createEvent("BeforeLoadEvent"); |
| + e.initBeforeLoadEvent(type, canBubble, cancelable, url); |
| + return LevelDom.wrapBeforeLoadEvent(e); |
| } |
| + |
| + String get url() { return _ptr.url; } |
| } |