|
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
Total comments: 3
Total comments: 1
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
|
Total messages: 8 (0 generated)
|