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

Issue 9812008: Polish the keybinding implementation a bit. (Closed)

Created:
8 years, 9 months ago by Finnur
Modified:
8 years, 8 months ago
CC:
chromium-reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Polish the keybinding implementation a bit. - Make it require manifest version 2. - Change 'key' to 'suggested_key', allow it to be a string or a dictionary with platforms and/or 'default' listed. - Converted browser_action in manifest to _execute_browser_action, since that keyword is reserved (same for page action). - Remove normalization of suggested_key (stop supporting Ctrl - foo, now only Ctrl+foo and make it case sensitive). - Added methods to fetch just browser actions/just page actions (or all others), which is what you'd commonly want. BUG=27702 TEST=Covered by automated tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130114

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 13

Patch Set 8 : #

Patch Set 9 : #

Total comments: 1

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -172 lines) Patch
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -12 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/experimental.keybinding.html View 1 2 3 4 5 6 7 2 chunks +26 lines, -12 lines 0 comments Download
M chrome/common/extensions/docs/static/experimental.keybinding.html View 1 2 3 4 5 6 7 3 chunks +26 lines, -13 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 4 chunks +152 lines, -45 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +108 lines, -19 lines 0 comments Download
M chrome/test/data/extensions/api_test/keybinding/basics/manifest.json View 1 2 3 4 5 6 7 1 chunk +12 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/keybinding/page_action/manifest.json View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Finnur
This is what you requested in email. I'm hoping you are back from your OOO. ...
8 years, 9 months ago (2012-03-21 14:32:45 UTC) #1
Aaron Boodman
http://codereview.chromium.org/9812008/diff/2004/chrome/browser/ui/views/browser_actions_container.cc File chrome/browser/ui/views/browser_actions_container.cc (right): http://codereview.chromium.org/9812008/diff/2004/chrome/browser/ui/views/browser_actions_container.cc#newcode120 chrome/browser/ui/views/browser_actions_container.cc:120: extension_->GetCommandByType(Extension::ExtensionKeybinding::BROWSER_ACTION, Can you change Extension to store these commands ...
8 years, 9 months ago (2012-03-21 21:05:04 UTC) #2
Finnur
Didn't update the code, just had a couple of questions... http://codereview.chromium.org/9812008/diff/2004/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/9812008/diff/2004/chrome/common/extensions/extension.cc#newcode252 ...
8 years, 9 months ago (2012-03-21 22:42:12 UTC) #3
Aaron Boodman
On 2012/03/21 22:42:12, Finnur wrote: > Didn't update the code, just had a couple of ...
8 years, 9 months ago (2012-03-21 22:47:03 UTC) #4
Finnur
Updated. PTAL.
8 years, 9 months ago (2012-03-22 19:54:54 UTC) #5
Finnur
Aaron, PTAL?
8 years, 9 months ago (2012-03-26 16:37:09 UTC) #6
Aaron Boodman
http://codereview.chromium.org/9812008/diff/18004/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): http://codereview.chromium.org/9812008/diff/18004/chrome/common/extensions/extension.h#newcode178 chrome/common/extensions/extension.h:178: typedef std::map<std::string, ExtensionKeybinding> Commands; Naming nit: CommandMap? Just commands ...
8 years, 9 months ago (2012-03-26 21:44:57 UTC) #7
Finnur
PTAL? http://codereview.chromium.org/9812008/diff/18004/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): http://codereview.chromium.org/9812008/diff/18004/chrome/common/extensions/extension.h#newcode559 chrome/common/extensions/extension.h:559: const ExtensionKeybinding* browser_action_command() const { Traditional perhaps, but ...
8 years, 8 months ago (2012-03-29 14:57:27 UTC) #8
Aaron Boodman
LGTM, but please correct the problem with backward compat here: http://codereview.chromium.org/9812008/diff/35004/chrome/common/extensions/extension.cc#newcode337 http://codereview.chromium.org/9812008/diff/18004/chrome/common/extensions/extension.h File chrome/common/extensions/extension.h (right): ...
8 years, 8 months ago (2012-03-29 20:57:28 UTC) #9
Finnur
Done. That just leaves a final try bot run and OWNERS LG's. Elliot, can you ...
8 years, 8 months ago (2012-03-30 11:27:45 UTC) #10
sky
LGTM
8 years, 8 months ago (2012-03-30 16:01:37 UTC) #11
Elliot Glaysher
8 years, 8 months ago (2012-03-30 16:42:15 UTC) #12
gtk lgtm

Powered by Google App Engine
This is Rietveld 408576698