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

Issue 2505943002: MacViews: Fix accelerator handling while Omnibox is in focus. (Closed)

Created:
4 years, 1 month ago by themblsha
Modified:
4 years ago
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix accelerator handling while Omnibox is in focus. Currently in both Cocoa and MacViewsBrowser when Omnibox is in focus the accelerators are only handled in -[NativeWidgetMacNSWindow performKeyEquivalent:], which internally uses ChromeCommandDispatcherDelegate, which consults global_keyboard_shortcuts_cocoa_mac.mm's tables. In crbug.com/620315 we're trying to migrate the global_keyboard_shortcuts_cocoa_mac.mm's tables over to accelerator_table.cc. BUG=665823 Committed: https://crrev.com/e405f4e5df76138d888527165ea13446a1e08296 Cr-Commit-Position: refs/heads/master@{#434436}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove performKeyEquivalent:, update keyDown:, add tests. #

Total comments: 25

Patch Set 3 : Fix review issues. #

Total comments: 8

Patch Set 4 : Fix review issues. #

Total comments: 5

Patch Set 5 : Make EventGenerator::Target's comments more verbose. #

Patch Set 6 : Fixed TextfieldTest.*, disable ViewTest.ActivateAcceleratorOnMac on non-MacViews. #

Total comments: 19

Patch Set 7 : Fix tapted's review issues. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -117 lines) Patch
M ui/events/base_event_utils.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M ui/events/test/event_generator.h View 1 2 3 4 2 chunks +18 lines, -7 lines 0 comments Download
M ui/events/test/event_generator.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 2 3 4 5 6 6 chunks +45 lines, -7 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 3 chunks +12 lines, -6 lines 2 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download
M ui/views/event_monitor_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/test/event_generator_delegate_mac.mm View 1 2 2 chunks +26 lines, -11 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 5 chunks +114 lines, -74 lines 0 comments Download

Messages

