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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 EJECT_BUTTON: 'Eject', | 315 EJECT_BUTTON: 'Eject', |
316 IMAGE_DIMENSIONS: 'Image Dimensions', | 316 IMAGE_DIMENSIONS: 'Image Dimensions', |
317 VOLUME_LABEL: 'Volume Label', | 317 VOLUME_LABEL: 'Volume Label', |
318 READ_ONLY: 'Read Only', | 318 READ_ONLY: 'Read Only', |
319 | 319 |
320 PLAY_MEDIA: 'Play', | 320 PLAY_MEDIA: 'Play', |
321 | 321 |
322 MOUNT_ARCHIVE: 'Open', | 322 MOUNT_ARCHIVE: 'Open', |
323 FORMAT_DEVICE: 'Format device', | 323 FORMAT_DEVICE: 'Format device', |
324 | 324 |
| 325 OPEN_ACTION: 'Open', |
| 326 INSTALL_CRX: 'Open', |
| 327 |
325 GALLERY: 'View and Edit', | 328 GALLERY: 'View and Edit', |
326 GALLERY_EDIT: 'Edit', | 329 GALLERY_EDIT: 'Edit', |
327 GALLERY_SHARE: 'Share', | 330 GALLERY_SHARE: 'Share', |
328 GALLERY_AUTOFIX: 'Auto-fix', | 331 GALLERY_AUTOFIX: 'Auto-fix', |
329 GALLERY_FIXED: 'Fixed', | 332 GALLERY_FIXED: 'Fixed', |
330 GALLERY_CROP: 'Crop', | 333 GALLERY_CROP: 'Crop', |
331 GALLERY_EXPOSURE: 'Brightness', | 334 GALLERY_EXPOSURE: 'Brightness', |
332 GALLERY_BRIGHTNESS: 'Brightness', | 335 GALLERY_BRIGHTNESS: 'Brightness', |
333 GALLERY_CONTRAST: 'Contrast', | 336 GALLERY_CONTRAST: 'Contrast', |
334 GALLERY_ROTATE_LEFT: 'Left', | 337 GALLERY_ROTATE_LEFT: 'Left', |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 517 |
515 setWindowHeight: function(height) { | 518 setWindowHeight: function(height) { |
516 this.popup_.style.height = height + 'px'; | 519 this.popup_.style.height = height + 'px'; |
517 }, | 520 }, |
518 | 521 |
519 closeWindow: function() { | 522 closeWindow: function() { |
520 this.popup_.parentNode.removeChild(this.popup_); | 523 this.popup_.parentNode.removeChild(this.popup_); |
521 this.popup_ = null; | 524 this.popup_ = null; |
522 } | 525 } |
523 }; | 526 }; |
OLD | NEW |