Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10829421: First cut of the updated Photo Editor UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 function MockEventSource() { 5 function MockEventSource() {
6 this.listeners_ = []; 6 this.listeners_ = [];
7 } 7 }
8 8
9 /** 9 /**
10 * Add a listener. 10 * Add a listener.
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // extension_file_browser_private_api.cc! 443 // extension_file_browser_private_api.cc!
444 setTimeout(callback, 0, { 444 setTimeout(callback, 0, {
445 // These two are from locale_settings*.grd 445 // These two are from locale_settings*.grd
446 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' + 446 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' +
447 'Droid Sans Fallback,sans-serif', 447 'Droid Sans Fallback,sans-serif',
448 WEB_FONT_SIZE: '84%', 448 WEB_FONT_SIZE: '84%',
449 449
450 FILE_IS_DIRECTORY: 'Folder', 450 FILE_IS_DIRECTORY: 'Folder',
451 451
452 CHROMEOS_RELEASE_BOARD: 'stumpy', 452 CHROMEOS_RELEASE_BOARD: 'stumpy',
453 BROWSER_VERSION_MODIFIER: '',
453 454
454 GDATA_DIRECTORY_LABEL: 'Google Drive', 455 GDATA_DIRECTORY_LABEL: 'Google Drive',
455 ENABLE_GDATA: true, 456 ENABLE_GDATA: true,
456 PDF_VIEW_ENABLED: true, 457 PDF_VIEW_ENABLED: true,
457 458
458 ROOT_DIRECTORY_LABEL: 'Files', 459 ROOT_DIRECTORY_LABEL: 'Files',
459 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', 460 DOWNLOADS_DIRECTORY_LABEL: 'Downloads',
460 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These files are temporary and may be automatically deleted to free up disk space. &lt ;a href='javascript://'>Learn More</a>", 461 DOWNLOADS_DIRECTORY_WARNING: "<strong>Caution:</strong> These files are temporary and may be automatically deleted to free up disk space. &lt ;a href='javascript://'>Learn More</a>",
461 NAME_COLUMN_LABEL: 'Name', 462 NAME_COLUMN_LABEL: 'Name',
462 SIZE_COLUMN_LABEL: 'Size', 463 SIZE_COLUMN_LABEL: 'Size',
(...skipping 20 matching lines...) Expand all
483 484
484 EJECT_BUTTON: 'Eject', 485 EJECT_BUTTON: 'Eject',
485 IMAGE_DIMENSIONS: 'Image Dimensions', 486 IMAGE_DIMENSIONS: 'Image Dimensions',
486 VOLUME_LABEL: 'Volume Label', 487 VOLUME_LABEL: 'Volume Label',
487 READ_ONLY: 'Read Only', 488 READ_ONLY: 'Read Only',
488 489
489 PLAY_MEDIA: 'Play', 490 PLAY_MEDIA: 'Play',
490 491
491 MOUNT_ARCHIVE: 'Open', 492 MOUNT_ARCHIVE: 'Open',
492 FORMAT_DEVICE: 'Format device', 493 FORMAT_DEVICE: 'Format device',
494 IMPORT_PHOTOS_BUTTON_LABEL: 'Import photos',
493 495
494 ACTION_VIEW: 'View', 496 ACTION_VIEW: 'View',
495 ACTION_OPEN: 'Open', 497 ACTION_OPEN: 'Open',
496 ACTION_WATCH: 'Watch', 498 ACTION_WATCH: 'Watch',
497 ACTION_LISTEN: 'Listen', 499 ACTION_LISTEN: 'Listen',
498 INSTALL_CRX: 'Open', 500 INSTALL_CRX: 'Open',
499 501
500 CHANGE_DEFAULT_MENU_ITEM: 'Change default...', 502 CHANGE_DEFAULT_MENU_ITEM: 'Change default...',
501 CHANGE_DEFAULT_CAPTION: 'Choose the default app for $1 files:', 503 CHANGE_DEFAULT_CAPTION: 'Choose the default app for $1 files:',
502 504
(...skipping 14 matching lines...) Expand all
517 GALLERY_FILE_HIDDEN_NAME: 'Names starting with dot are reserved ' + 519 GALLERY_FILE_HIDDEN_NAME: 'Names starting with dot are reserved ' +
518 'for the system. Please choose another name.', 520 'for the system. Please choose another name.',
519 GALLERY_SAVED: 'Saved', 521 GALLERY_SAVED: 'Saved',
520 GALLERY_OVERWRITE_ORIGINAL: 'Overwrite original', 522 GALLERY_OVERWRITE_ORIGINAL: 'Overwrite original',
521 GALLERY_OVERWRITE_BUBBLE: 'Your edits are saved automatically.<br><br>' + 523 GALLERY_OVERWRITE_BUBBLE: 'Your edits are saved automatically.<br><br>' +
522 'To keep a copy of the original image, uncheck "Overwrite original"', 524 'To keep a copy of the original image, uncheck "Overwrite original"',
523 GALLERY_UNSAVED_CHANGES: 'Changes are not saved yet.', 525 GALLERY_UNSAVED_CHANGES: 'Changes are not saved yet.',
524 GALLERY_READONLY_WARNING: '$1 is read only. Edited images will be saved in the Downloads folder.', 526 GALLERY_READONLY_WARNING: '$1 is read only. Edited images will be saved in the Downloads folder.',
525 GALLERY_IMAGE_ERROR: 'This file could not be displayed', 527 GALLERY_IMAGE_ERROR: 'This file could not be displayed',
526 GALLERY_VIDEO_ERROR: 'This file could not be played', 528 GALLERY_VIDEO_ERROR: 'This file could not be played',
529
530 GALLERY_ITEMS_SELECTED: '$1 items selected',
531 GALLERY_NO_IMAGES: 'No images in this directory.',
532 GALLERY_MOSAIC: 'Mosaic view',
533 GALLERY_SLIDE: 'Slide view',
534 GALLERY_SLIDESHOW: 'Slide show',
535 GALLERY_DELETE: 'Delete',
536
527 AUDIO_ERROR: 'This file could not be played', 537 AUDIO_ERROR: 'This file could not be played',
528 538
529 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to replace it?', 539 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to replace it?',
530 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a different name.', 540 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a different name.',
531 DIRECTORY_ALREADY_EXISTS: 'The folder named "$1" already exists. Please ch oose a different name.', 541 DIRECTORY_ALREADY_EXISTS: 'The folder named "$1" already exists. Please ch oose a different name.',
532 ERROR_RENAMING: 'Unable to rename "$1". $2', 542 ERROR_RENAMING: 'Unable to rename "$1". $2',
533 RENAME_PROMPT: 'Enter a new name', 543 RENAME_PROMPT: 'Enter a new name',
534 RENAME_BUTTON_LABEL: 'Rename', 544 RENAME_BUTTON_LABEL: 'Rename',
535 545
536 ERROR_DELETING: 'Unable to delete "$1". $2', 546 ERROR_DELETING: 'Unable to delete "$1". $2',
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 832
823 setWindowHeight: function(height) { 833 setWindowHeight: function(height) {
824 this.popup_.style.height = height + 'px'; 834 this.popup_.style.height = height + 'px';
825 }, 835 },
826 836
827 closeWindow: function() { 837 closeWindow: function() {
828 this.popup_.parentNode.removeChild(this.popup_); 838 this.popup_.parentNode.removeChild(this.popup_);
829 this.popup_ = null; 839 this.popup_ = null;
830 } 840 }
831 }; 841 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698