Total messages: 52 (23 generated)
themblsha
There are two tests that fail for https://codereview.chromium.org/2074643003/ when I'm testing locally: 1. GlobalKeyboardShortcutsTest.SwitchTabsMac (browser_tests) ...
4 years, 1 month ago (2016-11-16 13:19:57 UTC) #2
tapted
On 2016/11/16 13:19:57, themblsha wrote: > There are two tests that fail for https://codereview.chromium.org/2074643003/ > ...
4 years, 1 month ago (2016-11-17 08:20:14 UTC) #3
themblsha
> perhaps - depends on the failure. I'd need to see a suggested fix. (But ...
4 years, 1 month ago (2016-11-17 17:52:17 UTC) #4
tapted
nice - this looks pretty good. nits mostly https://codereview.chromium.org/2505943002/diff/20001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2505943002/diff/20001/ui/events/test/event_generator.h#newcode141 ui/events/test/event_generator.h:141: // ...
4 years, 1 month ago (2016-11-18 07:28:05 UTC) #5
themblsha
https://codereview.chromium.org/2505943002/diff/20001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2505943002/diff/20001/ui/events/test/event_generator.h#newcode141 ui/events/test/event_generator.h:141: // Events could be dispatched using different methods. On ...
4 years, 1 month ago (2016-11-18 13:31:50 UTC) #6
tapted
basically lgtm with the following, but you'll OWNERS (probably sadrul, from ui/events/OWNERS) https://codereview.chromium.org/2505943002/diff/20001/ui/views/view_unittest.cc File ui/views/view_unittest.cc ...
4 years, 1 month ago (2016-11-21 06:41:03 UTC) #7
themblsha
sadrul: Please review event_generator, event_monitor_unittest and view_unittest. https://codereview.chromium.org/2505943002/diff/20001/ui/views/view_unittest.cc File ui/views/view_unittest.cc (right): https://codereview.chromium.org/2505943002/diff/20001/ui/views/view_unittest.cc#newcode2214 ui/views/view_unittest.cc:2214: #if defined(OS_MACOSX) ...
4 years, 1 month ago (2016-11-21 12:44:20 UTC) #9
sadrul
https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h#newcode147 ui/events/test/event_generator.h:147: WIDGET, The difference between WINDOW and WIDGET isn't really ...
4 years, 1 month ago (2016-11-21 16:30:53 UTC) #10
themblsha
https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h#newcode147 ui/events/test/event_generator.h:147: WIDGET, On 2016/11/21 16:30:53, sadrul wrote: > The difference ...
4 years, 1 month ago (2016-11-21 17:02:20 UTC) #11
sadrul
lgtm
4 years, 1 month ago (2016-11-21 18:11:05 UTC) #12
sadrul
https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h File ui/events/test/event_generator.h (right): https://codereview.chromium.org/2505943002/diff/60001/ui/events/test/event_generator.h#newcode147 ui/events/test/event_generator.h:147: WIDGET, On 2016/11/21 17:02:20, themblsha wrote: > On 2016/11/21 ...
4 years, 1 month ago (2016-11-21 18:11:34 UTC) #13
tapted
still lgtm - thanks! https://codereview.chromium.org/2505943002/diff/40001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2505943002/diff/40001/ui/views/cocoa/bridged_content_view.mm#newcode277 ui/views/cocoa/bridged_content_view.mm:277: On 2016/11/21 12:44:20, themblsha wrote: ...
4 years, 1 month ago (2016-11-21 22:00:16 UTC) #14
themblsha
On 2016/11/21 22:00:16, tapted wrote: > Method/prototype declarations on private categories (i.e. `@interface Foo ()` ...
4 years, 1 month ago (2016-11-22 07:54:29 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505943002/80001
4 years, 1 month ago (2016-11-22 07:54:45 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/336769)
4 years, 1 month ago (2016-11-22 08:51:26 UTC) #19
themblsha
Had to fix TextfieldTest*, please take a look whether my changes are kosher. https://codereview.chromium.org/2505943002/diff/100001/ui/views/cocoa/bridged_content_view.mm File ...
4 years, 1 month ago (2016-11-22 14:33:48 UTC) #20
tapted
Since new files are changing, once the issues are resolved, you should get an lg ...
4 years ago (2016-11-23 02:09:31 UTC) #25
themblsha
+pkasting. Peter, could you please look at ui/events/base_event_utils.cc, and textfield*.cc? https://codereview.chromium.org/2505943002/diff/100001/ui/views/cocoa/bridged_content_view.mm File ui/views/cocoa/bridged_content_view.mm (right): https://codereview.chromium.org/2505943002/diff/100001/ui/views/cocoa/bridged_content_view.mm#newcode533 ...
4 years ago (2016-11-23 15:16:39 UTC) #27
Peter Kasting
LGTM https://codereview.chromium.org/2505943002/diff/120001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2505943002/diff/120001/ui/views/controls/textfield/textfield.cc#newcode101 ui/views/controls/textfield/textfield.cc:101: const bool control = event.IsControlDown() || event.IsCommandDown(); This ...
4 years ago (2016-11-23 17:35:22 UTC) #32
tapted
lgtm again - thanks! https://codereview.chromium.org/2505943002/diff/120001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2505943002/diff/120001/ui/views/controls/textfield/textfield.cc#newcode101 ui/views/controls/textfield/textfield.cc:101: const bool control = event.IsControlDown() ...
4 years ago (2016-11-23 23:43:21 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505943002/120001
4 years ago (2016-11-24 07:01:02 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years ago (2016-11-24 09:02:19 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505943002/120001
4 years ago (2016-11-24 11:28:06 UTC) #40
commit-bot: I haz the power
Exceeded global retry quota
4 years ago (2016-11-24 13:28:55 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505943002/120001
4 years ago (2016-11-25 02:57:24 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/74496)
4 years ago (2016-11-25 03:39:48 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505943002/120001
4 years ago (2016-11-25 04:07:28 UTC) #48
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-25 05:33:02 UTC) #50
commit-bot: I haz the power
4 years ago (2016-11-25 05:35:55 UTC) #52
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/e405f4e5df76138d888527165ea13446a1e08296
Cr-Commit-Position: refs/heads/master@{#434436}

Powered by Google App Engine
This is Rietveld 408576698