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

Issue 10383240: This adds a webui overlay on the extensions page for showing what Extension keybindings are active.… (Closed)

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

Description

This adds a webui overlay on the extensions page for showing what Extension keybindings are active. Doesn't allow you to change anything yet (future changelist). This is the precursor to Extension Commands Conflict Resolution. BUG=121420 TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138145

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+607 lines, -66 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/commands/extension_command_service.h View 1 2 3 3 chunks +34 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/commands/extension_command_service.cc View 1 2 3 9 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/commands/extension_command_service_factory.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/commands/extension_command_service_factory.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/resources/extensions/extension_command_list.js View 1 2 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_commands_overlay.css View 1 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_commands_overlay.html View 1 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/resources/extensions/extension_commands_overlay.js View 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.css View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/resources/extensions/extensions.html View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/resources/extensions/extensions.js View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble.cc View 1 2 3 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 3 1 chunk +6 lines, -3 lines 0 comments Download
A chrome/browser/ui/webui/extensions/extension_commands_handler.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/extensions/extension_commands_handler.cc View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.cc View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_commands.h View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_commands.cc View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_commands_unittest.cc View 1 2 3 4 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Finnur
Ben, Aaron, Elliot and Evan, please find your monikers below along with further instructions: beng, ...
8 years, 7 months ago (2012-05-18 15:36:29 UTC) #1
Ben Goodger (Google)
random browser ui stuff not covered by other reviewers: LGTM
8 years, 7 months ago (2012-05-18 15:58:55 UTC) #2
Elliot Glaysher
gtk lgtm
8 years, 7 months ago (2012-05-18 16:54:04 UTC) #3
Evan Stade
https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/extensions/extension_command_list.js#newcode33 chrome/browser/resources/extensions/extension_command_list.js:33: createExtensionNode_: function(extension) { createNodeForExtension is more apt https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/extensions/extension_command_list.js#newcode35 chrome/browser/resources/extensions/extension_command_list.js:35: ...
8 years, 7 months ago (2012-05-18 21:08:26 UTC) #4
Finnur
Thanks for the comments, Evan. I have addressed them with a couple of exceptions (see ...
8 years, 7 months ago (2012-05-18 22:02:04 UTC) #5
Evan Stade
https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/extensions/extension_command_list.js File chrome/browser/resources/extensions/extension_command_list.js (right): https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/extensions/extension_command_list.js#newcode35 chrome/browser/resources/extensions/extension_command_list.js:35: '.extension-command-list-extension-item-wrapper'); On 2012/05/18 22:02:04, Finnur wrote: > Wait... Continuations ...
8 years, 7 months ago (2012-05-18 22:14:22 UTC) #6
Finnur
Updated. https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/shared/js/load_time_data.js File chrome/browser/resources/shared/js/load_time_data.js (right): https://chromiumcodereview.appspot.com/10383240/diff/1/chrome/browser/resources/shared/js/load_time_data.js#newcode47 chrome/browser/resources/shared/js/load_time_data.js:47: // GetLocalizedValues() in your handler class (in C++) ...
8 years, 7 months ago (2012-05-18 22:27:01 UTC) #7
Evan Stade
lgtm
8 years, 7 months ago (2012-05-18 22:31:34 UTC) #8
Aaron Boodman
Low priority nit: In general, a file in (browser|common|renderer)/extensions directory should be named bar.h and ...
8 years, 7 months ago (2012-05-19 05:33:25 UTC) #9
Finnur
8 years, 7 months ago (2012-05-21 21:28:43 UTC) #10
https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
File chrome/browser/extensions/api/commands/extension_command_service.h (right):

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
chrome/browser/extensions/api/commands/extension_command_service.h:34: class
ExtensionCommandService : public ProfileKeyedService,
How about a separate changelist, so as to not mess up the review diffs?

On 2012/05/19 05:33:26, Aaron Boodman wrote:
> I may have already mentioned this, and it's a low priority, but:
> 
> extensions::CommandService - then you rename the file to be shorter, and
whoever
> owns this can call it just command_service.

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
chrome/browser/extensions/api/commands/extension_command_service.h:39: enum
ExtensionCommandQueryType {
On 2012/05/19 05:33:26, Aaron Boodman wrote:
> Seems like QueryType is sufficient.

Done.

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
chrome/browser/extensions/api/commands/extension_command_service.h:59: // Gets
the keybinding (if any) for the browser action of an extension given
Did not mean to change it. I'm hesitant to remove the code on the basis that we
might remove support for page actions at some point in the future. It would be
kind of weird to only support browser actions in the interim.

On 2012/05/19 05:33:26, Aaron Boodman wrote:
> Did you mean to change this? Also, we're killing page actions. It probably
makes
> sense to skip supporting them with keybindings. Sorry I didn't realize this
> earlier.

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
chrome/browser/extensions/api/commands/extension_command_service.h:77: void
GetAllCommands(base::DictionaryValue* commands);
On 2012/05/19 05:33:26, Aaron Boodman wrote:
> Weird to have an interface that deals in Values here. Seems like the UI layer
> should just call GetNamedCommands() and GetBrowserActionCommand() directly,
and
> handle the construction of the DictionaryValue itself.

Done.

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/browser/exte...
chrome/browser/extensions/api/commands/extension_command_service.h:117:
base::DictionaryValue* CreateExtensionDetailValue(
On 2012/05/19 05:33:26, Aaron Boodman wrote:
> Seems like this should be Command::ToValue().

Done.

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/common/exten...
File chrome/common/extensions/extension_commands.h (left):

https://chromiumcodereview.appspot.com/10383240/diff/1028/chrome/common/exten...
chrome/common/extensions/extension_commands.h:1: // Copyright (c) 2012 The
Chromium Authors. All rights reserved.
Sure. OK for followup changelist?

On 2012/05/19 05:33:26, Aaron Boodman wrote:
> Nit: This file could be called 'commands.h' for more shortness.

Powered by Google App Engine
This is Rietveld 408576698