| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 DIMENSIONS_LABEL: 'Dimensions', | 214 DIMENSIONS_LABEL: 'Dimensions', |
| 215 DIMENSIONS_FORMAT: '$1 x $2', | 215 DIMENSIONS_FORMAT: '$1 x $2', |
| 216 | 216 |
| 217 EJECT_BUTTON: 'Eject', | 217 EJECT_BUTTON: 'Eject', |
| 218 IMAGE_DIMENSIONS: 'Image Dimensions', | 218 IMAGE_DIMENSIONS: 'Image Dimensions', |
| 219 VOLUME_LABEL: 'Volume Label', | 219 VOLUME_LABEL: 'Volume Label', |
| 220 READ_ONLY: 'Read Only', | 220 READ_ONLY: 'Read Only', |
| 221 | 221 |
| 222 MOUNT_ARCHIVE: 'Open archive', | 222 MOUNT_ARCHIVE: 'Open archive', |
| 223 UNMOUNT_ARCHIVE: 'Close archive', | 223 UNMOUNT_ARCHIVE: 'Close archive', |
| 224 FORMAT_DEVICE: 'Format device', |
| 224 | 225 |
| 225 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', | 226 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', |
| 226 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', | 227 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', |
| 227 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', | 228 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', |
| 228 ERROR_RENAMING: 'Unable to rename "$1": $2', | 229 ERROR_RENAMING: 'Unable to rename "$1": $2', |
| 229 RENAME_PROMPT: 'Enter a new name', | 230 RENAME_PROMPT: 'Enter a new name', |
| 230 RENAME_BUTTON_LABEL: 'Rename', | 231 RENAME_BUTTON_LABEL: 'Rename', |
| 231 | 232 |
| 232 ERROR_DELETING: 'Unable to delete "$1": $2', | 233 ERROR_DELETING: 'Unable to delete "$1": $2', |
| 233 DELETE_BUTTON_LABEL: 'Delete', | 234 DELETE_BUTTON_LABEL: 'Delete', |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 }; | 331 }; |
| 331 | 332 |
| 332 chrome.fileBrowserHandler = { | 333 chrome.fileBrowserHandler = { |
| 333 onExecute: { | 334 onExecute: { |
| 334 listeners_: [], | 335 listeners_: [], |
| 335 addListener: function(listener) { | 336 addListener: function(listener) { |
| 336 chrome.fileBrowserHandler.onExecute.listeners_.push(listener); | 337 chrome.fileBrowserHandler.onExecute.listeners_.push(listener); |
| 337 } | 338 } |
| 338 } | 339 } |
| 339 }; | 340 }; |
| OLD | NEW |