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

Side by Side 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, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
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
5 class _MediaStreamFactoryProvider { 5 // Patch file for dart:web
6 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) => null; 6
7 /*patch*/ String htmlEscape(String text) {
8 return text.replaceAll("&", "&")
9 .replaceAll("<", "&lt;")
10 .replaceAll(">", "&gt;")
11 .replaceAll('"', "&quot;")
12 .replaceAll("'", "&apos;"); // Different from original.
7 } 13 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698