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

Issue 10823439: Ash: Support "Next Song", "Previous Song", "Play/Pause" Multi Media buttons (Closed)

Created:
8 years, 4 months ago by sschmitz
Modified:
8 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, mihaip-chromium-reviews_chromium.org, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, mazda+watch_chromium.org, Aaron Boodman, rginda+watch_chromium.org, arv (Not doing code reviews), oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

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. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153502

Patch Set 1 #

Total comments: 6

Patch Set 2 : fixed nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -2 lines) Patch
M ash/accelerators/accelerator_controller.cc View 2 chunks +21 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 chunk +6 lines, -1 line 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 chunk +9 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/media_player_event_router.h View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/media_player_event_router.cc View 1 1 chunk +25 lines, -1 line 2 comments Download
M chrome/browser/resources/file_manager/js/media/media_controls.js View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/media_player_private.json View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sschmitz
8 years, 4 months ago (2012-08-21 20:27:13 UTC) #1
Daniel Erat
I don't have any background on the extension part of this but the rest LGTM. ...
8 years, 4 months ago (2012-08-21 20:38:41 UTC) #2
sschmitz
Dan, thanks for the speedy reply. I have the following dirs in mind for each ...
8 years, 4 months ago (2012-08-21 20:44:03 UTC) #3
sschmitz
https://chromiumcodereview.appspot.com/10823439/diff/1/chrome/browser/chromeos/extensions/media_player_event_router.cc File chrome/browser/chromeos/extensions/media_player_event_router.cc (right): https://chromiumcodereview.appspot.com/10823439/diff/1/chrome/browser/chromeos/extensions/media_player_event_router.cc#newcode28 chrome/browser/chromeos/extensions/media_player_event_router.cc:28: "mediaPlayerPrivate.onNextTrack", args.Pass(), NULL, GURL()); On 2012/08/21 20:38:42, Daniel Erat ...
8 years, 4 months ago (2012-08-21 20:55:48 UTC) #4
asargent_no_longer_on_chrome
LGTM https://chromiumcodereview.appspot.com/10823439/diff/6001/chrome/browser/chromeos/extensions/media_player_event_router.cc File chrome/browser/chromeos/extensions/media_player_event_router.cc (right): https://chromiumcodereview.appspot.com/10823439/diff/6001/chrome/browser/chromeos/extensions/media_player_event_router.cc#newcode28 chrome/browser/chromeos/extensions/media_player_event_router.cc:28: "mediaPlayerPrivate.onNextTrack", args.Pass(), NULL, GURL()); Can you just put ...
8 years, 4 months ago (2012-08-21 22:20:25 UTC) #5
sschmitz
On 2012/08/21 22:20:25, Antony Sargent wrote: > LGTM > > https://chromiumcodereview.appspot.com/10823439/diff/6001/chrome/browser/chromeos/extensions/media_player_event_router.cc > File chrome/browser/chromeos/extensions/media_player_event_router.cc (right): ...
8 years, 4 months ago (2012-08-21 23:52:10 UTC) #6
sschmitz
https://chromiumcodereview.appspot.com/10823439/diff/6001/chrome/browser/chromeos/extensions/media_player_event_router.cc File chrome/browser/chromeos/extensions/media_player_event_router.cc (right): https://chromiumcodereview.appspot.com/10823439/diff/6001/chrome/browser/chromeos/extensions/media_player_event_router.cc#newcode28 chrome/browser/chromeos/extensions/media_player_event_router.cc:28: "mediaPlayerPrivate.onNextTrack", args.Pass(), NULL, GURL()); On 2012/08/21 22:20:26, Antony Sargent ...
8 years, 4 months ago (2012-08-22 00:11:55 UTC) #7
sschmitz
8 years, 4 months ago (2012-08-22 00:17:56 UTC) #8
sschmitz
Adding kaznacheev@ as reviewer. I did not hear from SeRya@. Either one of you to ...
8 years, 4 months ago (2012-08-22 16:06:37 UTC) #9
sschmitz
Adding rginda as reviewer: Robert would you please review chrome/browser/resources/file_manager/js/media/media_controls.js. I have not heard from ...
8 years, 4 months ago (2012-08-24 22:57:26 UTC) #10
Vladislav Kaznacheev
LGTM chrome/browser/resources/file_manager/js/media/media_controls.js
8 years, 3 months ago (2012-08-27 10:18:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sschmitz@chromium.org/10823439/6001
8 years, 3 months ago (2012-08-27 15:05:24 UTC) #12
commit-bot: I haz the power
8 years, 3 months ago (2012-08-27 17:38:02 UTC) #13
Change committed as 153502

Powered by Google App Engine
This is Rietveld 408576698