diff options
author | sschmitz@chromium.org <sschmitz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 17:38:00 +0000 |
---|---|---|
committer | sschmitz@chromium.org <sschmitz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-27 17:38:00 +0000 |
commit | e54e8193d26424fd4d31cbae3871158056403f82 (patch) | |
tree | b015bec46abf46a9c2b2f7ce0294db7c804b897e /ash/shell_delegate.h | |
parent | 79ec9aa6e75cd375b2010a938d61f33d214ebc03 (diff) | |
download | chromium_src-e54e8193d26424fd4d31cbae3871158056403f82.zip chromium_src-e54e8193d26424fd4d31cbae3871158056403f82.tar.gz chromium_src-e54e8193d26424fd4d31cbae3871158056403f82.tar.bz2 |
Ash: Support "Next Song", "Previous Song", "Play/Pause" Multi Media buttons
in our Media Player that is part of the File Manager right now.
Added shortcut handlers and plumbing to the Audio and Video player of the
Ash File Manager.
see also:
http://code.google.com/p/chromium/issues/detail?id=123739#c17
BUG=138745
TEST=Attach an (Wired USB) Apple keyboard or Windows Natural keyboard
to a Chromebook.
Either download three mp3 and an mp4 file to your chromebook or navigate
to a Google Drive folder that has these.
Bring up File Manager from the Launcher and click on an mp3.
Press the Previous Track, Play/Pause, Next Track keys on the MAC keyboard and
observe same behavior as clicking the corresponding Audio Control buttons
on the screen.
Click on an mp4 and press the Play/Pause key and observe same
behavior as clicking Play/Pause button on the screen.
Repeat for Windows Natural keyboard with the Play/Pause key. (Note
it does not have any prev./next track keys.)
PS: The Goldtouch USB keyboard works as well. The media keys require holding done the "Fn" key and F1, F2, or F3.
Review URL: https://chromiumcodereview.appspot.com/10823439
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r-- | ash/shell_delegate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h index 8029e1b..7b7d097 100644 --- a/ash/shell_delegate.h +++ b/ash/shell_delegate.h @@ -137,6 +137,15 @@ class ASH_EXPORT ShellDelegate { // Records that the user performed an action. virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; + + // Handles the Next Track Media shortcut key. + virtual void HandleMediaNextTrack() = 0; + + // Handles the Play/Pause Toggle Media shortcut key. + virtual void HandleMediaPlayPause() = 0; + + // Handles the Previous Track Media shortcut key. + virtual void HandleMediaPrevTrack() = 0; }; } // namespace ash |