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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 EJECT_BUTTON: 'Eject', | 219 EJECT_BUTTON: 'Eject', |
220 IMAGE_DIMENSIONS: 'Image Dimensions', | 220 IMAGE_DIMENSIONS: 'Image Dimensions', |
221 VOLUME_LABEL: 'Volume Label', | 221 VOLUME_LABEL: 'Volume Label', |
222 READ_ONLY: 'Read Only', | 222 READ_ONLY: 'Read Only', |
223 | 223 |
224 MOUNT_ARCHIVE: 'Open archive', | 224 MOUNT_ARCHIVE: 'Open archive', |
225 UNMOUNT_ARCHIVE: 'Close archive', | 225 UNMOUNT_ARCHIVE: 'Close archive', |
226 FORMAT_DEVICE: 'Format device', | 226 FORMAT_DEVICE: 'Format device', |
227 | 227 |
| 228 GALLERY: 'Gallery', |
| 229 |
228 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', | 230 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', |
229 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', | 231 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', |
230 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', | 232 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', |
231 ERROR_RENAMING: 'Unable to rename "$1": $2', | 233 ERROR_RENAMING: 'Unable to rename "$1": $2', |
232 RENAME_PROMPT: 'Enter a new name', | 234 RENAME_PROMPT: 'Enter a new name', |
233 RENAME_BUTTON_LABEL: 'Rename', | 235 RENAME_BUTTON_LABEL: 'Rename', |
234 | 236 |
235 ERROR_DELETING: 'Unable to delete "$1": $2', | 237 ERROR_DELETING: 'Unable to delete "$1": $2', |
236 DELETE_BUTTON_LABEL: 'Delete', | 238 DELETE_BUTTON_LABEL: 'Delete', |
237 | 239 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 chrome.fileBrowserHandler.onExecute.listeners_.push(listener); | 348 chrome.fileBrowserHandler.onExecute.listeners_.push(listener); |
347 } | 349 } |
348 } | 350 } |
349 }; | 351 }; |
350 | 352 |
351 chrome.tabs = { | 353 chrome.tabs = { |
352 create: function(createOptions) { | 354 create: function(createOptions) { |
353 window.open(createOptions.url); | 355 window.open(createOptions.url); |
354 } | 356 } |
355 }; | 357 }; |
OLD | NEW |