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

Side by Side Diff: chrome/browser/resources/media_common.js

Issue 2758004: Adding support for .txt files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function pathIsVideoFile(path) { 5 function pathIsVideoFile(path) {
6 return /\.(mp4|ogg|mpg|avi|mov)$/i.test(path); 6 return /\.(mp4|ogg|mpg|avi|mov)$/i.test(path);
7 } 7 }
8 8
9 function pathIsAudioFile(path) { 9 function pathIsAudioFile(path) {
10 return /\.(mp3|m4a)$/i.test(path); 10 return /\.(mp3|m4a|wav)$/i.test(path);
11 } 11 }
12 12
13 function pathIsImageFile(path) { 13 function pathIsImageFile(path) {
14 return /\.(jpg|png|gif)$/i.test(path); 14 return /\.(jpg|png|gif)$/i.test(path);
15 } 15 }
16 16
17 function pathIsHtmlFile(path) { 17 function pathIsHtmlFile(path) {
18 return /\.(htm|html)$/i.test(path); 18 return /\.(htm|html|txt)$/i.test(path);
19 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/platform_util_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698