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

Unified Diff: lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate

Issue 10915245: Removing interfaces from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Further fixes to dartium. Created 8 years, 3 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: lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
diff --git a/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate b/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
index fe8c60f7d678e164a605ee368cc8c9ee0430a1c6..b69ac65b3605c76a0dfe0fe3b460308475a9f134 100644
--- a/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
+++ b/lib/html/templates/html/dart2js/factoryprovider_TextTrackCue.darttemplate
@@ -3,12 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
class $FACTORYPROVIDER {
- factory TextTrackCue(String id, num startTime, num endTime, String text,
- [String settings, bool pauseOnExit]) native '''
- if (settings == null)
- return new TextTrackCue(id, startTime, endTime, text);
- if (pauseOnExit == null)
- return new TextTrackCue(id, startTime, endTime, text, settings);
- return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
- ''';
+ static TextTrackCue createTextTrackCue(
+ String id, num startTime, num endTime, String text,
+ [String settings, bool pauseOnExit])
+ native '''
+ if (settings == null)
+ return new TextTrackCue(id, startTime, endTime, text);
+ if (pauseOnExit == null)
+ return new TextTrackCue(id, startTime, endTime, text, settings);
+ return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
+ ''';
}

Powered by Google App Engine
This is Rietveld 408576698