| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 HTML_DOCUMENT_FILE_TYPE: 'HTML document', | 605 HTML_DOCUMENT_FILE_TYPE: 'HTML document', |
| 606 ZIP_ARCHIVE_FILE_TYPE: 'Zip archive', | 606 ZIP_ARCHIVE_FILE_TYPE: 'Zip archive', |
| 607 RAR_ARCHIVE_FILE_TYPE: 'RAR archive', | 607 RAR_ARCHIVE_FILE_TYPE: 'RAR archive', |
| 608 TAR_ARCHIVE_FILE_TYPE: 'Tar archive', | 608 TAR_ARCHIVE_FILE_TYPE: 'Tar archive', |
| 609 TAR_BZIP2_ARCHIVE_FILE_TYPE: 'Bzip2 compressed tar archive', | 609 TAR_BZIP2_ARCHIVE_FILE_TYPE: 'Bzip2 compressed tar archive', |
| 610 TAR_GZIP_ARCHIVE_FILE_TYPE: 'Gzip compressed tar archive', | 610 TAR_GZIP_ARCHIVE_FILE_TYPE: 'Gzip compressed tar archive', |
| 611 PLAIN_TEXT_FILE_TYPE: 'Plain text file', | 611 PLAIN_TEXT_FILE_TYPE: 'Plain text file', |
| 612 PDF_DOCUMENT_FILE_TYPE: 'PDF document', | 612 PDF_DOCUMENT_FILE_TYPE: 'PDF document', |
| 613 WORD_DOCUMENT_FILE_TYPE: 'Word document', | 613 WORD_DOCUMENT_FILE_TYPE: 'Word document', |
| 614 POWERPOINT_PRESENTATION_FILE_TYPE: 'PowerPoint presentation', | 614 POWERPOINT_PRESENTATION_FILE_TYPE: 'PowerPoint presentation', |
| 615 EXCEL_FILE_TYPE: 'Excel spreadsheet' | 615 EXCEL_FILE_TYPE: 'Excel spreadsheet', |
| 616 |
| 617 SEARCH_NO_MATCHING_FILES: 'No files match <b>"$1"</b>' |
| 616 }); | 618 }); |
| 617 } | 619 } |
| 618 }; | 620 }; |
| 619 | 621 |
| 620 /** | 622 /** |
| 621 * Mock object for |chrome.extension|. | 623 * Mock object for |chrome.extension|. |
| 622 */ | 624 */ |
| 623 chrome.extension = { | 625 chrome.extension = { |
| 624 /** | 626 /** |
| 625 * @param {string} path Extension-relative path. | 627 * @param {string} path Extension-relative path. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 | 716 |
| 715 setWindowHeight: function(height) { | 717 setWindowHeight: function(height) { |
| 716 this.popup_.style.height = height + 'px'; | 718 this.popup_.style.height = height + 'px'; |
| 717 }, | 719 }, |
| 718 | 720 |
| 719 closeWindow: function() { | 721 closeWindow: function() { |
| 720 this.popup_.parentNode.removeChild(this.popup_); | 722 this.popup_.parentNode.removeChild(this.popup_); |
| 721 this.popup_ = null; | 723 this.popup_ = null; |
| 722 } | 724 } |
| 723 }; | 725 }; |
| OLD | NEW |