Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 385263005: Gallery: Add support for Media Keys (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * Called from the main frame when unloading. 8 * Called from the main frame when unloading.
9 * @param {boolean=} opt_exiting True if the app is exiting. 9 * @param {boolean=} opt_exiting True if the app is exiting.
10 */ 10 */
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 case 'U+0008': // Backspace. 683 case 'U+0008': // Backspace.
684 // The default handler would call history.back and close the Gallery. 684 // The default handler would call history.back and close the Gallery.
685 event.preventDefault(); 685 event.preventDefault();
686 break; 686 break;
687 687
688 case 'U+004D': // 'm' switches between Slide and Mosaic mode. 688 case 'U+004D': // 'm' switches between Slide and Mosaic mode.
689 this.toggleMode_(null, event); 689 this.toggleMode_(null, event);
690 break; 690 break;
691 691
692 case 'U+0056': // 'v' 692 case 'U+0056': // 'v'
693 case 'MediaPlayPause':
693 this.slideMode_.startSlideshow(SlideMode.SLIDESHOW_INTERVAL_FIRST, event); 694 this.slideMode_.startSlideshow(SlideMode.SLIDESHOW_INTERVAL_FIRST, event);
694 break; 695 break;
695 696
696 case 'U+007F': // Delete 697 case 'U+007F': // Delete
697 case 'Shift-U+0033': // Shift+'3' (Delete key might be missing). 698 case 'Shift-U+0033': // Shift+'3' (Delete key might be missing).
698 case 'U+0044': // 'd' 699 case 'U+0044': // 'd'
699 this.delete_(); 700 this.delete_();
700 break; 701 break;
701 } 702 }
702 }; 703 };
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 window.loadTimeData.data = backgroundComponents.stringData; 965 window.loadTimeData.data = backgroundComponents.stringData;
965 gallery = new Gallery(backgroundComponents.volumeManager); 966 gallery = new Gallery(backgroundComponents.volumeManager);
966 }; 967 };
967 968
968 /** 969 /**
969 * Loads entries. 970 * Loads entries.
970 */ 971 */
971 window.loadEntries = function(entries, selectedEntries) { 972 window.loadEntries = function(entries, selectedEntries) {
972 gallery.load(entries, selectedEntries); 973 gallery.load(entries, selectedEntries);
973 }; 974 };
OLDNEW
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/slide_mode.js » ('j') | ui/file_manager/gallery/js/slide_mode.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698