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

Unified Diff: tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate

Issue 1126463005: Clean up WheelEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes" Created 5 years, 7 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: tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
index 5db4acd77a5570b695af03069812bda25a2eaf45..83b13b20c84a6b89e45a04cfee3fb6b960a01d25 100644
--- a/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
+++ b/tools/dom/templates/html/impl/impl_CompositionEvent.darttemplate
@@ -9,13 +9,26 @@ part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
factory $CLASSNAME(String type,
{bool canBubble: false, bool cancelable: false, Window view,
- String data}) {
+ String data, String locale}) {
if (view == null) {
view = window;
}
var e = document._createEvent("CompositionEvent");
- e._initCompositionEvent(type, canBubble, cancelable, view, data);
+
+$if DART2JS
+ if (Device.isFirefox) {
+ // Firefox requires the locale parameter that isn't supported elsewhere.
+ JS('void', '#.initCompositionEvent(#, #, #, #, #, #)',
+ e, type, canBubble, cancelable, view, data, locale);
+ } else {
+ e._initCompositionEvent(type, canBubble, cancelable, view, data);
+ }
+$else
+ e._initCompositionEvent(type, canBubble, cancelable, view, data);
+$endif
+
return e;
}
+
$!MEMBERS
}

Powered by Google App Engine
This is Rietveld 408576698