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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 GALLERY_FIXED: 'Fixed', | 255 GALLERY_FIXED: 'Fixed', |
256 GALLERY_CROP: 'Crop', | 256 GALLERY_CROP: 'Crop', |
257 GALLERY_EXPOSURE: 'Brightness', | 257 GALLERY_EXPOSURE: 'Brightness', |
258 GALLERY_BRIGHTNESS: 'Brightness', | 258 GALLERY_BRIGHTNESS: 'Brightness', |
259 GALLERY_CONTRAST: 'Contrast', | 259 GALLERY_CONTRAST: 'Contrast', |
260 GALLERY_ROTATE_LEFT: 'Left', | 260 GALLERY_ROTATE_LEFT: 'Left', |
261 GALLERY_ROTATE_RIGHT: 'Right', | 261 GALLERY_ROTATE_RIGHT: 'Right', |
262 GALLERY_ENTER_WHEN_DONE: 'Press Enter when done', | 262 GALLERY_ENTER_WHEN_DONE: 'Press Enter when done', |
263 GALLERY_UNDO: 'Undo', | 263 GALLERY_UNDO: 'Undo', |
264 GALLERY_REDO: 'Redo', | 264 GALLERY_REDO: 'Redo', |
| 265 GALLERY_FILE_EXISTS: 'File already exists', |
265 | 266 |
266 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', | 267 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', |
267 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', | 268 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', |
268 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', | 269 DIRECTORY_ALREADY_EXISTS: 'The directory named "$1" already exists. Please
choose a different name.', |
269 ERROR_RENAMING: 'Unable to rename "$1": $2', | 270 ERROR_RENAMING: 'Unable to rename "$1": $2', |
270 RENAME_PROMPT: 'Enter a new name', | 271 RENAME_PROMPT: 'Enter a new name', |
271 RENAME_BUTTON_LABEL: 'Rename', | 272 RENAME_BUTTON_LABEL: 'Rename', |
272 | 273 |
273 ERROR_DELETING: 'Unable to delete "$1": $2', | 274 ERROR_DELETING: 'Unable to delete "$1": $2', |
274 DELETE_BUTTON_LABEL: 'Delete', | 275 DELETE_BUTTON_LABEL: 'Delete', |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 window.open(createOptions.url); | 395 window.open(createOptions.url); |
395 } | 396 } |
396 }; | 397 }; |
397 | 398 |
398 chrome.metricsPrivate = { | 399 chrome.metricsPrivate = { |
399 recordValue: function() {}, | 400 recordValue: function() {}, |
400 recordMediumCount: function() {}, | 401 recordMediumCount: function() {}, |
401 recordTime: function() {}, | 402 recordTime: function() {}, |
402 recordUserAction: function() {} | 403 recordUserAction: function() {} |
403 }; | 404 }; |
OLD | NEW |