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. There is no remove. | 10 * Add a listener. There is no remove. |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 // Keep this list in sync with the strings in generated_resources.grd and | 348 // Keep this list in sync with the strings in generated_resources.grd and |
349 // extension_file_browser_private_api.cc! | 349 // extension_file_browser_private_api.cc! |
350 callback({ | 350 callback({ |
351 // These two are from locale_settings*.grd | 351 // These two are from locale_settings*.grd |
352 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' + | 352 WEB_FONT_FAMILY: 'Open Sans,Chrome Droid Sans,' + |
353 'Droid Sans Fallback,sans-serif', | 353 'Droid Sans Fallback,sans-serif', |
354 WEB_FONT_SIZE: '84%', | 354 WEB_FONT_SIZE: '84%', |
355 | 355 |
356 FILE_IS_DIRECTORY: 'Folder', | 356 FILE_IS_DIRECTORY: 'Folder', |
357 | 357 |
358 GDATA_DIRECTORY_LABEL: 'GData', | 358 GDATA_DIRECTORY_LABEL: 'Google Drive', |
359 ENABLE_GDATA: '1', | 359 ENABLE_GDATA: '1', |
360 PDF_VIEW_ENABLED: 'true', | 360 PDF_VIEW_ENABLED: 'true', |
361 | 361 |
362 ROOT_DIRECTORY_LABEL: 'Files', | 362 ROOT_DIRECTORY_LABEL: 'Files', |
363 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', | 363 DOWNLOADS_DIRECTORY_LABEL: 'Downloads', |
364 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>", | 364 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>", |
365 NAME_COLUMN_LABEL: 'Name', | 365 NAME_COLUMN_LABEL: 'Name', |
366 SIZE_COLUMN_LABEL: 'Size', | 366 SIZE_COLUMN_LABEL: 'Size', |
367 SIZE_B: 'B', | 367 SIZE_B: 'B', |
368 SIZE_KB: 'KB', | 368 SIZE_KB: 'KB', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 CUT_BUTTON_LABEL: 'Cut', | 449 CUT_BUTTON_LABEL: 'Cut', |
450 | 450 |
451 UNMOUNT_FAILED: 'Unable to eject: $1', | 451 UNMOUNT_FAILED: 'Unable to eject: $1', |
452 UNMOUNT_DEVICE_BUTTON_LABEL: 'Unmount', | 452 UNMOUNT_DEVICE_BUTTON_LABEL: 'Unmount', |
453 FORMAT_DEVICE_BUTTON_LABEL: 'Format', | 453 FORMAT_DEVICE_BUTTON_LABEL: 'Format', |
454 | 454 |
455 GDATA_MOBILE_CONNECTION_OPTION: 'Do not use mobile data for sync', | 455 GDATA_MOBILE_CONNECTION_OPTION: 'Do not use mobile data for sync', |
456 GDATA_SHOW_HOSTED_FILES_OPTION: 'Show Google Docs files', | 456 GDATA_SHOW_HOSTED_FILES_OPTION: 'Show Google Docs files', |
457 | 457 |
458 OFFLINE_COLUMN_LABEL: 'Available offline', | 458 OFFLINE_COLUMN_LABEL: 'Available offline', |
459 GDATA_PRODUCT_NAME: 'Google Docs', | 459 GDATA_PRODUCT_NAME: 'Google Drive', |
460 GDATA_LOADING: 'Loading $1', | 460 GDATA_LOADING: 'Hang with us. We\'re fetching your files.', |
461 GDATA_RETRY: 'Retry', | 461 GDATA_RETRY: 'Retry', |
462 GDATA_LEARN_MORE: 'Learn more', | 462 GDATA_LEARN_MORE: 'Learn more', |
463 GDATA_CANNOT_REACH: '$1 cannot be reached at this time', | 463 GDATA_CANNOT_REACH: '$1 cannot be reached at this time', |
| 464 |
| 465 GDATA_WELCOME_TITLE: 'Welcome to $1!', |
| 466 GDATA_WELCOME_TEXT_SHORT: |
| 467 'All files saved in this folder are backed up online automatically', |
| 468 GDATA_WELCOME_TEXT_LONG: |
| 469 '<p><strong>Access files from everywhere, even offline.</strong> ' + |
| 470 'Files in $1 are up-to-date and available from any device.</p>' + |
| 471 '<p><strong>Keep your files safe.</strong> ' + |
| 472 'No matter what happens to your device, your files are ' + |
| 473 'safely stored in $1.</p>' + |
| 474 '<p><strong>Share, create and collaborate</strong> ' + |
| 475 'on files with others all in one place .</p>', |
| 476 GDATA_WELCOME_DISMISS: 'Dismiss', |
| 477 |
464 GDOC_DOCUMENT_FILE_TYPE: 'Google document', | 478 GDOC_DOCUMENT_FILE_TYPE: 'Google document', |
465 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', | 479 GSHEET_DOCUMENT_FILE_TYPE: 'Google spreadsheet', |
466 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', | 480 GSLIDES_DOCUMENT_FILE_TYPE: 'Google presentation', |
467 | 481 |
468 PASTE_ITEMS_REMAINING: 'Pasting $1 items', | 482 PASTE_ITEMS_REMAINING: 'Pasting $1 items', |
469 PASTE_CANCELLED: 'Paste cancelled.', | 483 PASTE_CANCELLED: 'Paste cancelled.', |
470 PASTE_TARGET_EXISTS_ERROR: 'Paste failed, item exists: $1', | 484 PASTE_TARGET_EXISTS_ERROR: 'Paste failed, item exists: $1', |
471 PASTE_FILESYSTEM_ERROR: 'Paste failed, filesystem error: $1', | 485 PASTE_FILESYSTEM_ERROR: 'Paste failed, filesystem error: $1', |
472 PASTE_UNEXPECTED_ERROR: 'Paste failed, unexpected error: $1', | 486 PASTE_UNEXPECTED_ERROR: 'Paste failed, unexpected error: $1', |
473 | 487 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 | 662 |
649 setWindowHeight: function(height) { | 663 setWindowHeight: function(height) { |
650 this.popup_.style.height = height + 'px'; | 664 this.popup_.style.height = height + 'px'; |
651 }, | 665 }, |
652 | 666 |
653 closeWindow: function() { | 667 closeWindow: function() { |
654 this.popup_.parentNode.removeChild(this.popup_); | 668 this.popup_.parentNode.removeChild(this.popup_); |
655 this.popup_ = null; | 669 this.popup_ = null; |
656 } | 670 } |
657 }; | 671 }; |
OLD | NEW |