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

Unified Diff: chrome/browser/resources/shared/js/media_common.js

Issue 11962043: Move webui resources from chrome\browser\resources\shared to ui\webui\resources. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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: chrome/browser/resources/shared/js/media_common.js
===================================================================
--- chrome/browser/resources/shared/js/media_common.js (revision 177292)
+++ chrome/browser/resources/shared/js/media_common.js (working copy)
@@ -1,23 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-function pathIsVideoFile(path) {
- return /\.(3gp|asf|avi|di?vx|f4v|fbr|mov|mp4|m4v|mpe?g4?|ogm|ogv|ogx|webm|wmv?|xvid)$/i.test(path);
-}
-
-function pathIsAudioFile(path) {
- return /\.(aac|aiff|atrac|cda|flac|m4a|mp3|pcm|oga|ogg|raw|wav)$/i.test(path);
-}
-
-function pathIsImageFile(path) {
- return /\.(bmp|gif|jpe?g|ico|png|webp)$/i.test(path);
-}
-
-function pathIsHtmlFile(path) {
- return /\.(htm|html|txt)$/i.test(path);
-}
-
-function pathIsPdfFile(path) {
- return /\.(pdf)$/i.test(path);
-}
« no previous file with comments | « chrome/browser/resources/shared/js/local_strings_test.html ('k') | chrome/browser/resources/shared/js/parse_html_subset.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698