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

Issue 8465021: Add ShellAcceleratorController that managers global keyboard accelerators. (Closed)

Created:
9 years, 1 month ago by mazda
Modified:
9 years, 1 month ago
CC:
chromium-reviews, tfarina
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add ShellAcceleratorController that manages global keyboard accelerators. - Create ShellAcceleratorController that manages global keyboard accelerators and also processes several accelerators as a target. - Create ShellAcceleratorFilter, which is used by DesktopEventFilter to handle accelerators. - Add a function to Shell for accessing ShellAcceleratorController. BUG=97255 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110637

Patch Set 1 #

Patch Set 2 : Rebase and move registration functions to Shell from Desktop #

Patch Set 3 : Fix win_aura build #

Total comments: 14

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Move AcceleratorPressed to Shell from Desktop #

Total comments: 1

Patch Set 6 : Add ShellAcceleratorController #

Total comments: 8

Patch Set 7 : Address tfarina's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -56 lines) Patch
M ui/aura/desktop.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/desktop.cc View 1 2 3 4 5 4 chunks +6 lines, -55 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura_shell/desktop_event_filter.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M ui/aura_shell/desktop_event_filter.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M ui/aura_shell/shell.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M ui/aura_shell/shell.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A ui/aura_shell/shell_accelerator_controller.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A ui/aura_shell/shell_accelerator_controller.cc View 1 2 3 4 5 1 chunk +126 lines, -0 lines 0 comments Download
A ui/aura_shell/shell_accelerator_filter.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A ui/aura_shell/shell_accelerator_filter.cc View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mazda
9 years, 1 month ago (2011-11-10 14:38:42 UTC) #1
mazda
I submitted the CLs on which this CL depended and rebased. I modified the CL ...
9 years, 1 month ago (2011-11-15 13:51:15 UTC) #2
tfarina
http://codereview.chromium.org/8465021/diff/3011/ui/aura_shell/global_accelerator_filter.cc File ui/aura_shell/global_accelerator_filter.cc (right): http://codereview.chromium.org/8465021/diff/3011/ui/aura_shell/global_accelerator_filter.cc#newcode17 ui/aura_shell/global_accelerator_filter.cc:17: } nit: } // namespace http://codereview.chromium.org/8465021/diff/3011/ui/aura_shell/global_accelerator_filter.cc#newcode38 ui/aura_shell/global_accelerator_filter.cc:38: aura_shell::Shell::GetInstance()->accelerator_manager()->Process( can ...
9 years, 1 month ago (2011-11-15 15:46:22 UTC) #3
mazda
Thank you for the review. http://codereview.chromium.org/8465021/diff/3011/ui/aura_shell/global_accelerator_filter.cc File ui/aura_shell/global_accelerator_filter.cc (right): http://codereview.chromium.org/8465021/diff/3011/ui/aura_shell/global_accelerator_filter.cc#newcode17 ui/aura_shell/global_accelerator_filter.cc:17: } On 2011/11/15 15:46:23, ...
9 years, 1 month ago (2011-11-15 16:16:29 UTC) #4
Ben Goodger (Google)
Excellent change! http://codereview.chromium.org/8465021/diff/8002/ui/aura/desktop.cc File ui/aura/desktop.cc (right): http://codereview.chromium.org/8465021/diff/8002/ui/aura/desktop.cc#newcode411 ui/aura/desktop.cc:411: bool Desktop::AcceleratorPressed(const ui::Accelerator& accelerator) { We should ...
9 years, 1 month ago (2011-11-15 16:28:09 UTC) #5
mazda
Thank you for the review. http://codereview.chromium.org/8465021/diff/8002/ui/aura/desktop.cc File ui/aura/desktop.cc (right): http://codereview.chromium.org/8465021/diff/8002/ui/aura/desktop.cc#newcode411 ui/aura/desktop.cc:411: bool Desktop::AcceleratorPressed(const ui::Accelerator& accelerator) ...
9 years, 1 month ago (2011-11-16 05:40:08 UTC) #6
Ben Goodger (Google)
Almost there... http://codereview.chromium.org/8465021/diff/3013/ui/aura_shell/shell.h File ui/aura_shell/shell.h (right): http://codereview.chromium.org/8465021/diff/3013/ui/aura_shell/shell.h#newcode42 ui/aura_shell/shell.h:42: class AURA_SHELL_EXPORT Shell : public ui::AcceleratorTarget { ...
9 years, 1 month ago (2011-11-16 16:16:10 UTC) #7
mazda
On 2011/11/16 16:16:10, Ben Goodger (Google) wrote: > Almost there... > > http://codereview.chromium.org/8465021/diff/3013/ui/aura_shell/shell.h > File ...
9 years, 1 month ago (2011-11-16 16:47:48 UTC) #8
Ben Goodger (Google)
Maybe just add a ToggleFullscreen method to Desktop rather than exposing the host?
9 years, 1 month ago (2011-11-16 17:08:42 UTC) #9
mazda
On 2011/11/16 17:08:42, Ben Goodger (Google) wrote: > Maybe just add a ToggleFullscreen method to ...
9 years, 1 month ago (2011-11-16 17:51:25 UTC) #10
mazda
I added ShellAcceleratorController, and renamed GlobalAcceleratorFilter to ShellAcceleratorFilter for consistency. Please take another look. Thanks,
9 years, 1 month ago (2011-11-17 12:34:35 UTC) #11
tfarina
http://codereview.chromium.org/8465021/diff/14001/ui/aura_shell/shell.h File ui/aura_shell/shell.h (right): http://codereview.chromium.org/8465021/diff/14001/ui/aura_shell/shell.h#newcode31 ui/aura_shell/shell.h:31: class Launcher; Launcher should be first ;) sort up! ...
9 years, 1 month ago (2011-11-17 12:49:55 UTC) #12
mazda
Thank you for the comments. http://codereview.chromium.org/8465021/diff/14001/ui/aura_shell/shell.h File ui/aura_shell/shell.h (right): http://codereview.chromium.org/8465021/diff/14001/ui/aura_shell/shell.h#newcode31 ui/aura_shell/shell.h:31: class Launcher; On 2011/11/17 ...
9 years, 1 month ago (2011-11-17 13:10:16 UTC) #13
Ben Goodger (Google)
LGTM
9 years, 1 month ago (2011-11-17 20:53:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/8465021/17002
9 years, 1 month ago (2011-11-18 01:03:24 UTC) #15
commit-bot: I haz the power
9 years, 1 month ago (2011-11-18 02:09:45 UTC) #16
Change committed as 110637

Powered by Google App Engine
This is Rietveld 408576698