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

Unified Diff: ui/base/accelerators/accelerator.cc

Issue 23445013: Parse media keys for named command in the manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit fix. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/accelerators/accelerator.cc
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
index fbb60a796b4ead1ff3bc69935fbc43dea32e8eac..d9560e2de3190055733ec7c3ed8dcb109567855a 100644
--- a/ui/base/accelerators/accelerator.cc
+++ b/ui/base/accelerators/accelerator.cc
@@ -155,6 +155,18 @@ base::string16 Accelerator::GetShortcutText() const {
case ui::VKEY_OEM_PERIOD:
string_id = IDS_APP_PERIOD_KEY;
break;
+ case ui::VKEY_MEDIA_NEXT_TRACK:
+ string_id = IDS_APP_MEDIA_NEXT_TRACK_KEY;
+ break;
+ case ui::VKEY_MEDIA_PLAY_PAUSE:
+ string_id = IDS_APP_MEDIA_PLAY_PAUSE_KEY;
+ break;
+ case ui::VKEY_MEDIA_PREV_TRACK:
+ string_id = IDS_APP_MEDIA_PREV_TRACK_KEY;
+ break;
+ case ui::VKEY_MEDIA_STOP:
+ string_id = IDS_APP_MEDIA_STOP_KEY;
+ break;
default:
break;
}

Powered by Google App Engine
This is Rietveld 408576698