| 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 /** | 5 /** |
| 6 * Mock out the chrome.fileBrowserPrivate API for use in the harness. | 6 * Mock out the chrome.fileBrowserPrivate API for use in the harness. |
| 7 */ | 7 */ |
| 8 chrome.fileBrowserPrivate = { | 8 chrome.fileBrowserPrivate = { |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // extension_file_browser_private_api.cc! | 210 // extension_file_browser_private_api.cc! |
| 211 callback({ | 211 callback({ |
| 212 // These two are from locale_settings*.grd | 212 // These two are from locale_settings*.grd |
| 213 WEB_FONT_FAMILY: 'Chrome Droid Sans,Droid Sans Fallback,sans-serif', | 213 WEB_FONT_FAMILY: 'Chrome Droid Sans,Droid Sans Fallback,sans-serif', |
| 214 WEB_FONT_SIZE: '84%', | 214 WEB_FONT_SIZE: '84%', |
| 215 | 215 |
| 216 FILE_IS_DIRECTORY: 'Folder', | 216 FILE_IS_DIRECTORY: 'Folder', |
| 217 PARENT_DIRECTORY: 'Parent Directory', | 217 PARENT_DIRECTORY: 'Parent Directory', |
| 218 | 218 |
| 219 ROOT_DIRECTORY_LABEL: 'Files', | 219 ROOT_DIRECTORY_LABEL: 'Files', |
| 220 CHROMEBOOK_DIRECTORY_LABEL: 'Chromebook', | 220 DOWNLOADS_DIRECTORY_LABEL: 'File Shelf', |
| 221 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These
files are temporary and may be automatically deleted to free up disk space. <
;a href='javascript://'>Learn More</a>", | 221 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These
files are temporary and may be automatically deleted to free up disk space. <
;a href='javascript://'>Learn More</a>", |
| 222 MEDIA_DIRECTORY_LABEL: 'External Storage', | 222 MEDIA_DIRECTORY_LABEL: 'External Storage', |
| 223 NAME_COLUMN_LABEL: 'Name', | 223 NAME_COLUMN_LABEL: 'Name', |
| 224 SIZE_COLUMN_LABEL: 'Size', | 224 SIZE_COLUMN_LABEL: 'Size', |
| 225 TYPE_COLUMN_LABEL: 'Type', | 225 TYPE_COLUMN_LABEL: 'Type', |
| 226 DATE_COLUMN_LABEL: 'Date', | 226 DATE_COLUMN_LABEL: 'Date', |
| 227 PREVIEW_COLUMN_LABEL: 'Preview', | 227 PREVIEW_COLUMN_LABEL: 'Preview', |
| 228 | 228 |
| 229 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2', | 229 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2', |
| 230 ERROR_INVALID_CHARACTER: 'Invalid character: $1', | 230 ERROR_INVALID_CHARACTER: 'Invalid character: $1', |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 window.open(createOptions.url); | 395 window.open(createOptions.url); |
| 396 } | 396 } |
| 397 }; | 397 }; |
| 398 | 398 |
| 399 chrome.metricsPrivate = { | 399 chrome.metricsPrivate = { |
| 400 recordValue: function() {}, | 400 recordValue: function() {}, |
| 401 recordMediumCount: function() {}, | 401 recordMediumCount: function() {}, |
| 402 recordTime: function() {}, | 402 recordTime: function() {}, |
| 403 recordUserAction: function() {} | 403 recordUserAction: function() {} |
| 404 }; | 404 }; |
| OLD | NEW |