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 9224001: Fixes issue with accelerators when a menu is open (Closed)

Created:
8 years, 11 months ago by pkotwicz
Modified:
8 years, 10 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, tfarina, ben+watch_chromium.org
Visibility:
Public.

Description

Implements accelerator handling for menus on aura. BUG=105964 TEST=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120777

Patch Set 1 #

Patch Set 2 : nicer diff #

Total comments: 5

Patch Set 3 : Nested message loop implementation #

Patch Set 4 : Nicer diff #

Total comments: 20

Patch Set 5 : Changes as requested #

Patch Set 6 : Nicer diff #

Total comments: 9

Patch Set 7 : Changes as requested #

Patch Set 8 : Changes as requested #

Patch Set 9 : Nicer diff #

Total comments: 5

Patch Set 10 : Changes as requested #

Total comments: 2

Patch Set 11 : Changes as requested #

Total comments: 2

Patch Set 12 : Changes as requested #

Total comments: 1

Patch Set 13 : Changes as suggested by oshima #

Total comments: 2

Patch Set 14 : Changes as requested #

Patch Set 15 : Changes as requested #

Patch Set 16 : Nicer diff #

Total comments: 6

Patch Set 17 : Changes as requested #

Total comments: 6

Patch Set 18 : Changes as requested #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -0 lines) Patch
A ash/accelerators/accelerator_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 13 14 1 chunk +37 lines, -0 lines 0 comments Download
A ash/accelerators/accelerator_dispatcher.cc View 1 2 3 4 5 6 13 14 1 chunk +15 lines, -0 lines 0 comments Download
A ash/accelerators/accelerator_dispatcher_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +46 lines, -0 lines 0 comments Download
A ash/accelerators/accelerator_dispatcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +39 lines, -0 lines 0 comments Download
A ash/accelerators/nested_dispatcher_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +32 lines, -0 lines 1 comment Download
A ash/accelerators/nested_dispatcher_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +28 lines, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
A ui/aura/client/dispatcher_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +29 lines, -0 lines 0 comments Download
A ui/aura/client/dispatcher_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +31 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
pkotwicz
8 years, 11 months ago (2012-01-14 22:46:17 UTC) #1
oshima
sky should review this too. http://codereview.chromium.org/9224001/diff/2001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): http://codereview.chromium.org/9224001/diff/2001/ui/views/controls/menu/menu_controller.cc#newcode919 ui/views/controls/menu/menu_controller.cc:919: flags & kModifierFlagMask); just ...
8 years, 11 months ago (2012-01-19 18:29:48 UTC) #2
sky
This doesn't feel like the right place for this code. I like Sadrul's approach better ...
8 years, 11 months ago (2012-01-19 21:34:00 UTC) #3
pkotwicz
This is a trial for using the approach of using a nested dispatcher. For menu: ...
8 years, 11 months ago (2012-01-21 03:04:34 UTC) #4
oshima
http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler.cc File ash/accelerators/accelerator_handler.cc (right): http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler.cc#newcode7 ash/accelerators/accelerator_handler.cc:7: #include "base/message_loop.h" i believe you dont need this. http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler.cc#newcode16 ...
8 years, 11 months ago (2012-01-23 18:06:39 UTC) #5
pkotwicz
I fixed most of the issues as requested. The others I left comments about. Sky, ...
8 years, 11 months ago (2012-01-23 19:33:02 UTC) #6
pkotwicz
http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler_linux.cc File ash/accelerators/accelerator_handler_linux.cc (right): http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler_linux.cc#newcode22 ash/accelerators/accelerator_handler_linux.cc:22: ui::EF_ALT_DOWN); I put it here to mimic chromium/src/ash/accelerators/accelerator_filter.cc
8 years, 11 months ago (2012-01-23 19:34:56 UTC) #7
oshima
http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler.h File ash/accelerators/accelerator_handler.h (right): http://codereview.chromium.org/9224001/diff/7002/ash/accelerators/accelerator_handler.h#newcode17 ash/accelerators/accelerator_handler.h:17: class ASH_EXPORT AcceleratorHandler : public MessageLoop::Dispatcher { On 2012/01/23 ...
8 years, 11 months ago (2012-01-23 21:40:51 UTC) #8
sky
http://codereview.chromium.org/9224001/diff/10006/ash/accelerators/accelerator_handler.cc File ash/accelerators/accelerator_handler.cc (right): http://codereview.chromium.org/9224001/diff/10006/ash/accelerators/accelerator_handler.cc#newcode11 ash/accelerators/accelerator_handler.cc:11: nested_dispatcher_ = nested_dispatcher; Use member initializer list. http://codereview.chromium.org/9224001/diff/10006/ash/accelerators/accelerator_handler.h File ...
8 years, 11 months ago (2012-01-23 23:14:34 UTC) #9
pkotwicz
Added windows implementation. Renamed classes to AcceleratorDispatcher
8 years, 11 months ago (2012-01-25 18:28:29 UTC) #10
oshima
thanks, looks better. http://codereview.chromium.org/9224001/diff/23007/ash/accelerators/accelerator_dispatcher.h File ash/accelerators/accelerator_dispatcher.h (right): http://codereview.chromium.org/9224001/diff/23007/ash/accelerators/accelerator_dispatcher.h#newcode13 ash/accelerators/accelerator_dispatcher.h:13: Please add description what this is ...
8 years, 11 months ago (2012-01-25 18:38:56 UTC) #11
pkotwicz
Changes as requested. Will deal with Mac part in separate patch
8 years, 11 months ago (2012-01-25 21:05:23 UTC) #12
pkotwicz
8 years, 11 months ago (2012-01-25 21:05:32 UTC) #13
oshima
http://codereview.chromium.org/9224001/diff/22007/ash/accelerators/accelerator_dispatcher.h File ash/accelerators/accelerator_dispatcher.h (right): http://codereview.chromium.org/9224001/diff/22007/ash/accelerators/accelerator_dispatcher.h#newcode28 ash/accelerators/accelerator_dispatcher.h:28: XEvent* xev) OVERRIDE; This doesn't make sense for mac ...
8 years, 11 months ago (2012-01-25 21:24:37 UTC) #14
pkotwicz
8 years, 11 months ago (2012-01-26 16:52:48 UTC) #15
oshima
lgtm with nits. Please ask sky for owners review. http://codereview.chromium.org/9224001/diff/26002/ash/accelerators/accelerator_dispatcher.h File ash/accelerators/accelerator_dispatcher.h (right): http://codereview.chromium.org/9224001/diff/26002/ash/accelerators/accelerator_dispatcher.h#newcode18 ash/accelerators/accelerator_dispatcher.h:18: ...
8 years, 11 months ago (2012-01-26 17:02:55 UTC) #16
pkotwicz
8 years, 11 months ago (2012-01-26 17:58:34 UTC) #17
sky
LGTM http://codereview.chromium.org/9224001/diff/24015/ash/accelerators/accelerator_dispatcher.h File ash/accelerators/accelerator_dispatcher.h (right): http://codereview.chromium.org/9224001/diff/24015/ash/accelerators/accelerator_dispatcher.h#newcode17 ash/accelerators/accelerator_dispatcher.h:17: // TODO(pkotwicz): Port AcceleratorDispatcher to mac. Document why ...
8 years, 11 months ago (2012-01-26 18:26:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/9224001/24015
8 years, 11 months ago (2012-01-26 18:34:51 UTC) #19
commit-bot: I haz the power
Try job failure for 9224001-24015 (retry) on linux_rel for step "check_deps". It's a second try, ...
8 years, 11 months ago (2012-01-26 20:15:44 UTC) #20
pkotwicz
8 years, 11 months ago (2012-01-27 03:27:06 UTC) #21
oshima
http://codereview.chromium.org/9224001/diff/2003/ui/aura/client/accelerator_client.h File ui/aura/client/accelerator_client.h (right): http://codereview.chromium.org/9224001/diff/2003/ui/aura/client/accelerator_client.h#newcode26 ui/aura/client/accelerator_client.h:26: virtual bool Process(const ui::Accelerator& accelerator) = 0; Can you ...
8 years, 11 months ago (2012-01-27 21:41:34 UTC) #22
pkotwicz
I think this is what you wanted. I did not put wm accelerator handling as ...
8 years, 11 months ago (2012-01-27 23:43:49 UTC) #23
oshima
On 2012/01/27 23:43:49, pkotwicz wrote: > I think this is what you wanted. > > ...
8 years, 10 months ago (2012-01-30 23:04:11 UTC) #24
pkotwicz
Changes as requested. accelerator_dispatcher*.* is mostly same as used to be except that they handle ...
8 years, 10 months ago (2012-01-31 14:55:39 UTC) #25
oshima
http://codereview.chromium.org/9224001/diff/35001/ash/accelerators/accelerator_dispatcher_linux.cc File ash/accelerators/accelerator_dispatcher_linux.cc (right): http://codereview.chromium.org/9224001/diff/35001/ash/accelerators/accelerator_dispatcher_linux.cc#newcode29 ash/accelerators/accelerator_dispatcher_linux.cc:29: return EVENT_PROCESSED; I believe you need to call return ...
8 years, 10 months ago (2012-01-31 18:19:52 UTC) #26
pkotwicz
http://codereview.chromium.org/9224001/diff/35001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): http://codereview.chromium.org/9224001/diff/35001/ui/views/controls/menu/menu_controller.cc#newcode325 ui/views/controls/menu/menu_controller.cc:325: DCHECK(dispatcher_client); On 2012/01/31 18:19:52, oshima wrote: > no need ...
8 years, 10 months ago (2012-01-31 20:01:07 UTC) #27
oshima
lgtm with nits. http://codereview.chromium.org/9224001/diff/38002/ash/accelerators/accelerator_dispatcher_linux.cc File ash/accelerators/accelerator_dispatcher_linux.cc (right): http://codereview.chromium.org/9224001/diff/38002/ash/accelerators/accelerator_dispatcher_linux.cc#newcode17 ash/accelerators/accelerator_dispatcher_linux.cc:17: #include "base/message_pump_x.h" are these two necessary? ...
8 years, 10 months ago (2012-01-31 20:42:00 UTC) #28
pkotwicz
http://codereview.chromium.org/9224001/diff/38002/ash/accelerators/accelerator_dispatcher_linux.cc File ash/accelerators/accelerator_dispatcher_linux.cc (right): http://codereview.chromium.org/9224001/diff/38002/ash/accelerators/accelerator_dispatcher_linux.cc#newcode34 ash/accelerators/accelerator_dispatcher_linux.cc:34: if (shell->IsScreenLocked()) I need to use shell later, so ...
8 years, 10 months ago (2012-02-01 19:11:31 UTC) #29
pkotwicz
sky for OWNERS
8 years, 10 months ago (2012-02-02 15:43:37 UTC) #30
sky
8 years, 10 months ago (2012-02-03 17:23:12 UTC) #31
LGTM

http://codereview.chromium.org/9224001/diff/38004/ash/accelerators/nested_dis...
File ash/accelerators/nested_dispatcher_controller.h (right):

http://codereview.chromium.org/9224001/diff/38004/ash/accelerators/nested_dis...
ash/accelerators/nested_dispatcher_controller.h:27:
DISALLOW_COPY_AND_ASSIGN(NestedDispatcherController);
private:

Powered by Google App Engine
This is Rietveld 408576698