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

Issue 10514003: Config UI for Extension Commands (part 1). (Closed)

Created:
8 years, 6 months ago by Finnur
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, arv (Not doing code reviews), oshima+watch_chromium.org, tfarina
Visibility:
Public.

Description

Config UI for Extension Commands (part 1). This changes the current overlay so that input is possible (selecting which keyboard shortcut to use). It also suspends current Chrome keyboard handling (Views only), while capturing the shortcut, so that you can press ie. Ctrl-F without Chrome eating your keyboard assignment and instead showing the Find box. NOTE: This does not persist the user's choice (future changelist). BUG=121420 TEST=With a keybinding Extension installed, open chrome://extensions, click on Configure Commands, and notice that the shortcuts are listed in text boxes that are clickable and accept keyboard input. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141189

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 11

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+309 lines, -13 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_keybinding_registry.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extension_command_list.js View 1 2 3 4 5 6 2 chunks +180 lines, -4 lines 0 comments Download
M chrome/browser/resources/extensions/extension_commands_overlay.css View 1 2 3 4 5 1 chunk +48 lines, -2 lines 0 comments Download
M chrome/browser/resources/extensions/extension_commands_overlay.html View 1 2 3 4 4 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/command_handler.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/command_handler.cc View 1 2 3 4 4 chunks +25 lines, -2 lines 0 comments Download
M ui/views/focus/focus_manager.h View 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Finnur
jcivelli, can you give OWNERS approval for ui/views/focus? Ben, can you give OWNERS approval for ...
8 years, 6 months ago (2012-06-04 17:34:44 UTC) #1
Ben Goodger (Google)
Can you briefly describe the flow of events here? I am trying to think of ...
8 years, 6 months ago (2012-06-04 17:48:10 UTC) #2
Finnur
On 2012/06/04 17:48:10, Ben Goodger (Google) wrote: > Can you briefly describe the flow of ...
8 years, 6 months ago (2012-06-04 19:08:30 UTC) #3
Ben Goodger (Google)
Sorry let me be more specific. The codepath you're modifying with this "suppress" mode is ...
8 years, 6 months ago (2012-06-04 20:38:36 UTC) #4
Finnur
Oh, I see. We need keyboard events to make it all the way to the ...
8 years, 6 months ago (2012-06-04 22:49:41 UTC) #5
Ben Goodger (Google)
On 2012/06/04 22:49:41, Finnur wrote: > Oh, I see. We need keyboard events to make ...
8 years, 6 months ago (2012-06-04 23:16:19 UTC) #6
Finnur
Sure! It's in the bug comments: http://code.google.com/p/chromium/issues/detail?id=121420 (see comment 4, picture 1 but not 2 ...
8 years, 6 months ago (2012-06-04 23:36:16 UTC) #7
Ben Goodger (Google)
Thanks for the explanation! LGTM.
8 years, 6 months ago (2012-06-04 23:43:54 UTC) #8
Evan Stade
http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_command_list.js#newcode110 chrome/browser/resources/extensions/extension_command_list.js:110: output += event.shiftKey ? 'Shift + ' : ''; ...
8 years, 6 months ago (2012-06-05 00:20:36 UTC) #9
Evan Stade
also please disable the UI for platforms that don't yet support it.
8 years, 6 months ago (2012-06-05 01:20:31 UTC) #10
Finnur
PTAL. > also please disable the UI for platforms that don't yet support it. It ...
8 years, 6 months ago (2012-06-05 15:04:46 UTC) #11
Finnur
PS. I also updated the screenshot in the bug. On 2012/06/05 15:04:46, Finnur wrote: > ...
8 years, 6 months ago (2012-06-05 15:11:32 UTC) #12
Evan Stade
http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_commands_overlay.css File chrome/browser/resources/extensions/extension_commands_overlay.css (right): http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_commands_overlay.css#newcode32 chrome/browser/resources/extensions/extension_commands_overlay.css:32: color: Black; On 2012/06/05 15:04:46, Finnur wrote: > > ...
8 years, 6 months ago (2012-06-05 18:28:01 UTC) #13
Finnur
http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_commands_overlay.css File chrome/browser/resources/extensions/extension_commands_overlay.css (right): http://codereview.chromium.org/10514003/diff/12004/chrome/browser/resources/extensions/extension_commands_overlay.css#newcode32 chrome/browser/resources/extensions/extension_commands_overlay.css:32: color: Black; > I don't have a problem with ...
8 years, 6 months ago (2012-06-05 21:12:13 UTC) #14
Evan Stade
http://codereview.chromium.org/10514003/diff/17001/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): http://codereview.chromium.org/10514003/diff/17001/chrome/browser/resources/extensions/extension_command_list.js#newcode111 chrome/browser/resources/extensions/extension_command_list.js:111: if (event.altKey) if (!event.ctrlKey && event.altKey) http://codereview.chromium.org/10514003/diff/17001/chrome/browser/resources/extensions/extension_command_list.js#newcode140 chrome/browser/resources/extensions/extension_command_list.js:140: if ...
8 years, 6 months ago (2012-06-05 21:25:51 UTC) #15
Finnur
Addressed, PTAL. I'll update the bug with new screenshots. https://chromiumcodereview.appspot.com/10514003/diff/17001/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): https://chromiumcodereview.appspot.com/10514003/diff/17001/chrome/browser/resources/extensions/extension_command_list.js#newcode224 chrome/browser/resources/extensions/extension_command_list.js:224: ...
8 years, 6 months ago (2012-06-06 15:39:50 UTC) #16
Evan Stade
https://chromiumcodereview.appspot.com/10514003/diff/29001/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): https://chromiumcodereview.appspot.com/10514003/diff/29001/chrome/browser/resources/extensions/extension_command_list.js#newcode19 chrome/browser/resources/extensions/extension_command_list.js:19: * keyboard event has been generated. @type doc for ...
8 years, 6 months ago (2012-06-06 23:04:45 UTC) #17
Finnur
Updated, PTAL. > wait, this isn't going to work on linux Not sure what you ...
8 years, 6 months ago (2012-06-07 12:40:34 UTC) #18
Finnur
And... forgot to publish my comments... https://chromiumcodereview.appspot.com/10514003/diff/29001/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): https://chromiumcodereview.appspot.com/10514003/diff/29001/chrome/browser/resources/extensions/extension_command_list.js#newcode225 chrome/browser/resources/extensions/extension_command_list.js:225: event.preventDefault(); I've added ...
8 years, 6 months ago (2012-06-07 12:41:01 UTC) #19
Evan Stade
8 years, 6 months ago (2012-06-07 19:23:03 UTC) #20
I just meant that I couldn't test it on my machine.

lgtm

Powered by Google App Engine
This is Rietveld 408576698