| 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 HTML_DOCUMENT_FILE_TYPE: 'HTML document', | 594 HTML_DOCUMENT_FILE_TYPE: 'HTML document', |
| 595 ZIP_ARCHIVE_FILE_TYPE: 'Zip archive', | 595 ZIP_ARCHIVE_FILE_TYPE: 'Zip archive', |
| 596 RAR_ARCHIVE_FILE_TYPE: 'RAR archive', | 596 RAR_ARCHIVE_FILE_TYPE: 'RAR archive', |
| 597 TAR_ARCHIVE_FILE_TYPE: 'Tar archive', | 597 TAR_ARCHIVE_FILE_TYPE: 'Tar archive', |
| 598 TAR_BZIP2_ARCHIVE_FILE_TYPE: 'Bzip2 compressed tar archive', | 598 TAR_BZIP2_ARCHIVE_FILE_TYPE: 'Bzip2 compressed tar archive', |
| 599 TAR_GZIP_ARCHIVE_FILE_TYPE: 'Gzip compressed tar archive', | 599 TAR_GZIP_ARCHIVE_FILE_TYPE: 'Gzip compressed tar archive', |
| 600 PLAIN_TEXT_FILE_TYPE: 'Plain text file', | 600 PLAIN_TEXT_FILE_TYPE: 'Plain text file', |
| 601 PDF_DOCUMENT_FILE_TYPE: 'PDF document', | 601 PDF_DOCUMENT_FILE_TYPE: 'PDF document', |
| 602 WORD_DOCUMENT_FILE_TYPE: 'Word document', | 602 WORD_DOCUMENT_FILE_TYPE: 'Word document', |
| 603 POWERPOINT_PRESENTATION_FILE_TYPE: 'PowerPoint presentation', | 603 POWERPOINT_PRESENTATION_FILE_TYPE: 'PowerPoint presentation', |
| 604 EXCEL_FILE_TYPE: 'Excel spreadsheet' | 604 EXCEL_FILE_TYPE: 'Excel spreadsheet', |
| 605 |
| 606 SEARCH_NO_MATCHING_FILES: 'No files match <b>"$1"</b>' |
| 605 }); | 607 }); |
| 606 } | 608 } |
| 607 }; | 609 }; |
| 608 | 610 |
| 609 /** | 611 /** |
| 610 * Mock object for |chrome.extension|. | 612 * Mock object for |chrome.extension|. |
| 611 */ | 613 */ |
| 612 chrome.extension = { | 614 chrome.extension = { |
| 613 /** | 615 /** |
| 614 * @param {string} path Extension-relative path. | 616 * @param {string} path Extension-relative path. |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 705 |
| 704 setWindowHeight: function(height) { | 706 setWindowHeight: function(height) { |
| 705 this.popup_.style.height = height + 'px'; | 707 this.popup_.style.height = height + 'px'; |
| 706 }, | 708 }, |
| 707 | 709 |
| 708 closeWindow: function() { | 710 closeWindow: function() { |
| 709 this.popup_.parentNode.removeChild(this.popup_); | 711 this.popup_.parentNode.removeChild(this.popup_); |
| 710 this.popup_ = null; | 712 this.popup_ = null; |
| 711 } | 713 } |
| 712 }; | 714 }; |
| OLD | NEW |