| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // WK Bug 55728 is fixed on the chrome 12 branch but not on the trunk. | 5 // WK Bug 55728 is fixed on the chrome 12 branch but not on the trunk. | 
| 6 // TODO(rginda): Enable this everywhere once we have a trunk-worthy fix. | 6 // TODO(rginda): Enable this everywhere once we have a trunk-worthy fix. | 
| 7 const ENABLE_METADATA = true; | 7 const ENABLE_METADATA = true; | 
| 8 | 8 | 
| 9 // Thumbnail view is painful without the exif reader. | 9 // Thumbnail view is painful without the exif reader. | 
| 10 const ENABLE_THUMBNAIL_VIEW = ENABLE_METADATA; | 10 const ENABLE_THUMBNAIL_VIEW = ENABLE_METADATA; | 
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 146    * The first regexp to match the file name determines the icon type | 146    * The first regexp to match the file name determines the icon type | 
| 147    * assigned to dom elements for a file.  Order of evaluation is not | 147    * assigned to dom elements for a file.  Order of evaluation is not | 
| 148    * defined, so don't depend on it. | 148    * defined, so don't depend on it. | 
| 149    */ | 149    */ | 
| 150   const iconTypes = { | 150   const iconTypes = { | 
| 151     'audio': /\.(mp3|m4a|oga|ogg|wav)$/i, | 151     'audio': /\.(mp3|m4a|oga|ogg|wav)$/i, | 
| 152     'html': /\.(html?)$/i, | 152     'html': /\.(html?)$/i, | 
| 153     'image': /\.(bmp|gif|jpe?g|ico|png|webp)$/i, | 153     'image': /\.(bmp|gif|jpe?g|ico|png|webp)$/i, | 
| 154     'pdf' : /\.(pdf)$/i, | 154     'pdf' : /\.(pdf)$/i, | 
| 155     'text': /\.(pod|rst|txt|log)$/i, | 155     'text': /\.(pod|rst|txt|log)$/i, | 
| 156     'video': /\.(mov|mp4|m4v|mpe?g4?|ogm|ogv|ogx|webm)$/i | 156     'video': /\.(avi|mov|mp4|m4v|mpe?g4?|ogm|ogv|ogx|webm)$/i | 
| 157   }; | 157   }; | 
| 158 | 158 | 
| 159   const previewArt = { | 159   const previewArt = { | 
| 160     'audio': 'images/filetype_large_audio.png', | 160     'audio': 'images/filetype_large_audio.png', | 
| 161     'folder': 'images/filetype_large_folder.png', | 161     'folder': 'images/filetype_large_folder.png', | 
| 162     'unknown': 'images/filetype_large_generic.png', | 162     'unknown': 'images/filetype_large_generic.png', | 
| 163     'video': 'images/filetype_large_video.png' | 163     'video': 'images/filetype_large_video.png' | 
| 164   }; | 164   }; | 
| 165 | 165 | 
| 166   /** | 166   /** | 
| (...skipping 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2296       window.alert(strf(msgId, testResult[0])); | 2296       window.alert(strf(msgId, testResult[0])); | 
| 2297       return false; | 2297       return false; | 
| 2298     } | 2298     } | 
| 2299     if (/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i.test(name)) { | 2299     if (/^(CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])$/i.test(name)) { | 
| 2300       window.alert(str('ERROR_RESERVED_NAME')); | 2300       window.alert(str('ERROR_RESERVED_NAME')); | 
| 2301       return false; | 2301       return false; | 
| 2302     } | 2302     } | 
| 2303     return true; | 2303     return true; | 
| 2304   }; | 2304   }; | 
| 2305 })(); | 2305 })(); | 
| OLD | NEW | 
|---|