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

Issue 25007002: Add GTK support for global Extension Commands (Closed)

Created:
7 years, 2 months ago by zhchbin
Modified:
7 years, 2 months ago
Reviewers:
Finnur
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add GTK support for global Extension Commands (CL based on Finnur's CL). BUG=TBD

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments. #

Total comments: 4

Patch Set 3 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+924 lines, -13 lines) Patch
M chrome/browser/extensions/api/commands/command_service.h View 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/commands/commands.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/extensions/extension_commands_global_registry.h View 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_commands_global_registry.cc View 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_keybinding_registry.cc View 1 chunk +4 lines, -2 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener.h View 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener.cc View 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_gtk.h View 1 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_gtk.cc View 1 2 1 chunk +155 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_mac.h View 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_mac.cc View 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_win.h View 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/extensions/global_shortcut_listener_win.cc View 1 chunk +112 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_keybinding_registry_cocoa.mm View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/command_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/commands/commands_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/extensions/command.h View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/common/extensions/command.cc View 3 chunks +10 lines, -3 lines 0 comments Download
M extensions/common/manifest_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/manifest_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/win/singleton_hwnd.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Finnur
https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc File chrome/browser/extensions/global_shortcut_listener_gtk.cc (right): https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode22 chrome/browser/extensions/global_shortcut_listener_gtk.cc:22: static const unsigned int kModifiersMasks[] = { I would ...
7 years, 2 months ago (2013-09-27 10:35:02 UTC) #1
zhchbin
https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc File chrome/browser/extensions/global_shortcut_listener_gtk.cc (right): https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode22 chrome/browser/extensions/global_shortcut_listener_gtk.cc:22: static const unsigned int kModifiersMasks[] = { On 2013/09/27 ...
7 years, 2 months ago (2013-09-27 13:47:20 UTC) #2
Finnur
Pretty happy with how this is turning out on GTK. Thanks for your work on ...
7 years, 2 months ago (2013-09-27 14:01:26 UTC) #3
zhchbin
On 2013/09/27 14:01:26, Finnur wrote: > Pretty happy with how this is turning out on ...
7 years, 2 months ago (2013-09-27 14:39:36 UTC) #4
Finnur
7 years, 2 months ago (2013-09-27 14:55:49 UTC) #5
No problem.


On Fri, Sep 27, 2013 at 2:39 PM, <zhchbin@gmail.com> wrote:

> On 2013/09/27 14:01:26, Finnur wrote:
>
>> Pretty happy with how this is turning out on GTK. Thanks for your work on
>>
> this.
>
>> Do you want me to incorporate this into my changelist (and attribute it to
>>
> you)
>
>> or do you want to do a followup CL after I check my stuff in?
>>
>
>  Besides that question, just a couple of nits:
>>
>
>
> https://codereview.chromium.**org/25007002/diff/1/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc<https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc>
>
>> File chrome/browser/extensions/**global_shortcut_listener_gtk.**cc
>> (right):
>>
>
>
> https://codereview.chromium.**org/25007002/diff/1/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc#**newcode102<https://codereview.chromium.org/25007002/diff/1/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode102>
>
>> chrome/browser/extensions/**global_shortcut_listener_gtk.**cc:102: <<
>> accelerator.GetShortcutText();
>> I thought we had the error, but I guess not. That's fine. No worries.
>>
>
>
> https://codereview.chromium.**org/25007002/diff/5001/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc<https://codereview.chromium.org/25007002/diff/5001/chrome/browser/extensions/global_shortcut_listener_gtk.cc>
>
>> File chrome/browser/extensions/**global_shortcut_listener_gtk.**cc
>> (right):
>>
>
>
> https://codereview.chromium.**org/25007002/diff/5001/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc#**newcode22<https://codereview.chromium.org/25007002/diff/5001/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode22>
>
>> chrome/browser/extensions/**global_shortcut_listener_gtk.**cc:22: // The
>> modifiers
>> masks used for grabing keys. Due to XGrabKey only works on
>> s/works/working/
>>
>
>
> https://codereview.chromium.**org/25007002/diff/5001/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc#**newcode23<https://codereview.chromium.org/25007002/diff/5001/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode23>
>
>> chrome/browser/extensions/**global_shortcut_listener_gtk.**cc:23: //
>> exact
>> modifiers, we need to grab all key combination including zero or more
>> s/more/more of the/
>>
>
>
> https://codereview.chromium.**org/25007002/diff/5001/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc#**newcode24<https://codereview.chromium.org/25007002/diff/5001/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode24>
>
>> chrome/browser/extensions/**global_shortcut_listener_gtk.**cc:24: //
>> following
>>
> lock
>
>> keys: Num lock, Caps lock and Scroll lock. So that we can make
>> Remove 'lock keys'.
>>
>
>
> https://codereview.chromium.**org/25007002/diff/5001/chrome/**
>
browser/extensions/global_**shortcut_listener_gtk.cc#**newcode25<https://codereview.chromium.org/25007002/diff/5001/chrome/browser/extensions/global_shortcut_listener_gtk.cc#newcode25>
>
>> chrome/browser/extensions/**global_shortcut_listener_gtk.**cc:25: //
>> sure the
>> behavior of global command keep consistency with other platforms.
>> End this with: "behavior of global shortcuts is consistent on all
>> platforms".
>>
>
> Thanks for the review. Will update tomorrow, just back from my lab (My
> computer
> for developing is there).  I prefer a followup CL. It would be better due
> to the
> difference of our timezone.
>
>
https://codereview.chromium.**org/25007002/<https://codereview.chromium.org/2...
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698