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

Unified Diff: lib/compiler/implementation/lib/web.dartp

Issue 10689036: First step towards having patch files for generic libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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/compiler/implementation/lib/web.dartp
diff --git a/lib/html/doc/nodoc-src/_MediaStreamFactoryProvider.dart b/lib/compiler/implementation/lib/web.dartp
similarity index 50%
copy from lib/html/doc/nodoc-src/_MediaStreamFactoryProvider.dart
copy to lib/compiler/implementation/lib/web.dartp
index c1b61f33fbae803e18e78529a621c78be195df36..c3ba2ad9622b0b90ada24d19f384dfc46e14eba9 100644
--- a/lib/html/doc/nodoc-src/_MediaStreamFactoryProvider.dart
+++ b/lib/compiler/implementation/lib/web.dartp
@@ -2,6 +2,12 @@
// 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.
Johnni Winther 2012/06/29 09:34:43 What does the new content have to do with the old
Lasse Reichstein Nielsen 2012/06/29 12:01:35 Again, there is no prior content, just git being a
-class _MediaStreamFactoryProvider {
- factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks) => null;
+// Patch file for dart:web
+
+/*patch*/ String htmlEscape(String text) {
+ return text.replaceAll("&", "&")
+ .replaceAll("<", "&lt;")
+ .replaceAll(">", "&gt;")
+ .replaceAll('"', "&quot;")
+ .replaceAll("'", "&apos;"); // Different from original.
}

Powered by Google App Engine
This is Rietveld 408576698