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

Issue 1138523006: Enable keyboard accelerators while a menu is open (Closed)

Created:
5 years, 7 months ago by afakhry
Modified:
5 years, 3 months ago
Reviewers:
pkotwicz, oshima, sky, tdresser
CC:
chromium-reviews, yusukes+watch_chromium.org, derat+watch_chromium.org, tfarina, mazda+watch_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable keyboard accelerators while a menu is open We're now using a pre-target event handler (the MenuEventFilter) to handle key events when a menu is present. BUG=476893, 401690 TEST=views_unittests --gtest_filter=MenuControllerTest.* Committed: https://crrev.com/692024d9d32cfe3ddc01143243c4b99e43261954 Cr-Commit-Position: refs/heads/master@{#348632}

Patch Set 1 #

Patch Set 2 : A different organization of the files and architecture #

Patch Set 3 : gn file modified #

Patch Set 4 : Fixed interactive-ui-tests failures #

Patch Set 5 : Minor fix #

Patch Set 6 : Not checking for mnemonics if Alt or Ctrl are pressed. #

Patch Set 7 : [WIP] Clean up #

Patch Set 8 : More cleanups + Fixed MenuControllerTests #

Patch Set 9 : [WIP]: Handling WM_CONTEXTMENU on Windows #

Patch Set 10 : [WIP]: menu_event_filter.* are in views aura sources only #

Patch Set 11 : [WIP]: Rebase #

Patch Set 12 : Working solution (Even on Windows) #

Total comments: 16

Patch Set 13 : Handling oshima's comments #

Total comments: 19

Patch Set 14 : Rebase #

Patch Set 15 : Reposting accelerators after MessageLoop has terminated. #

Total comments: 12

Patch Set 16 : Addressing pkotwicz's comments #

Patch Set 17 : While in drag-n-drop, reposting accelerator after MenuRunnerImpl::MenuDone #

Patch Set 18 : Rebase, update tests, modify based on recent pkotwicz's refactor #

Total comments: 1

Patch Set 19 : Fixed tests errors. #

Total comments: 18

Patch Set 20 : pkotwicz's comments #

Patch Set 21 : fixed a bug in restoring the delegate of the parent nested runloop. #

Total comments: 21

Patch Set 22 : handling few more comments #

Total comments: 2

Patch Set 23 : Better way of removing MenuEventFilter from the pre-target handlers and doing that only once #

Patch Set 24 : The filter removal closure shouldn't run on Windows or if null. #

Patch Set 25 : Don't stop the event's propagation when the menu has exited. #

Total comments: 15

Patch Set 26 : Passing the delegate to the ctor. #

Total comments: 37

Patch Set 27 : More comments #

Total comments: 2

Patch Set 28 : Nits #

Total comments: 28

Patch Set 29 : oshima's comments #

Patch Set 30 : #

Total comments: 14

Patch Set 31 : #

Patch Set 32 : Using ViewsDelegate #

Patch Set 33 : Cleanup #

Total comments: 10

Patch Set 34 : oshima's comments #

Patch Set 35 : Fix comments #

Total comments: 8

Patch Set 36 : sky's comments #

Total comments: 16

Patch Set 37 : sky's #

Patch Set 38 : Rename to MenuKeyEventHandler #

Patch Set 39 : Fix compile issue #

Total comments: 4

Patch Set 40 : Rename the enum values #

Total comments: 8

Patch Set 41 : nits #

Total comments: 3

