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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 HOSTED_OFFLINE_MESSAGE: 'You must be online to access this file.', | 576 HOSTED_OFFLINE_MESSAGE: 'You must be online to access this file.', |
577 HOSTED_OFFLINE_MESSAGE_PLURAL: 'You must be online to access these files.'
, | 577 HOSTED_OFFLINE_MESSAGE_PLURAL: 'You must be online to access these files.'
, |
578 | 578 |
579 CONFIRM_MOBILE_DATA_USE: 'Fetching this file will use approximately $1 of
mobile data.', | 579 CONFIRM_MOBILE_DATA_USE: 'Fetching this file will use approximately $1 of
mobile data.', |
580 CONFIRM_MOBILE_DATA_USE_PLURAL: 'Fetching these files will use approximate
ly $1 of mobile data.', | 580 CONFIRM_MOBILE_DATA_USE_PLURAL: 'Fetching these files will use approximate
ly $1 of mobile data.', |
581 | 581 |
582 GDOC_DOCUMENT_FILE_TYPE: 'Google document', | 582 GDOC_DOCUMENT_FILE_TYPE: 'Google document', |
583 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', | 583 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', |
584 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', | 584 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', |
585 | 585 |
586 PASTE_ITEMS_REMAINING: 'Transferring $1 items', | 586 TRANSFER_ITEMS_REMAINING: 'Transferring $1 items', |
587 PASTE_CANCELLED: 'Transfer cancelled.', | 587 TRANSFER_CANCELLED: 'Transfer cancelled.', |
588 PASTE_TARGET_EXISTS_ERROR: 'Transfer failed, item exists: "$1"', | 588 TRANSFER_TARGET_EXISTS_ERROR: 'Transfer failed, item exists: "$1"', |
589 PASTE_FILESYSTEM_ERROR: 'Transfer failed. $1', | 589 TRANSFER_FILESYSTEM_ERROR: 'Transfer failed. $1', |
590 PASTE_UNEXPECTED_ERROR: 'Transfer failed, unexpected error: $1', | 590 TRANSFER_UNEXPECTED_ERROR: 'Transfer failed, unexpected error: $1', |
| 591 COPY_FILE_NAME: 'Copying $1', |
| 592 COPY_ITEMS_REMAINING: 'Copying $1 items.', |
| 593 COPY_CANCELLED: 'Copy operation cancelled.', |
| 594 COPY_TARGET_EXISTS_ERROR: 'Copy operation failed, item exists: "$1"', |
| 595 COPY_FILESYSTEM_ERROR: 'Copy operation failed. $1', |
| 596 COPY_UNEXPECTED_ERROR: 'Copy operation failed, unexpected error: $1', |
| 597 MOVE_FILE_NAME: 'Moving $1', |
| 598 MOVE_ITEMS_REMAINING: 'Moving $1 items.', |
| 599 MOVE_CANCELLED: 'Move cancelled.', |
| 600 MOVE_TARGET_EXISTS_ERROR: 'Move failed, item exists: "$1"', |
| 601 MOVE_FILESYSTEM_ERROR: 'Move failed. $1', |
| 602 MOVE_UNEXPECTED_ERROR: 'Move failed, unexpected error: $1', |
591 | 603 |
592 CANCEL_LABEL: 'Cancel', | 604 CANCEL_LABEL: 'Cancel', |
593 OPEN_LABEL: 'Open', | 605 OPEN_LABEL: 'Open', |
594 SAVE_LABEL: 'Save', | 606 SAVE_LABEL: 'Save', |
595 OK_LABEL: 'OK', | 607 OK_LABEL: 'OK', |
596 NO_ACTION_FOR_FILE: 'This file type is not supported. Please visit the ' + | 608 NO_ACTION_FOR_FILE: 'This file type is not supported. Please visit the ' + |
597 '<a target=\'_blank\' href=\'$1\'>Chrome Web Store</a>' + | 609 '<a target=\'_blank\' href=\'$1\'>Chrome Web Store</a>' + |
598 ' to find an app that can open this type of file.' + | 610 ' to find an app that can open this type of file.' + |
599 ' <a target=\'_blank\' href=\'$2\'>Learn More.</a>', | 611 ' <a target=\'_blank\' href=\'$2\'>Learn More.</a>', |
600 | 612 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 | 813 |
802 setWindowHeight: function(height) { | 814 setWindowHeight: function(height) { |
803 this.popup_.style.height = height + 'px'; | 815 this.popup_.style.height = height + 'px'; |
804 }, | 816 }, |
805 | 817 |
806 closeWindow: function() { | 818 closeWindow: function() { |
807 this.popup_.parentNode.removeChild(this.popup_); | 819 this.popup_.parentNode.removeChild(this.popup_); |
808 this.popup_ = null; | 820 this.popup_ = null; |
809 } | 821 } |
810 }; | 822 }; |
OLD | NEW |