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

Issue 23445013: Parse media keys for named command in the manifest. (Closed)

Created:
7 years, 3 months ago by zhchbin
Modified:
7 years, 3 months ago
Reviewers:
Finnur, Elliot Glaysher, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jshin+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Parse media keys for named command in the manifest. BUG=131612 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221143

Patch Set 1 #

Total comments: 17

Patch Set 2 : Remove useless codes and add a test case for commands like "Ctrl+MediaNextTrack." #

Total comments: 2

Patch Set 3 : Revise. #

Total comments: 3

Patch Set 4 : Doc. #

Total comments: 2

Patch Set 5 : revise doc. #

Total comments: 2

Patch Set 6 : nit fix. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -383 lines) Patch
M chrome/browser/extensions/api/commands/command_service.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service_new.cc View 1 1 chunk +0 lines, -363 lines 0 comments Download
M chrome/common/extensions/command.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/command.cc View 1 2 11 chunks +77 lines, -15 lines 0 comments Download
M chrome/common/extensions/command_unittest.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/templates/intros/commands.html View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ui/base/accelerators/accelerator.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M ui/base/strings/ui_strings.grd View 1 2 3 4 5 1 chunk +12 lines, -0 lines 3 comments Download

Messages

Total messages: 27 (0 generated)
zhchbin
@finnur, PTAL. This is the first patch to support global hotkey & media keys. I ...
7 years, 3 months ago (2013-08-28 12:28:58 UTC) #1
Finnur
> Note: on linux platform, it wouldn't work if gnome-settings-daemon has grabbed > these keys. ...
7 years, 3 months ago (2013-08-28 14:15:16 UTC) #2
Finnur
OSX suffers from the same problem: The Media key (I tried NextTrack) is not seen ...
7 years, 3 months ago (2013-08-28 15:12:08 UTC) #3
Finnur
https://chromiumcodereview.appspot.com/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc File chrome/browser/extensions/api/commands/command_service_new.cc (left): https://chromiumcodereview.appspot.com/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc#oldcode1 chrome/browser/extensions/api/commands/command_service_new.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 3 months ago (2013-08-28 15:46:34 UTC) #4
Elliot Glaysher
On 2013/08/28 14:15:16, Finnur wrote: > Wouldn't we be registering keyboard shortcuts with this daemon ...
7 years, 3 months ago (2013-08-28 19:17:01 UTC) #5
zhchbin
Thanks very much for the review!! > Just to be clear, I read this as: ...
7 years, 3 months ago (2013-08-29 06:20:14 UTC) #6
Finnur
https://codereview.chromium.org/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc File chrome/browser/extensions/api/commands/command_service_new.cc (right): https://codereview.chromium.org/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc#newcode365 chrome/browser/extensions/api/commands/command_service_new.cc:365: } // namespace extensions Wait, does the file still ...
7 years, 3 months ago (2013-08-29 11:20:52 UTC) #7
zhchbin
https://codereview.chromium.org/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc File chrome/browser/extensions/api/commands/command_service_new.cc (right): https://codereview.chromium.org/23445013/diff/1/chrome/browser/extensions/api/commands/command_service_new.cc#newcode365 chrome/browser/extensions/api/commands/command_service_new.cc:365: } // namespace extensions On 2013/08/29 11:20:52, Finnur wrote: ...
7 years, 3 months ago (2013-08-29 14:27:10 UTC) #8
Finnur
I started a try job on this changelist, just for the sake of it. It ...
7 years, 3 months ago (2013-08-29 14:46:28 UTC) #9
zhchbin
https://codereview.chromium.org/23445013/diff/18001/chrome/common/extensions/command.cc File chrome/common/extensions/command.cc (right): https://codereview.chromium.org/23445013/diff/18001/chrome/common/extensions/command.cc#newcode484 chrome/common/extensions/command.cc:484: if (error->empty()) { On 2013/08/29 14:46:28, Finnur wrote: > ...
7 years, 3 months ago (2013-08-29 14:54:50 UTC) #10
zhchbin
On 2013/08/29 14:46:28, Finnur wrote: > I started a try job on this changelist, just ...
7 years, 3 months ago (2013-08-29 15:00:10 UTC) #11
Finnur
I see. Hmmm, this means we've been masking other errors from the parser. Anyway, this ...
7 years, 3 months ago (2013-08-29 15:07:58 UTC) #12
zhchbin
Ping sky@ for owner review: ui/base/*
7 years, 3 months ago (2013-08-30 04:40:05 UTC) #13
Finnur
The PM gave a green light on having MediaKeys support for non-global shortcuts, which means ...
7 years, 3 months ago (2013-08-30 10:40:47 UTC) #14
zhchbin
On 2013/08/30 10:40:47, Finnur wrote: > The PM gave a green light on having MediaKeys ...
7 years, 3 months ago (2013-08-30 11:14:34 UTC) #15
Finnur
https://codereview.chromium.org/23445013/diff/35001/chrome/common/extensions/docs/templates/intros/commands.html File chrome/common/extensions/docs/templates/intros/commands.html (right): https://codereview.chromium.org/23445013/diff/35001/chrome/common/extensions/docs/templates/intros/commands.html#newcode20 chrome/common/extensions/docs/templates/intros/commands.html:20: Media keys cannot be used in key combination, just ...
7 years, 3 months ago (2013-08-30 11:39:27 UTC) #16
zhchbin
https://codereview.chromium.org/23445013/diff/35001/chrome/common/extensions/docs/templates/intros/commands.html File chrome/common/extensions/docs/templates/intros/commands.html (right): https://codereview.chromium.org/23445013/diff/35001/chrome/common/extensions/docs/templates/intros/commands.html#newcode20 chrome/common/extensions/docs/templates/intros/commands.html:20: Media keys cannot be used in key combination, just ...
7 years, 3 months ago (2013-08-30 12:00:35 UTC) #17
Finnur
> but AFAICS they are being used with modifiers rarely. You can make the same ...
7 years, 3 months ago (2013-08-30 12:46:45 UTC) #18
zhchbin
On 2013/08/30 12:46:45, Finnur wrote: > > but AFAICS they are being used with modifiers ...
7 years, 3 months ago (2013-08-30 12:52:36 UTC) #19
zhchbin
On 2013/08/30 12:46:45, Finnur wrote: > > but AFAICS they are being used with modifiers ...
7 years, 3 months ago (2013-08-30 12:52:37 UTC) #20
sky
https://codereview.chromium.org/23445013/diff/39001/ui/base/strings/ui_strings.grd File ui/base/strings/ui_strings.grd (right): https://codereview.chromium.org/23445013/diff/39001/ui/base/strings/ui_strings.grd#newcode1462 ui/base/strings/ui_strings.grd:1462: MediaNextTrack Is there a reason these AreOneWord?
7 years, 3 months ago (2013-08-30 17:08:29 UTC) #21
zhchbin
https://codereview.chromium.org/23445013/diff/39001/ui/base/strings/ui_strings.grd File ui/base/strings/ui_strings.grd (right): https://codereview.chromium.org/23445013/diff/39001/ui/base/strings/ui_strings.grd#newcode1462 ui/base/strings/ui_strings.grd:1462: MediaNextTrack On 2013/08/30 17:08:29, sky wrote: > Is there ...
7 years, 3 months ago (2013-08-31 01:17:04 UTC) #22
sky
https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd File ui/base/strings/ui_strings.grd (right): https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd#newcode1462 ui/base/strings/ui_strings.grd:1462: Media Next Track I don't think these should be ...
7 years, 3 months ago (2013-09-03 15:59:33 UTC) #23
Finnur
https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd File ui/base/strings/ui_strings.grd (right): https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd#newcode1462 ui/base/strings/ui_strings.grd:1462: Media Next Track All of these are upper case. ...
7 years, 3 months ago (2013-09-03 16:04:29 UTC) #24
sky
LGTM https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd File ui/base/strings/ui_strings.grd (right): https://codereview.chromium.org/23445013/diff/32001/ui/base/strings/ui_strings.grd#newcode1462 ui/base/strings/ui_strings.grd:1462: Media Next Track On 2013/09/03 16:04:29, Finnur wrote: ...
7 years, 3 months ago (2013-09-03 16:27:33 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zhchbin@gmail.com/23445013/32001
7 years, 3 months ago (2013-09-04 00:35:02 UTC) #26
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 04:08:11 UTC) #27
Message was sent while issue was closed.
Change committed as 221143

Powered by Google App Engine
This is Rietveld 408576698