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

Issue 308023002: Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. (Closed)

Created:
6 years, 6 months ago by oshima
Modified:
6 years, 6 months ago
Reviewers:
Yusuke Sato, sadrul, sky
CC:
chromium-reviews, tdanderson+views_chromium.org, ben+aura_chromium.org, tdresser+watch_chromium.org, tfarina, kalyank, ben+views_chromium.org, ben+ash_chromium.org, mtomasz
Visibility:
Public.

Description

Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. Remove AcceleratorController::Context. Just remember previous accelerator in AcceleratorController. BUG=379171 TEST=covered by unit test. R=sadrul@chromium.org, sky@chromium.org, yusukes@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275101

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : fix test #

Total comments: 2

Patch Set 5 : addressed comment #

Patch Set 6 : rebas & fix win issue #

Patch Set 7 : use ui::EF_IS_REPEAT in test instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -279 lines) Patch
M ash/accelerators/accelerator_controller.h View 1 2 3 4 5 3 chunks +9 lines, -34 lines 0 comments Download
M ash/accelerators/accelerator_controller.cc View 4 chunks +17 lines, -18 lines 0 comments Download
M ash/accelerators/accelerator_controller_unittest.cc View 1 2 3 4 5 6 39 chunks +235 lines, -203 lines 0 comments Download
M ash/accelerators/accelerator_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M ash/accelerators/nested_accelerator_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/base/accelerators/accelerator.h View 3 chunks +5 lines, -0 lines 0 comments Download
M ui/base/accelerators/accelerator.cc View 3 chunks +10 lines, -2 lines 0 comments Download
M ui/events/event.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 5 2 chunks +35 lines, -0 lines 0 comments Download
M ui/events/event_constants.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event_unittest.cc View 2 chunks +48 lines, -1 line 0 comments Download
M ui/events/event_utils.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/focus/focus_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/wm/core/accelerator_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M ui/wm/core/accelerator_filter.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
oshima
still WIP. sadrul, can you take a quick look and tell me if this is ...
6 years, 6 months ago (2014-05-30 01:08:26 UTC) #1
sadrul
On 2014/05/30 01:08:26, oshima wrote: > still WIP. sadrul, can you take a quick look ...
6 years, 6 months ago (2014-05-30 01:19:19 UTC) #2
oshima
On 2014/05/30 01:19:19, sadrul wrote: > On 2014/05/30 01:08:26, oshima wrote: > > still WIP. ...
6 years, 6 months ago (2014-05-30 02:18:57 UTC) #3
oshima
ok it's ready. please review. yusukes@, could you please take a look at previous_accelerator change ...
6 years, 6 months ago (2014-05-30 15:57:35 UTC) #4
sadrul
https://codereview.chromium.org/308023002/diff/220001/ui/events/event_constants.h File ui/events/event_constants.h (right): https://codereview.chromium.org/308023002/diff/220001/ui/events/event_constants.h#newcode95 ui/events/event_constants.h:95: EF_IS_REPEAT = 1 << 12, Move this down to ...
6 years, 6 months ago (2014-05-30 18:27:25 UTC) #5
oshima
https://codereview.chromium.org/308023002/diff/220001/ui/events/event_constants.h File ui/events/event_constants.h (right): https://codereview.chromium.org/308023002/diff/220001/ui/events/event_constants.h#newcode95 ui/events/event_constants.h:95: EF_IS_REPEAT = 1 << 12, On 2014/05/30 18:27:26, sadrul ...
6 years, 6 months ago (2014-05-30 19:50:31 UTC) #6
sadrul
ui/ changes LGTM https://codereview.chromium.org/308023002/diff/260001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/308023002/diff/260001/ui/events/event.cc#newcode496 ui/events/event.cc:496: if (!last_key_event_) { Maybe do a ...
6 years, 6 months ago (2014-05-30 20:38:09 UTC) #7
oshima
sky -> ui/wm/core, ui/base/accelerator owner https://codereview.chromium.org/308023002/diff/260001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/308023002/diff/260001/ui/events/event.cc#newcode496 ui/events/event.cc:496: if (!last_key_event_) { On ...
6 years, 6 months ago (2014-05-30 23:44:22 UTC) #8
sky
LGTM
6 years, 6 months ago (2014-06-01 19:57:05 UTC) #9
oshima
sadrul, I need more changes in events_win.cc in order for aura::test::EventGenerator to work correctly on ...
6 years, 6 months ago (2014-06-04 19:33:05 UTC) #10
sadrul
Could TestKeyEvent instead retain the 'generated' flags (i.e. IS_REPEAT) when it does set_flags() instead? But ...
6 years, 6 months ago (2014-06-04 19:55:20 UTC) #11
oshima
On 2014/06/04 19:55:20, sadrul wrote: > Could TestKeyEvent instead retain the 'generated' flags (i.e. IS_REPEAT) ...
6 years, 6 months ago (2014-06-04 19:59:18 UTC) #12
Yusuke Sato
LGTM (sorry for the delay)
6 years, 6 months ago (2014-06-04 22:18:24 UTC) #13
oshima
I reverted the change in events_win.cc and event_generator.cc, and added ui::EF_IS_REPEAT as suggested. I'm going ...
6 years, 6 months ago (2014-06-04 23:06:48 UTC) #14
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-04 23:07:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/308023002/440001
6 years, 6 months ago (2014-06-04 23:09:09 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 04:03:24 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 04:08:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13651)
6 years, 6 months ago (2014-06-05 04:08:11 UTC) #19
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 6 months ago (2014-06-05 07:40:43 UTC) #20
oshima
The CQ bit was unchecked by oshima@chromium.org
6 years, 6 months ago (2014-06-05 07:41:00 UTC) #21
oshima
6 years, 6 months ago (2014-06-05 14:38:35 UTC) #22
Message was sent while issue was closed.
Committed patchset #7 manually as r275101 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698