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

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: Address review comments. 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
« no previous file with comments | « lib/compiler/implementation/lib/web.dart ('k') | lib/compiler/implementation/library_map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
-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.
}
« no previous file with comments | « lib/compiler/implementation/lib/web.dart ('k') | lib/compiler/implementation/library_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698