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

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

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: client/html/src/StorageEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_StorageEventWrappingImplementation.dart b/client/html/src/StorageEventWrappingImplementation.dart
similarity index 60%
rename from client/html/generated/src/wrapping/_StorageEventWrappingImplementation.dart
rename to client/html/src/StorageEventWrappingImplementation.dart
index 4355439208a1dd632eaf608528de81a9257b8cf2..193ab138fb4749831a248a9688820ef560860198 100644
--- a/client/html/generated/src/wrapping/_StorageEventWrappingImplementation.dart
+++ b/client/html/src/StorageEventWrappingImplementation.dart
@@ -2,11 +2,19 @@
// 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 StorageEventWrappingImplementation extends EventWrappingImplementation implements StorageEvent {
StorageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory StorageEventWrappingImplementation(String type, String key,
+ String url, Storage storageArea, [bool canBubble = false,
+ bool cancelable = false, String oldValue = null,
+ String newValue = null]) {
+ var e = dom.document.createEvent("StorageEvent");
+ e.initStorageEvent(type, canBubble, cancelable, key, oldValue, newValue,
+ url, LevelDom.unwrap(storageArea));
+ return LevelDom.wrapStorageEvent(e);
+ }
+
String get key() { return _ptr.key; }
String get newValue() { return _ptr.newValue; }
@@ -16,9 +24,4 @@ class StorageEventWrappingImplementation extends EventWrappingImplementation imp
Storage get storageArea() { return LevelDom.wrapStorage(_ptr.storageArea); }
String get url() { return _ptr.url; }
-
- void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storage storageAreaArg) {
- _ptr.initStorageEvent(typeArg, canBubbleArg, cancelableArg, keyArg, oldValueArg, newValueArg, urlArg, LevelDom.unwrap(storageAreaArg));
- return;
- }
}

Powered by Google App Engine
This is Rietveld 408576698