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 | |
328 GALLERY: 'View and Edit', | 325 GALLERY: 'View and Edit', |
329 GALLERY_EDIT: 'Edit', | 326 GALLERY_EDIT: 'Edit', |
330 GALLERY_SHARE: 'Share', | 327 GALLERY_SHARE: 'Share', |
331 GALLERY_AUTOFIX: 'Auto-fix', | 328 GALLERY_AUTOFIX: 'Auto-fix', |
332 GALLERY_FIXED: 'Fixed', | 329 GALLERY_FIXED: 'Fixed', |
333 GALLERY_CROP: 'Crop', | 330 GALLERY_CROP: 'Crop', |
334 GALLERY_EXPOSURE: 'Brightness', | 331 GALLERY_EXPOSURE: 'Brightness', |
335 GALLERY_BRIGHTNESS: 'Brightness', | 332 GALLERY_BRIGHTNESS: 'Brightness', |
336 GALLERY_CONTRAST: 'Contrast', | 333 GALLERY_CONTRAST: 'Contrast', |
337 GALLERY_ROTATE_LEFT: 'Left', | 334 GALLERY_ROTATE_LEFT: 'Left', |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 | 514 |
518 setWindowHeight: function(height) { | 515 setWindowHeight: function(height) { |
519 this.popup_.style.height = height + 'px'; | 516 this.popup_.style.height = height + 'px'; |
520 }, | 517 }, |
521 | 518 |
522 closeWindow: function() { | 519 closeWindow: function() { |
523 this.popup_.parentNode.removeChild(this.popup_); | 520 this.popup_.parentNode.removeChild(this.popup_); |
524 this.popup_ = null; | 521 this.popup_ = null; |
525 } | 522 } |
526 }; | 523 }; |
OLD | NEW |