Patch Set 42 : Removed OnTouchEvent() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -335 lines) Patch
M ash/accelerators/accelerator_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +6 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +12 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +4 lines, -0 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 4 chunks +34 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 6 chunks +173 lines, -313 lines 0 comments Download
A ui/views/controls/menu/menu_key_event_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +33 lines, -0 lines 0 comments Download
A ui/views/controls/menu/menu_key_event_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 1 chunk +75 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_message_loop_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 4 chunks +18 lines, -22 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +17 lines, -0 lines 0 comments Download
M ui/views/views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 115 (11 generated)
afakhry
sadrul@ and oshima@: Could you please review this CL? For simplicity, I haven't removed the ...
5 years, 7 months ago (2015-05-14 23:30:44 UTC) #2
afakhry
On 2015/05/14 23:30:44, afakhry wrote: > sadrul@ and oshima@: Could you please review this CL? ...
5 years, 7 months ago (2015-05-15 00:34:07 UTC) #3
afakhry
Looping in +sky@ for advice and opinion. Here's a solution that works well, but is ...
5 years, 7 months ago (2015-05-20 18:56:04 UTC) #5
sky
I thought Peter had all this working at one point. What changed?
5 years, 7 months ago (2015-05-20 20:01:03 UTC) #7
pkotwicz
sky@: The "accelerator while a menu is open" logic got broken via many many things. ...
5 years, 7 months ago (2015-05-20 20:35:00 UTC) #8
pkotwicz
afakhry@: Feel free to reach out to me if you have any questions
5 years, 7 months ago (2015-05-20 20:35:29 UTC) #9
oshima
On 2015/05/20 20:35:00, pkotwicz wrote: > sky@: The "accelerator while a menu is open" logic ...
5 years, 7 months ago (2015-05-20 21:43:07 UTC) #10
sadrul
On 2015/05/20 18:56:04, afakhry wrote: > Looping in +sky@ for advice and opinion. > > ...
5 years, 7 months ago (2015-05-21 18:36:26 UTC) #11
afakhry
On 2015/05/21 18:36:26, sadrul wrote: > On 2015/05/20 18:56:04, afakhry wrote: > > Looping in ...
5 years, 7 months ago (2015-05-21 19:01:08 UTC) #12
afakhry
@sadrul, friendly ping. Could you please provide more feedback about this solution so that I ...
5 years, 7 months ago (2015-05-22 18:29:46 UTC) #13
oshima
On 2015/05/21 19:01:08, afakhry wrote: > On 2015/05/21 18:36:26, sadrul wrote: > > On 2015/05/20 ...
5 years, 7 months ago (2015-05-22 19:24:49 UTC) #14
sky
On Fri, May 22, 2015 at 12:24 PM, <oshima@chromium.org> wrote: > On 2015/05/21 19:01:08, afakhry ...
5 years, 7 months ago (2015-05-22 19:41:32 UTC) #15
sky
On Fri, May 22, 2015 at 12:41 PM, Scott Violet <sky@chromium.org> wrote: > On Fri, ...
5 years, 7 months ago (2015-05-22 19:42:47 UTC) #16
pkotwicz
I tried the CL. It seems as if loses some of the functionality of menu_message_pump_dispatcher_win.cc ...
5 years, 7 months ago (2015-05-22 23:02:33 UTC) #17
pkotwicz
I think that it should be possible to come up with a solution which uses ...
5 years, 7 months ago (2015-05-22 23:13:01 UTC) #18
afakhry
On 2015/05/22 23:13:01, pkotwicz wrote: > I think that it should be possible to come ...
5 years, 7 months ago (2015-05-22 23:36:58 UTC) #19
pkotwicz
There isn't a ui::EventType for WM_CONTEXTMENU as far as I know.
5 years, 7 months ago (2015-05-23 00:02:48 UTC) #20
pkotwicz
There is unfortunately very little test coverage for menu stuff
5 years, 7 months ago (2015-05-23 00:12:36 UTC) #21
sky
That isn't quite true. There is a slew of tests covering menu functionality in chrome ...
5 years, 7 months ago (2015-05-23 16:10:21 UTC) #22
sadrul
[snip] > > sadrul@, can you explain why you don't like pre-target handlers? I should ...
5 years, 7 months ago (2015-05-26 16:53:45 UTC) #23
afakhry
This is a fully working solution (finally!) :) sadrul: Please review the following files:- ui/views/controls/menu/menu_controller.h ...
5 years, 6 months ago (2015-06-11 21:28:19 UTC) #24
oshima
m https://codereview.chromium.org/1138523006/diff/220001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/220001/ui/views/controls/menu/menu_controller_unittest.cc#newcode69 ui/views/controls/menu/menu_controller_unittest.cc:69: menu_item_(), you can skip these https://codereview.chromium.org/1138523006/diff/220001/ui/views/controls/menu/menu_controller_unittest.cc#newcode83 ui/views/controls/menu/menu_controller_unittest.cc:83: menu_controller_->showing_ ...
5 years, 6 months ago (2015-06-12 19:59:19 UTC) #25
afakhry
https://codereview.chromium.org/1138523006/diff/220001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/220001/ui/views/controls/menu/menu_controller_unittest.cc#newcode69 ui/views/controls/menu/menu_controller_unittest.cc:69: menu_item_(), On 2015/06/12 19:59:18, oshima wrote: > you can ...
5 years, 6 months ago (2015-06-12 23:50:47 UTC) #26
pkotwicz
A few drive by comments https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc#newcode89 ui/views/controls/menu/menu_event_filter.cc:89: if (event->type() != ui::ET_KEY_PRESSED ...
5 years, 6 months ago (2015-06-16 16:04:59 UTC) #27
afakhry
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc#newcode89 ui/views/controls/menu/menu_event_filter.cc:89: if (event->type() != ui::ET_KEY_PRESSED || (flags & kKeyFlagsMask) != ...
5 years, 6 months ago (2015-06-16 23:56:40 UTC) #28
pkotwicz
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc#newcode89 ui/views/controls/menu/menu_event_filter.cc:89: if (event->type() != ui::ET_KEY_PRESSED || (flags & kKeyFlagsMask) != ...
5 years, 6 months ago (2015-06-17 14:26:24 UTC) #29
afakhry
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc#newcode106 ui/views/controls/menu/menu_event_filter.cc:106: event->StopPropagation(); On 2015/06/17 14:26:24, pkotwicz wrote: > Sorry that ...
5 years, 6 months ago (2015-06-17 18:48:00 UTC) #30
pkotwicz
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_event_filter.cc#newcode106 ui/views/controls/menu/menu_event_filter.cc:106: event->StopPropagation(); I am unsure what the right thing to ...
5 years, 6 months ago (2015-06-18 19:45:57 UTC) #31
afakhry
I have renewed my commitment to get this solution done. I'm now handling accelerators that ...
5 years, 5 months ago (2015-07-08 20:06:18 UTC) #32
pkotwicz
I will take a look tonight
5 years, 5 months ago (2015-07-09 14:49:09 UTC) #33
pkotwicz
sadrul@ and sky@ what do you think about putting subtle changes w.r.t to MenuEventDispatcher in ...
5 years, 5 months ago (2015-07-10 17:33:21 UTC) #34
afakhry
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc File ui/views/controls/menu/menu_message_pump_dispatcher_win.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc#newcode23 ui/views/controls/menu/menu_message_pump_dispatcher_win.cc:23: uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { On 2015/07/10 17:33:21, pkotwicz ...
5 years, 5 months ago (2015-07-10 23:49:47 UTC) #35
pkotwicz
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc File ui/views/controls/menu/menu_message_pump_dispatcher_win.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc#newcode23 ui/views/controls/menu/menu_message_pump_dispatcher_win.cc:23: uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { Thank you for pointing ...
5 years, 5 months ago (2015-07-13 23:29:18 UTC) #36
afakhry
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc File ui/views/controls/menu/menu_message_pump_dispatcher_win.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc#newcode23 ui/views/controls/menu/menu_message_pump_dispatcher_win.cc:23: uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { On 2015/07/13 23:29:17, pkotwicz ...
5 years, 5 months ago (2015-07-14 20:50:44 UTC) #37
pkotwicz
https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc File ui/views/controls/menu/menu_message_pump_dispatcher_win.cc (right): https://codereview.chromium.org/1138523006/diff/240001/ui/views/controls/menu/menu_message_pump_dispatcher_win.cc#newcode23 ui/views/controls/menu/menu_message_pump_dispatcher_win.cc:23: uint32_t MenuMessagePumpDispatcher::Dispatch(const MSG& msg) { The hacky solution does ...
5 years, 5 months ago (2015-07-15 00:37:15 UTC) #38
afakhry
https://codereview.chromium.org/1138523006/diff/280001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/280001/ui/views/controls/menu/menu_event_filter.cc#newcode46 ui/views/controls/menu/menu_event_filter.cc:46: MenuEventFilter::Delegate* delegate) { On 2015/07/15 00:37:14, pkotwicz wrote: > ...
5 years, 5 months ago (2015-07-16 00:29:27 UTC) #39
pkotwicz
https://codereview.chromium.org/1138523006/diff/280001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/280001/ui/views/controls/menu/menu_event_filter.cc#newcode46 ui/views/controls/menu/menu_event_filter.cc:46: MenuEventFilter::Delegate* delegate) { It would be interesting to find ...
5 years, 5 months ago (2015-07-16 01:10:57 UTC) #40
afakhry
Hey pkotwicz, Could you please take another look at this CL? I updated it taking ...
5 years, 4 months ago (2015-08-24 19:11:41 UTC) #41
pkotwicz
The patch to menu_message_pump_dispatcher_win.cc seems to be gone
5 years, 4 months ago (2015-08-25 01:14:47 UTC) #43
afakhry
On 2015/08/25 01:14:47, pkotwicz wrote: > The patch to menu_message_pump_dispatcher_win.cc seems to be gone Yes, ...
5 years, 4 months ago (2015-08-25 15:54:08 UTC) #44
pkotwicz
Sorry for the delay. Thank you for updating the CL. Hopefully we can put it ...
5 years, 4 months ago (2015-08-26 01:26:54 UTC) #45
afakhry
Thanks for the review. PTAL. https://codereview.chromium.org/1138523006/diff/380001/ash/accelerators/accelerator_controller.h File ash/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/1138523006/diff/380001/ash/accelerators/accelerator_controller.h#newcode120 ash/accelerators/accelerator_controller.h:120: bool ShouldMenuBeKeptOpenForAccelerator( On 2015/08/26 ...
5 years, 3 months ago (2015-08-26 18:39:21 UTC) #46
pkotwicz
On 2015/08/26 18:39:21, afakhry wrote: > Thanks for the review. PTAL. > > https://codereview.chromium.org/1138523006/diff/380001/ash/accelerators/accelerator_controller.h > ...
5 years, 3 months ago (2015-08-26 20:23:25 UTC) #47
afakhry
On 2015/08/26 20:23:25, pkotwicz wrote: > On 2015/08/26 18:39:21, afakhry wrote: > > Thanks for ...
5 years, 3 months ago (2015-08-26 21:02:40 UTC) #48
pkotwicz
A few more comments. The CL looks much cleaner now! https://codereview.chromium.org/1138523006/diff/380001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/380001/ui/views/controls/menu/menu_event_filter.cc#newcode117 ...
5 years, 3 months ago (2015-08-27 17:19:55 UTC) #49
afakhry
Thanks for your suggestions! It's much simpler and cleaner now. PTAL! https://codereview.chromium.org/1138523006/diff/420001/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): ...
5 years, 3 months ago (2015-08-28 01:24:41 UTC) #50
pkotwicz
https://codereview.chromium.org/1138523006/diff/440001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/440001/ui/views/controls/menu/menu_event_filter.cc#newcode105 ui/views/controls/menu/menu_event_filter.cc:105: event->StopPropagation(); I checked and removing the call to ui::Event::StopPropagation() ...
5 years, 3 months ago (2015-08-28 19:48:27 UTC) #52
afakhry
https://codereview.chromium.org/1138523006/diff/440001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/440001/ui/views/controls/menu/menu_event_filter.cc#newcode105 ui/views/controls/menu/menu_event_filter.cc:105: event->StopPropagation(); On 2015/08/28 19:48:27, pkotwicz wrote: > I checked ...
5 years, 3 months ago (2015-08-28 19:56:40 UTC) #53
afakhry
Don't stop the event's propagation when the menu has exited.
5 years, 3 months ago (2015-08-28 20:10:21 UTC) #54
pkotwicz
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode172 ui/views/controls/menu/menu_message_loop_aura.cc:172: menu_event_filter->SetDelegate(filter_delegate); Can you pass in the MenuEventFilter::Delegate to the ...
5 years, 3 months ago (2015-08-28 20:41:50 UTC) #55
afakhry
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode172 ui/views/controls/menu/menu_message_loop_aura.cc:172: menu_event_filter->SetDelegate(filter_delegate); On 2015/08/28 20:41:50, pkotwicz wrote: > Can you ...
5 years, 3 months ago (2015-08-28 21:42:20 UTC) #56
pkotwicz
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc#newcode105 ui/views/controls/menu/menu_event_filter.cc:105: // propagation. Please include a comment as to why ...
5 years, 3 months ago (2015-08-28 22:10:10 UTC) #57
afakhry
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc#newcode105 ui/views/controls/menu/menu_event_filter.cc:105: // propagation. On 2015/08/28 22:10:09, pkotwicz wrote: > Please ...
5 years, 3 months ago (2015-08-28 23:32:13 UTC) #58
pkotwicz
I am down to nits. I think that this CL is ready to be reviewed ...
5 years, 3 months ago (2015-08-28 23:44:26 UTC) #59
pkotwicz
https://codereview.chromium.org/1138523006/diff/560001/ash/accelerators/ash_menu_event_filter_delegate.h File ash/accelerators/ash_menu_event_filter_delegate.h (right): https://codereview.chromium.org/1138523006/diff/560001/ash/accelerators/ash_menu_event_filter_delegate.h#newcode12 ash/accelerators/ash_menu_event_filter_delegate.h:12: } // namespace ui Nit: remove namespace comment
5 years, 3 months ago (2015-08-28 23:45:49 UTC) #60
pkotwicz
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc#newcode147 ui/views/controls/menu/menu_event_filter.cc:147: event->set_should_remove_native_touch_id_mapping(false); I think that: Correct: scoped_ptr<ui::Event> copy(ui::EventFromNative(event)); copy->set_should_remove_native_touch_id_mapping(false); Correct: ...
5 years, 3 months ago (2015-08-29 00:05:11 UTC) #61
afakhry
https://codereview.chromium.org/1138523006/diff/420001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1138523006/diff/420001/ash/accelerators/accelerator_table.cc#newcode438 ash/accelerators/accelerator_table.cc:438: TAKE_PARTIAL_SCREENSHOT, On 2015/08/28 23:44:25, pkotwicz wrote: > Can you ...
5 years, 3 months ago (2015-08-29 01:31:24 UTC) #62
pkotwicz
https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc File ui/views/controls/menu/menu_event_filter.cc (right): https://codereview.chromium.org/1138523006/diff/520001/ui/views/controls/menu/menu_event_filter.cc#newcode147 ui/views/controls/menu/menu_event_filter.cc:147: event->set_should_remove_native_touch_id_mapping(false); Ok, let's ask tdresser@
5 years, 3 months ago (2015-08-29 02:30:45 UTC) #63
afakhry
sky@ and oshima@ Could you please take a look at this CL? Thanks!
5 years, 3 months ago (2015-08-31 21:06:51 UTC) #65
oshima
https://codereview.chromium.org/1138523006/diff/380001/ash/accelerators/ash_menu_event_filter_delegate.cc File ash/accelerators/ash_menu_event_filter_delegate.cc (right): https://codereview.chromium.org/1138523006/diff/380001/ash/accelerators/ash_menu_event_filter_delegate.cc#newcode55 ash/accelerators/ash_menu_event_filter_delegate.cc:55: if (focus_manager->ProcessAccelerator(accelerator)) On 2015/08/26 01:26:54, pkotwicz wrote: > What's ...
5 years, 3 months ago (2015-09-02 17:08:21 UTC) #66
afakhry
https://codereview.chromium.org/1138523006/diff/580001/ash/shell.cc File ash/shell.cc (right): https://codereview.chromium.org/1138523006/diff/580001/ash/shell.cc#newcode926 ash/shell.cc:926: menu_event_filter_delegate_.reset(new AshMenuEventFilterDelegate); On 2015/09/02 17:08:21, oshima wrote: > can ...
5 years, 3 months ago (2015-09-02 18:18:38 UTC) #67
oshima
https://codereview.chromium.org/1138523006/diff/580001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/580001/ui/views/controls/menu/menu_controller_unittest.cc#newcode125 ui/views/controls/menu/menu_controller_unittest.cc:125: scoped_ptr<aura::ScopedWindowTargeter> scoped_targeter( On 2015/09/02 18:18:38, afakhry wrote: > On ...
5 years, 3 months ago (2015-09-02 20:58:54 UTC) #68
afakhry
https://codereview.chromium.org/1138523006/diff/580001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/580001/ui/views/controls/menu/menu_controller_unittest.cc#newcode125 ui/views/controls/menu/menu_controller_unittest.cc:125: scoped_ptr<aura::ScopedWindowTargeter> scoped_targeter( On 2015/09/02 20:58:54, oshima wrote: > On ...
5 years, 3 months ago (2015-09-03 16:41:42 UTC) #69
sky
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc#newcode71 ui/views/controls/menu/menu_controller_unittest.cc:71: // This a deleter to enable us to use ...
5 years, 3 months ago (2015-09-03 17:23:21 UTC) #70
afakhry
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc#newcode71 ui/views/controls/menu/menu_controller_unittest.cc:71: // This a deleter to enable us to use ...
5 years, 3 months ago (2015-09-04 01:49:43 UTC) #71
sky
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode169 ui/views/controls/menu/menu_message_loop_aura.cc:169: MenuEventFilter menu_event_filter(controller, filter_delegate); On 2015/09/04 01:49:42, afakhry wrote: > ...
5 years, 3 months ago (2015-09-04 14:38:54 UTC) #72
sky
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_controller_unittest.cc#newcode71 ui/views/controls/menu/menu_controller_unittest.cc:71: // This a deleter to enable us to use ...
5 years, 3 months ago (2015-09-04 14:40:23 UTC) #73
oshima
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode169 ui/views/controls/menu/menu_message_loop_aura.cc:169: MenuEventFilter menu_event_filter(controller, filter_delegate); On 2015/09/04 14:38:54, sky wrote: > ...
5 years, 3 months ago (2015-09-04 18:27:01 UTC) #74
oshima
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode169 ui/views/controls/menu/menu_message_loop_aura.cc:169: MenuEventFilter menu_event_filter(controller, filter_delegate); > let ViewsDelegate return the MenuEventFilter::Delegate ...
5 years, 3 months ago (2015-09-04 18:32:10 UTC) #75
afakhry
On 2015/09/04 18:32:10, oshima wrote: > https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc > File ui/views/controls/menu/menu_message_loop_aura.cc (right): > > https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode169 > ...
5 years, 3 months ago (2015-09-04 18:49:32 UTC) #76
sky
On Fri, Sep 4, 2015 at 11:49 AM, <afakhry@chromium.org> wrote: > On 2015/09/04 18:32:10, oshima ...
5 years, 3 months ago (2015-09-08 15:24:45 UTC) #77
afakhry
sky@ & oshima@: Could you please take a look? I'm now using ViewsDelegate and only ...
5 years, 3 months ago (2015-09-08 21:31:46 UTC) #78
oshima
https://codereview.chromium.org/1138523006/diff/680001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1138523006/diff/680001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode132 chrome/browser/ui/views/chrome_views_delegate.cc:132: #if defined(USE_ASH) entire ProcessAcceleratorNow function can be ifdef'ed right? ...
5 years, 3 months ago (2015-09-08 21:43:08 UTC) #79
afakhry
https://codereview.chromium.org/1138523006/diff/680001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/1138523006/diff/680001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode132 chrome/browser/ui/views/chrome_views_delegate.cc:132: #if defined(USE_ASH) On 2015/09/08 21:43:08, oshima wrote: > entire ...
5 years, 3 months ago (2015-09-08 23:34:38 UTC) #80
oshima
lgtm my bits https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc File ui/views/controls/menu/menu_event_handler.cc (right): https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc#newcode55 ui/views/controls/menu/menu_event_handler.cc:55: (flags & kKeyFlagsMask) == 0) { ...
5 years, 3 months ago (2015-09-08 23:51:59 UTC) #81
sky
https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc File ui/views/controls/menu/menu_event_handler.cc (right): https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc#newcode30 ui/views/controls/menu/menu_event_handler.cc:30: if (!menu_controller) Can this really happen? DCHECK? https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.h File ...
5 years, 3 months ago (2015-09-09 00:01:59 UTC) #82
oshima
https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.h File ui/views/controls/menu/menu_event_handler.h (right): https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.h#newcode19 ui/views/controls/menu/menu_event_handler.h:19: class VIEWS_EXPORT MenuEventHandler : public ui::EventHandler { On 2015/09/09 ...
5 years, 3 months ago (2015-09-09 00:11:35 UTC) #83
afakhry
https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.h File ui/views/controls/menu/menu_event_handler.h (right): https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.h#newcode19 ui/views/controls/menu/menu_event_handler.h:19: class VIEWS_EXPORT MenuEventHandler : public ui::EventHandler { On 2015/09/09 ...
5 years, 3 months ago (2015-09-09 00:16:00 UTC) #84
afakhry
https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc File ui/views/controls/menu/menu_event_handler.cc (right): https://codereview.chromium.org/1138523006/diff/710001/ui/views/controls/menu/menu_event_handler.cc#newcode30 ui/views/controls/menu/menu_event_handler.cc:30: if (!menu_controller) On 2015/09/09 00:01:59, sky wrote: > Can ...
5 years, 3 months ago (2015-09-09 02:31:34 UTC) #85
sky
I'm still confused about why this is not applicable for windows. The code you pointed ...
5 years, 3 months ago (2015-09-09 15:44:52 UTC) #86
afakhry
https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc File ui/views/controls/menu/menu_message_loop_aura.cc (right): https://codereview.chromium.org/1138523006/diff/620001/ui/views/controls/menu/menu_message_loop_aura.cc#newcode144 ui/views/controls/menu/menu_message_loop_aura.cc:144: internal::MenuMessagePumpDispatcher nested_dispatcher(controller); On 2015/09/09 15:44:52, sky wrote: > On ...
5 years, 3 months ago (2015-09-09 20:21:33 UTC) #87
sky
https://codereview.chromium.org/1138523006/diff/730001/ui/views/controls/menu/menu_event_handler.h File ui/views/controls/menu/menu_event_handler.h (right): https://codereview.chromium.org/1138523006/diff/730001/ui/views/controls/menu/menu_event_handler.h#newcode19 ui/views/controls/menu/menu_event_handler.h:19: class VIEWS_EXPORT MenuEventHandler : public ui::EventHandler { On 2015/09/09 ...
5 years, 3 months ago (2015-09-09 21:30:55 UTC) #88
afakhry
https://codereview.chromium.org/1138523006/diff/730001/ui/views/controls/menu/menu_event_handler.h File ui/views/controls/menu/menu_event_handler.h (right): https://codereview.chromium.org/1138523006/diff/730001/ui/views/controls/menu/menu_event_handler.h#newcode19 ui/views/controls/menu/menu_event_handler.h:19: class VIEWS_EXPORT MenuEventHandler : public ui::EventHandler { On 2015/09/09 ...
5 years, 3 months ago (2015-09-09 23:59:52 UTC) #89
sky
https://codereview.chromium.org/1138523006/diff/790001/ui/views/views_delegate.h File ui/views/views_delegate.h (right): https://codereview.chromium.org/1138523006/diff/790001/ui/views/views_delegate.h#newcode76 ui/views/views_delegate.h:76: enum ProcessMenuAcceleratorResult { enum class https://codereview.chromium.org/1138523006/diff/790001/ui/views/views_delegate.h#newcode79 ui/views/views_delegate.h:79: ACCELERATOR_HANDLED, The ...
5 years, 3 months ago (2015-09-10 16:20:33 UTC) #90
afakhry
https://codereview.chromium.org/1138523006/diff/790001/ui/views/views_delegate.h File ui/views/views_delegate.h (right): https://codereview.chromium.org/1138523006/diff/790001/ui/views/views_delegate.h#newcode76 ui/views/views_delegate.h:76: enum ProcessMenuAcceleratorResult { On 2015/09/10 16:20:33, sky wrote: > ...
5 years, 3 months ago (2015-09-10 17:00:29 UTC) #91
sky
LGTM
5 years, 3 months ago (2015-09-10 18:05:00 UTC) #92
pkotwicz
tdresser@ Can you please take a look at MenuKeyEventHandler::OnTouchEvent() My understanding is that ui::TouchEvent::set_should_remove_native_touch_id_mapping() does ...
5 years, 3 months ago (2015-09-10 18:38:06 UTC) #94
pkotwicz
Just a few nits https://codereview.chromium.org/1138523006/diff/810001/ash/accelerators/accelerator_controller.h File ash/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/1138523006/diff/810001/ash/accelerators/accelerator_controller.h#newcode123 ash/accelerators/accelerator_controller.h:123: // after the menu exits). ...
5 years, 3 months ago (2015-09-10 19:13:00 UTC) #95
afakhry
https://codereview.chromium.org/1138523006/diff/810001/ash/accelerators/accelerator_controller.h File ash/accelerators/accelerator_controller.h (right): https://codereview.chromium.org/1138523006/diff/810001/ash/accelerators/accelerator_controller.h#newcode123 ash/accelerators/accelerator_controller.h:123: // after the menu exits). On 2015/09/10 19:13:00, pkotwicz ...
5 years, 3 months ago (2015-09-10 20:57:13 UTC) #96
pkotwicz
LGTM once you get tdresser@'s feedback
5 years, 3 months ago (2015-09-10 21:43:13 UTC) #97
pkotwicz
https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc#newcode494 ash/accelerators/accelerator_table.cc:494: TOGGLE_WIFI, TOGGLE_WIFI is a weird accelerator to include in ...
5 years, 3 months ago (2015-09-10 21:58:49 UTC) #98
afakhry
https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc#newcode494 ash/accelerators/accelerator_table.cc:494: TOGGLE_WIFI, On 2015/09/10 21:58:49, pkotwicz wrote: > TOGGLE_WIFI is ...
5 years, 3 months ago (2015-09-10 23:31:02 UTC) #99
pkotwicz
https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc File ash/accelerators/accelerator_table.cc (right): https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc#newcode494 ash/accelerators/accelerator_table.cc:494: TOGGLE_WIFI, The way I think of it is that ...
5 years, 3 months ago (2015-09-10 23:37:33 UTC) #100
oshima
On 2015/09/10 23:37:33, pkotwicz wrote: > https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc > File ash/accelerators/accelerator_table.cc (right): > > https://codereview.chromium.org/1138523006/diff/830001/ash/accelerators/accelerator_table.cc#newcode494 > ...
5 years, 3 months ago (2015-09-11 00:58:37 UTC) #101
tdresser
Re #94, ui::TouchEvent::set_should_remove_native_touch_id_mapping() only needs to be called on copies on native events. It doesn't ...
5 years, 3 months ago (2015-09-11 12:24:18 UTC) #102
pkotwicz
oshima@: Fair enough
5 years, 3 months ago (2015-09-11 14:50:42 UTC) #103
afakhry
Following tdresser@'s comment. I removed OnTouchEvent(). Thanks to pkotwicz@ who pointed it out!
5 years, 3 months ago (2015-09-11 20:09:56 UTC) #104
sky
And now the name I suggested is even better! :) On Fri, Sep 11, 2015 ...
5 years, 3 months ago (2015-09-11 20:23:40 UTC) #105
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138523006/850001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1138523006/850001
5 years, 3 months ago (2015-09-11 22:58:11 UTC) #108
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/96518)
5 years, 3 months ago (2015-09-11 23:20:36 UTC) #110
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138523006/850001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1138523006/850001
5 years, 3 months ago (2015-09-14 16:08:27 UTC) #112
commit-bot: I haz the power
Committed patchset #42 (id:850001)
5 years, 3 months ago (2015-09-14 17:07:50 UTC) #113
commit-bot: I haz the power
Patchset 42 (id:??) landed as https://crrev.com/692024d9d32cfe3ddc01143243c4b99e43261954 Cr-Commit-Position: refs/heads/master@{#348632}
5 years, 3 months ago (2015-09-14 17:08:42 UTC) #114
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:33:12 UTC) #115
Message was sent while issue was closed.
Patchset 42 (id:??) landed as
https://crrev.com/692024d9d32cfe3ddc01143243c4b99e43261954
Cr-Commit-Position: refs/heads/master@{#348632}

Powered by Google App Engine
This is Rietveld 408576698