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

Issue 10824307: Port Extension Commands to Mac. (Closed)

Created:
8 years, 4 months ago by Finnur
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Port Extension Commands to Mac. This implements the Mac part of Extension Commands for Browser Actions, Page Actions, Script Badges and Named Commands. Known issues: Support for specifying Command key as a shortcut is not yet fully implemented. BUG=27702 TEST=Automated test included. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152076

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -25 lines) Patch
M chrome/browser/extensions/api/commands/command_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_keybinding_apitest.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/chrome_event_processing_window.mm View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 1 5 chunks +30 lines, -3 lines 0 comments Download
A chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.h View 1 2 3 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm View 1 2 1 chunk +149 lines, -0 lines 6 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm View 1 4 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/command_handler.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/common/extensions/command.cc View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/test/data/extensions/api_test/keybinding/basics/manifest.json View 1 2 chunks +1 line, -2 lines 0 comments Download
M ui/base/accelerators/accelerator.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Finnur
This is my first proper Mac changelist (from a total Mac newbie) so keep that ...
8 years, 4 months ago (2012-08-15 13:54:32 UTC) #1
James Hawkins
> James: > chrome/browser/ui/webui/extensions/command_handler.cc > chrome/chrome_browser.gypi > chrome/common/chrome_notification_types.h > LGTM
8 years, 4 months ago (2012-08-15 15:33:44 UTC) #2
Yoyo Zhou
On 2012/08/15 13:54:32, Finnur wrote: > Yoyo: > chrome/browser/extensions/api/commands/command_service.cc > chrome/browser/extensions/extension_keybinding_apitest.cc > chrome/common/extensions/command.cc > chrome/test/data/extensions/api_test/keybinding/basics/manifest.json ...
8 years, 4 months ago (2012-08-15 17:10:44 UTC) #3
Nico
The change to the one file I looked at lgtm. All the interesting code is ...
8 years, 4 months ago (2012-08-15 17:46:39 UTC) #4
Scott Hess - ex-Googler
I see that nico started reviewing since I started. I assume you added me for ...
8 years, 4 months ago (2012-08-15 19:35:57 UTC) #5
Nico
On 2012/08/15 19:35:57, shess wrote: > I see that nico started reviewing since I started. ...
8 years, 4 months ago (2012-08-15 19:37:22 UTC) #6
Finnur
I added you (Scott) as pretty much the main reviewer due to your expertise in ...
8 years, 4 months ago (2012-08-15 20:51:53 UTC) #7
Scott Hess - ex-Googler
http://codereview.chromium.org/10824307/diff/8001/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm File chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm (right): http://codereview.chromium.org/10824307/diff/8001/chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm#newcode150 chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm:150: event_targets_.erase(old); Yeah, 149/150 look right, I'm more concerned about ...
8 years, 4 months ago (2012-08-15 21:07:03 UTC) #8
Finnur
Yup. That's what I thought you were suggesting. Thanks! I'll take a look at it ...
8 years, 4 months ago (2012-08-15 21:17:08 UTC) #9
Finnur
Due to the +7hr time difference it would mean a lot to me to get ...
8 years, 4 months ago (2012-08-16 00:40:21 UTC) #10
Scott Hess - ex-Googler
http://codereview.chromium.org/10824307/diff/8001/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): http://codereview.chromium.org/10824307/diff/8001/chrome/browser/ui/cocoa/browser_window_controller.h#newcode282 chrome/browser/ui/cocoa/browser_window_controller.h:282: - (BOOL)HandledByExtensionCommand:(NSEvent*)event; Just in case you missed it, -handledByExtensionCommand: ...
8 years, 4 months ago (2012-08-16 04:56:36 UTC) #11
Finnur
All done. Let me know if this meets your approval, Scott.
8 years, 4 months ago (2012-08-16 13:47:45 UTC) #12
Finnur
And, forgot to reply to Nico's comments about tests and such: > You should have ...
8 years, 4 months ago (2012-08-16 16:23:37 UTC) #13
Nico
Re non-latin: this is upper easy to test, just open system preferences, languages, add some ...
8 years, 4 months ago (2012-08-16 16:49:57 UTC) #14
Finnur
On 2012/08/16 16:49:57, Nico wrote: > Re non-latin: this is upper easy to test, just ...
8 years, 4 months ago (2012-08-16 17:56:49 UTC) #15
Nico
On Thu, Aug 16, 2012 at 10:56 AM, <finnur@chromium.org> wrote: > On 2012/08/16 16:49:57, Nico ...
8 years, 4 months ago (2012-08-16 17:58:23 UTC) #16
Scott Hess - ex-Googler
lgtm with minor changes. Though I admit that I'm not entirely sure what the symbolic ...
8 years, 4 months ago (2012-08-16 20:36:59 UTC) #17
Finnur
> Though I admit that I'm not entirely sure what the > symbolic key name ...
8 years, 4 months ago (2012-08-16 23:07:10 UTC) #18
Scott Hess - ex-Googler
On 2012/08/16 23:07:10, Finnur wrote: > > Though I admit that I'm not entirely sure ...
8 years, 4 months ago (2012-08-16 23:26:19 UTC) #19
Finnur
8 years, 4 months ago (2012-08-16 23:54:33 UTC) #20
Correct.

Thanks to all for reviewing!

Powered by Google App Engine
This is Rietveld 408576698