| OLD | NEW |
| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 iconUrl: emptyIcon | 150 iconUrl: emptyIcon |
| 151 }, | 151 }, |
| 152 { taskId: internalTaskPrefix + '|mount-archive', | 152 { taskId: internalTaskPrefix + '|mount-archive', |
| 153 title: 'Mount', | 153 title: 'Mount', |
| 154 regexp: /\.(rar|tar|tar.bz2|tar.gz|tbz|tbz2|tgz|zip)$/i, | 154 regexp: /\.(rar|tar|tar.bz2|tar.gz|tbz|tbz2|tgz|zip)$/i, |
| 155 iconUrl: emptyIcon | 155 iconUrl: emptyIcon |
| 156 }, | 156 }, |
| 157 { | 157 { |
| 158 taskId: internalTaskPrefix + '|gallery', | 158 taskId: internalTaskPrefix + '|gallery', |
| 159 title: 'View', | 159 title: 'View', |
| 160 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|
ogv|ogx|webm)$/i, | 160 regexp: new RegExp('\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|' + |
| 161 'mpeg4?|mpg4?|ogm|ogv|ogx|webm)$', 'i'), |
| 161 iconUrl: emptyIcon | 162 iconUrl: emptyIcon |
| 162 }, | 163 }, |
| 163 { | 164 { |
| 164 taskId: internalTaskPrefix + '|watch', | 165 taskId: internalTaskPrefix + '|watch', |
| 165 title: 'Watch', | 166 title: 'Watch', |
| 166 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i, | 167 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i, |
| 167 iconUrl: emptyIcon | 168 iconUrl: emptyIcon |
| 168 }, | 169 }, |
| 169 { | 170 { |
| 170 taskId: 'fake-extension-id|file|fake-item', | 171 taskId: 'fake-extension-id|file|fake-item', |
| 171 title: 'External action', | 172 title: 'External action', |
| 172 regexp: /\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|
ogv|ogx|webm)$/i, | 173 regexp: new RegExp('\.(bmp|gif|jpe?g|png|webp|3gp|avi|m4v|mov|mp4|' + |
| 174 'mpeg4?|mpg4?|ogm|ogv|ogx|webm)$', 'i'), |
| 173 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_GENERIC' | 175 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_GENERIC' |
| 174 }, | 176 }, |
| 175 { | 177 { |
| 176 taskId: 'fake-extension-id|file|upload', | 178 taskId: 'fake-extension-id|file|upload', |
| 177 title: 'Upload video', | 179 title: 'Upload video', |
| 178 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i, | 180 regexp: /\.(3gp|avi|m4v|mov|mp4|mpeg4?|mpg4?|ogm|ogv|ogx|webm)$/i, |
| 179 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_VIDEO' | 181 iconUrl: 'chrome://theme/IDR_FILE_MANAGER_IMG_FILETYPE_VIDEO' |
| 180 }, | 182 }, |
| 181 { | 183 { |
| 182 taskId: internalTaskPrefix + '|view-in-browser', | 184 taskId: internalTaskPrefix + '|view-in-browser', |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 FILE_IS_DIRECTORY: 'Folder', | 468 FILE_IS_DIRECTORY: 'Folder', |
| 467 | 469 |
| 468 CHROMEOS_RELEASE_BOARD: 'stumpy', | 470 CHROMEOS_RELEASE_BOARD: 'stumpy', |
| 469 | 471 |
| 470 DRIVE_DIRECTORY_LABEL: 'Google Drive', | 472 DRIVE_DIRECTORY_LABEL: 'Google Drive', |
| 471 ENABLE_DRIVE: true, | 473 ENABLE_DRIVE: true, |
| 472 PDF_VIEW_ENABLED: true, | 474 PDF_VIEW_ENABLED: true, |
| 473 | 475 |
| 474 ROOT_DIRECTORY_LABEL: 'Files', | 476 ROOT_DIRECTORY_LABEL: 'Files', |
| 475 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', | 477 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', |
| 476 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>", | 478 DOWNLOADS_DIRECTORY_WARNING: |
| 479 '<strong>Caution:</strong> These files are temporary ' + |
| 480 'and may be automatically deleted to free up disk space. ' + |
| 481 "<a href='javascript://'>Learn More</a>", |
| 477 NAME_COLUMN_LABEL: 'Name', | 482 NAME_COLUMN_LABEL: 'Name', |
| 478 SIZE_COLUMN_LABEL: 'Size', | 483 SIZE_COLUMN_LABEL: 'Size', |
| 479 SIZE_BYTES: '$ bytes', | 484 SIZE_BYTES: '$ bytes', |
| 480 SIZE_KB: '$ KB', | 485 SIZE_KB: '$ KB', |
| 481 SIZE_MB: '$ MB', | 486 SIZE_MB: '$ MB', |
| 482 SIZE_GB: '$ GB', | 487 SIZE_GB: '$ GB', |
| 483 SIZE_TB: '$ TB', | 488 SIZE_TB: '$ TB', |
| 484 SIZE_PB: '$ PB', | 489 SIZE_PB: '$ PB', |
| 485 TYPE_COLUMN_LABEL: 'Type', | 490 TYPE_COLUMN_LABEL: 'Type', |
| 486 DATE_COLUMN_LABEL: 'Date modified', | 491 DATE_COLUMN_LABEL: 'Date modified', |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 GALLERY_UNDO: 'Undo', | 546 GALLERY_UNDO: 'Undo', |
| 542 GALLERY_REDO: 'Redo', | 547 GALLERY_REDO: 'Redo', |
| 543 GALLERY_FILE_EXISTS: 'File already exists', | 548 GALLERY_FILE_EXISTS: 'File already exists', |
| 544 GALLERY_FILE_HIDDEN_NAME: 'Names starting with dot are reserved ' + | 549 GALLERY_FILE_HIDDEN_NAME: 'Names starting with dot are reserved ' + |
| 545 'for the system. Please choose another name.', | 550 'for the system. Please choose another name.', |
| 546 GALLERY_SAVED: 'Saved', | 551 GALLERY_SAVED: 'Saved', |
| 547 GALLERY_OVERWRITE_ORIGINAL: 'Overwrite original', | 552 GALLERY_OVERWRITE_ORIGINAL: 'Overwrite original', |
| 548 GALLERY_OVERWRITE_BUBBLE: 'Your edits are saved automatically.<br><br>' + | 553 GALLERY_OVERWRITE_BUBBLE: 'Your edits are saved automatically.<br><br>' + |
| 549 'To keep a copy of the original image, uncheck "Overwrite original"', | 554 'To keep a copy of the original image, uncheck "Overwrite original"', |
| 550 GALLERY_UNSAVED_CHANGES: 'Changes are not saved yet.', | 555 GALLERY_UNSAVED_CHANGES: 'Changes are not saved yet.', |
| 551 GALLERY_READONLY_WARNING: '$1 is read only. Edited images will be saved in
the Downloads folder.', | 556 GALLERY_READONLY_WARNING: '$1 is read only. Edited images will be ' + |
| 557 'saved in the Downloads folder.', |
| 552 GALLERY_IMAGE_ERROR: 'This file could not be displayed', | 558 GALLERY_IMAGE_ERROR: 'This file could not be displayed', |
| 553 GALLERY_IMAGE_TOO_BIG_ERROR: 'This file is too large to be opened.', | 559 GALLERY_IMAGE_TOO_BIG_ERROR: 'This file is too large to be opened.', |
| 554 GALLERY_VIDEO_ERROR: 'This file could not be played.', | 560 GALLERY_VIDEO_ERROR: 'This file could not be played.', |
| 555 GALLERY_VIDEO_DECODING_ERROR: 'An error occurred. Click to restart from th
e beginning.', | 561 GALLERY_VIDEO_DECODING_ERROR: |
| 562 'An error occurred. Click to restart from the beginning.', |
| 556 | 563 |
| 557 GALLERY_ITEMS_SELECTED: '$1 items selected', | 564 GALLERY_ITEMS_SELECTED: '$1 items selected', |
| 558 GALLERY_NO_IMAGES: 'No images in this directory.', | 565 GALLERY_NO_IMAGES: 'No images in this directory.', |
| 559 GALLERY_MOSAIC: 'Mosaic view', | 566 GALLERY_MOSAIC: 'Mosaic view', |
| 560 GALLERY_SLIDE: 'Slide view', | 567 GALLERY_SLIDE: 'Slide view', |
| 561 GALLERY_SLIDESHOW: 'Slideshow', | 568 GALLERY_SLIDESHOW: 'Slideshow', |
| 562 GALLERY_DELETE: 'Delete', | 569 GALLERY_DELETE: 'Delete', |
| 563 | 570 |
| 564 GALLERY_OK_LABEL: 'OK', | 571 GALLERY_OK_LABEL: 'OK', |
| 565 GALLERY_CANCEL_LABEL: 'Cancel', | 572 GALLERY_CANCEL_LABEL: 'Cancel', |
| 566 GALLERY_CONFIRM_DELETE_ONE: 'Are you sure you want to delete "$1"?', | 573 GALLERY_CONFIRM_DELETE_ONE: 'Are you sure you want to delete "$1"?', |
| 567 GALLERY_CONFIRM_DELETE_SOME: 'Are you sure you want to delete $1 items?', | 574 GALLERY_CONFIRM_DELETE_SOME: 'Are you sure you want to delete $1 items?', |
| 568 | 575 |
| 569 AUDIO_ERROR: 'This file could not be played', | 576 AUDIO_ERROR: 'This file could not be played', |
| 570 | 577 |
| 571 CONFIRM_OVERWRITE_FILE: 'A file named "$1" already exists. Do you want to
replace it?', | 578 CONFIRM_OVERWRITE_FILE: |
| 572 FILE_ALREADY_EXISTS: 'The file named "$1" already exists. Please choose a
different name.', | 579 'A file named "$1" already exists. Do you want to replace it?', |
| 573 DIRECTORY_ALREADY_EXISTS: 'The folder named "$1" already exists. Please ch
oose a different name.', | 580 FILE_ALREADY_EXISTS: |
| 581 'The file named "$1" already exists. Please choose a different name.', |
| 582 DIRECTORY_ALREADY_EXISTS: 'The folder named "$1" already exists. ' + |
| 583 'Please choose a different name.', |
| 574 ERROR_RENAMING: 'Unable to rename "$1". $2', | 584 ERROR_RENAMING: 'Unable to rename "$1". $2', |
| 575 RENAME_PROMPT: 'Enter a new name', | 585 RENAME_PROMPT: 'Enter a new name', |
| 576 RENAME_BUTTON_LABEL: 'Rename', | 586 RENAME_BUTTON_LABEL: 'Rename', |
| 577 | 587 |
| 578 ERROR_DELETING: 'Unable to delete "$1". $2', | 588 ERROR_DELETING: 'Unable to delete "$1". $2', |
| 579 DELETE_BUTTON_LABEL: 'Delete', | 589 DELETE_BUTTON_LABEL: 'Delete', |
| 580 | 590 |
| 581 PASTE_BUTTON_LABEL: 'Paste', | 591 PASTE_BUTTON_LABEL: 'Paste', |
| 582 | 592 |
| 583 COPY_BUTTON_LABEL: 'Copy', | 593 COPY_BUTTON_LABEL: 'Copy', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 607 DRIVE_RETRY: 'Retry', | 617 DRIVE_RETRY: 'Retry', |
| 608 DRIVE_LEARN_MORE: 'Learn more', | 618 DRIVE_LEARN_MORE: 'Learn more', |
| 609 DRIVE_CANNOT_REACH: '$1 cannot be reached at this time', | 619 DRIVE_CANNOT_REACH: '$1 cannot be reached at this time', |
| 610 | 620 |
| 611 DRIVE_WELCOME_TITLE: 'Welcome to Google Drive!', | 621 DRIVE_WELCOME_TITLE: 'Welcome to Google Drive!', |
| 612 DRIVE_WELCOME_TITLE_ALTERNATIVE: 'Get 100 GB free with Google Drive', | 622 DRIVE_WELCOME_TITLE_ALTERNATIVE: 'Get 100 GB free with Google Drive', |
| 613 DRIVE_WELCOME_TEXT_SHORT: | 623 DRIVE_WELCOME_TEXT_SHORT: |
| 614 'All files saved in this folder are backed up online automatically', | 624 'All files saved in this folder are backed up online automatically', |
| 615 DRIVE_WELCOME_TEXT_LONG: | 625 DRIVE_WELCOME_TEXT_LONG: |
| 616 '<p><strong>Access files from everywhere, even offline.</strong> ' + | 626 '<p><strong>Access files from everywhere, even offline.</strong> ' + |
| 617 'Files in Google Drive are up-to-date and available from any device.</
p>' + | 627 'Files in Google Drive are up-to-date and available from any ' + |
| 628 'device.</p>' + |
| 618 '<p><strong>Keep your files safe.</strong> ' + | 629 '<p><strong>Keep your files safe.</strong> ' + |
| 619 'No matter what happens to your device, your files are ' + | 630 'No matter what happens to your device, your files are ' + |
| 620 'safely stored in Google Drive .</p>' + | 631 'safely stored in Google Drive .</p>' + |
| 621 '<p><strong>Share, create and collaborate</strong> ' + | 632 '<p><strong>Share, create and collaborate</strong> ' + |
| 622 'on files with others all in one place .</p>', | 633 'on files with others all in one place .</p>', |
| 623 DRIVE_WELCOME_CHECK_ELIGIBILITY: 'Check eligibility', | 634 DRIVE_WELCOME_CHECK_ELIGIBILITY: 'Check eligibility', |
| 624 DRIVE_WELCOME_DISMISS: 'Dismiss', | 635 DRIVE_WELCOME_DISMISS: 'Dismiss', |
| 625 DRIVE_LOADING_PROGRESS: '$1 files fetched', | 636 DRIVE_LOADING_PROGRESS: '$1 files fetched', |
| 626 | 637 |
| 627 OFFLINE_HEADER: 'You are offline', | 638 OFFLINE_HEADER: 'You are offline', |
| 628 OFFLINE_MESSAGE: 'To save this file for offline use, get back online and<b
r>select the \'$1\' checkbox for this file.', | 639 OFFLINE_MESSAGE: 'To save this file for offline use, get back online ' + |
| 629 OFFLINE_MESSAGE_PLURAL: 'To save these files for offline use, get back onl
ine and<br>select the \'$1\' checkbox for this file.', | 640 'and<br>select the \'$1\' checkbox for this file.', |
| 641 OFFLINE_MESSAGE_PLURAL: 'To save these files for offline use, get back ' + |
| 642 'online and<br>select the \'$1\' checkbox for this file.', |
| 630 HOSTED_OFFLINE_MESSAGE: 'You must be online to access this file.', | 643 HOSTED_OFFLINE_MESSAGE: 'You must be online to access this file.', |
| 631 HOSTED_OFFLINE_MESSAGE_PLURAL: 'You must be online to access these files.'
, | 644 HOSTED_OFFLINE_MESSAGE_PLURAL: |
| 645 'You must be online to access these files.', |
| 632 | 646 |
| 633 CONFIRM_MOBILE_DATA_USE: 'Fetching this file will use approximately $1 of
mobile data.', | 647 CONFIRM_MOBILE_DATA_USE: |
| 634 CONFIRM_MOBILE_DATA_USE_PLURAL: 'Fetching these files will use approximate
ly $1 of mobile data.', | 648 'Fetching this file will use approximately $1 of mobile data.', |
| 649 CONFIRM_MOBILE_DATA_USE_PLURAL: |
| 650 'Fetching these files will use approximately $1 of mobile data.', |
| 635 | 651 |
| 636 GDOC_DOCUMENT_FILE_TYPE: 'Google document', | 652 GDOC_DOCUMENT_FILE_TYPE: 'Google document', |
| 637 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', | 653 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', |
| 638 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', | 654 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', |
| 639 | 655 |
| 640 TRANSFER_ITEMS_REMAINING: 'Transferring $1 items', | 656 TRANSFER_ITEMS_REMAINING: 'Transferring $1 items', |
| 641 TRANSFER_CANCELLED: 'Transfer cancelled.', | 657 TRANSFER_CANCELLED: 'Transfer cancelled.', |
| 642 TRANSFER_TARGET_EXISTS_ERROR: 'Transfer failed, item exists: "$1"', | 658 TRANSFER_TARGET_EXISTS_ERROR: 'Transfer failed, item exists: "$1"', |
| 643 TRANSFER_FILESYSTEM_ERROR: 'Transfer failed. $1', | 659 TRANSFER_FILESYSTEM_ERROR: 'Transfer failed. $1', |
| 644 TRANSFER_UNEXPECTED_ERROR: 'Transfer failed, unexpected error: $1', | 660 TRANSFER_UNEXPECTED_ERROR: 'Transfer failed, unexpected error: $1', |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 playAudio: function(urls, position) { | 890 playAudio: function(urls, position) { |
| 875 this.audioPlaylist_ = { items: urls, position: position }; | 891 this.audioPlaylist_ = { items: urls, position: position }; |
| 876 this.onPlaylistChanged.notify(); | 892 this.onPlaylistChanged.notify(); |
| 877 }, | 893 }, |
| 878 | 894 |
| 879 playVideo: function(url) { | 895 playVideo: function(url) { |
| 880 this.videoUrl_ = url; | 896 this.videoUrl_ = url; |
| 881 this.onVideoLaunched.notify(); | 897 this.onVideoLaunched.notify(); |
| 882 } | 898 } |
| 883 }; | 899 }; |
| OLD | NEW |