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

Issue 10834106: Implement Keybinding for script badges. (Closed)

Created:
8 years, 4 months ago by Finnur
Modified:
8 years, 4 months ago
Reviewers:
Yoyo Zhou, sky, Evan Stade
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Implement Keybinding (Extension Commands) for script badges. With this change you can assign a shortcut to activate a visible script badge. Currently, the script badge will just show a synthesized popup, but once they become more fleshed out we can have a developer specified popup (or maybe an event, but that's not decided yet). BUG=139809, 140016 TEST=Specify a Commands section in the manifest of a script badge extension and watch it get activated on pressing the shortcut. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149817

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -73 lines) Patch
M chrome/browser/extensions/api/commands/command_service.h View 1 2 3 4 5 chunks +28 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 6 chunks +42 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_apitest.cc View 1 2 3 4 5 chunks +48 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_registry.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 1 2 3 2 chunks +57 lines, -19 lines 1 comment Download
M chrome/browser/ui/views/browser_action_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_image_view.h View 1 2 3 1 chunk +5 lines, -2 lines 1 comment Download
M chrome/browser/ui/views/location_bar/page_action_image_view.cc View 1 2 3 4 1 chunk +30 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/extensions/command_handler.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/extensions/command.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/extension.h View 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 2 chunks +3 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/background.js View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/manifest.json View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/popup.html View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/popup.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/show.html View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/keybinding/script_badge/show.js View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Finnur
Yoyo, can you be the main reviewer? Scott, can you give OWNERS approval for browser/ui ...
8 years, 4 months ago (2012-08-02 08:51:55 UTC) #1
Yoyo Zhou
basically LGTM http://codereview.chromium.org/10834106/diff/1023/chrome/browser/extensions/api/commands/command_service.h File chrome/browser/extensions/api/commands/command_service.h (right): http://codereview.chromium.org/10834106/diff/1023/chrome/browser/extensions/api/commands/command_service.h#newcode76 chrome/browser/extensions/api/commands/command_service.h:76: // the command is active. Returns false ...
8 years, 4 months ago (2012-08-02 09:59:29 UTC) #2
Finnur
Good points. All addressed. Also added two files, location_bar_view_gtk.[h|.cc], which was the remaining component for ...
8 years, 4 months ago (2012-08-02 11:06:35 UTC) #3
Yoyo Zhou
LGTM -- note that lint also has a few complaints. http://codereview.chromium.org/10834106/diff/2005/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/10834106/diff/2005/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode1909 ...
8 years, 4 months ago (2012-08-02 11:11:00 UTC) #4
sky
LGTM http://codereview.chromium.org/10834106/diff/12004/chrome/browser/ui/views/location_bar/page_action_image_view.h File chrome/browser/ui/views/location_bar/page_action_image_view.h (right): http://codereview.chromium.org/10834106/diff/12004/chrome/browser/ui/views/location_bar/page_action_image_view.h#newcode135 chrome/browser/ui/views/location_bar/page_action_image_view.h:135: // The extension command accelerator this script badge ...
8 years, 4 months ago (2012-08-02 15:12:46 UTC) #5
Finnur
Done. Thanks. On Thu, Aug 2, 2012 at 5:12 PM, <sky@chromium.org> wrote: > LGTM > ...
8 years, 4 months ago (2012-08-02 15:32:44 UTC) #6
Evan Stade
gtk lgtm http://codereview.chromium.org/10834106/diff/12004/chrome/browser/ui/gtk/location_bar_view_gtk.cc File chrome/browser/ui/gtk/location_bar_view_gtk.cc (right): http://codereview.chromium.org/10834106/diff/12004/chrome/browser/ui/gtk/location_bar_view_gtk.cc#newcode1916 chrome/browser/ui/gtk/location_bar_view_gtk.cc:1916: page_action_keybinding_.reset(new ui::AcceleratorGtk( why is there no easier ...
8 years, 4 months ago (2012-08-02 17:23:28 UTC) #7
Finnur
8 years, 4 months ago (2012-08-03 11:06:40 UTC) #8
Good question, not sure what the answer is. :)

Powered by Google App Engine
This is Rietveld 408576698