| 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 MockEventSource.prototype.addListener = function(listener) { | 9 MockEventSource.prototype.addListener = function(listener) { |
| 10 this.listeners_.push(listener); | 10 this.listeners_.push(listener); |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 PREVIEW_COLUMN_LABEL: 'Preview', | 358 PREVIEW_COLUMN_LABEL: 'Preview', |
| 359 OFFILE_COLUMN_LABEL: 'Available offline', | 359 OFFILE_COLUMN_LABEL: 'Available offline', |
| 360 | 360 |
| 361 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2', | 361 ERROR_CREATING_FOLDER: 'Unable to create folder "$1": $2', |
| 362 ERROR_INVALID_CHARACTER: 'Invalid character: $1', | 362 ERROR_INVALID_CHARACTER: 'Invalid character: $1', |
| 363 ERROR_RESERVED_NAME: 'This name may not be used as a file of folder name', | 363 ERROR_RESERVED_NAME: 'This name may not be used as a file of folder name', |
| 364 ERROR_WHITESPACE_NAME: 'Invalid name', | 364 ERROR_WHITESPACE_NAME: 'Invalid name', |
| 365 ERROR_NEW_FOLDER_EMPTY_NAME: 'Please specify a folder name', | 365 ERROR_NEW_FOLDER_EMPTY_NAME: 'Please specify a folder name', |
| 366 NEW_FOLDER_BUTTON_LABEL: 'New folder', | 366 NEW_FOLDER_BUTTON_LABEL: 'New folder', |
| 367 FILENAME_LABEL: 'File Name', | 367 FILENAME_LABEL: 'File Name', |
| 368 PREPARING_LABEL: 'Preparing', |
| 368 | 369 |
| 369 DIMENSIONS_LABEL: 'Dimensions', | 370 DIMENSIONS_LABEL: 'Dimensions', |
| 370 DIMENSIONS_FORMAT: '$1 x $2', | 371 DIMENSIONS_FORMAT: '$1 x $2', |
| 371 | 372 |
| 372 EJECT_BUTTON: 'Eject', | 373 EJECT_BUTTON: 'Eject', |
| 373 IMAGE_DIMENSIONS: 'Image Dimensions', | 374 IMAGE_DIMENSIONS: 'Image Dimensions', |
| 374 VOLUME_LABEL: 'Volume Label', | 375 VOLUME_LABEL: 'Volume Label', |
| 375 READ_ONLY: 'Read Only', | 376 READ_ONLY: 'Read Only', |
| 376 | 377 |
| 377 PLAY_MEDIA: 'Play', | 378 PLAY_MEDIA: 'Play', |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 584 |
| 584 setWindowHeight: function(height) { | 585 setWindowHeight: function(height) { |
| 585 this.popup_.style.height = height + 'px'; | 586 this.popup_.style.height = height + 'px'; |
| 586 }, | 587 }, |
| 587 | 588 |
| 588 closeWindow: function() { | 589 closeWindow: function() { |
| 589 this.popup_.parentNode.removeChild(this.popup_); | 590 this.popup_.parentNode.removeChild(this.popup_); |
| 590 this.popup_ = null; | 591 this.popup_ = null; |
| 591 } | 592 } |
| 592 }; | 593 }; |
| OLD | NEW |