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

Issue 2531033003: MacViews: Fix GlobalKeyboardShortcutsTest.SwitchTabsMac. (Closed)

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

Description

MacViews: Fix GlobalKeyboardShortcutsTest.SwitchTabsMac. The old test always called -[NSWindow performKeyEquivalent:] but as of r434436 we need to ensure that both performKeyEquivalent: and keyDown: are called in order for window accelerators to work. BUG=665823 Committed: https://crrev.com/2394f02438a9b0c5c8aa20a099ed02d7a5867eba Cr-Commit-Position: refs/heads/master@{#435918}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add parens around bitwise operation. #

Patch Set 3 : Remove Views dependency from Cocoa code. #

Total comments: 4

Patch Set 4 : Fix tapted's remarks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -6 lines) Patch
M chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm View 1 2 3 2 chunks +22 lines, -6 lines 0 comments Download
M ui/views/test/event_generator_delegate_mac.mm View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
themblsha
4 years ago (2016-11-25 16:45:39 UTC) #2
themblsha
Now I think I have enough reviewers.
4 years ago (2016-11-25 16:47:03 UTC) #4
tapted
can you paste the failure you're getting into the crbug comment? And I think it ...
4 years ago (2016-11-28 08:14:18 UTC) #6
themblsha
Added failure to the crbug. https://codereview.chromium.org/2531033003/diff/1/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm File chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm (right): https://codereview.chromium.org/2531033003/diff/1/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm#newcode18 chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm:18: #include "ui/views/test/event_generator_delegate_mac.h" On 2016/11/28 ...
4 years ago (2016-11-30 12:35:33 UTC) #7
tapted
lgtm with an extra comment in ActivateAccelerator() - thanks! https://codereview.chromium.org/2531033003/diff/1/ui/views/test/event_generator_delegate_mac.mm File ui/views/test/event_generator_delegate_mac.mm (right): https://codereview.chromium.org/2531033003/diff/1/ui/views/test/event_generator_delegate_mac.mm#newcode407 ui/views/test/event_generator_delegate_mac.mm:407: ...
4 years ago (2016-11-30 23:52:03 UTC) #8
tapted
https://codereview.chromium.org/2531033003/diff/40001/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm File chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm (right): https://codereview.chromium.org/2531033003/diff/40001/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm#newcode15 chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm:15: #include "ui/base/accelerators/accelerator.h" (oh, and a nit: is this still ...
4 years ago (2016-11-30 23:53:03 UTC) #9
themblsha
+thakis Could you please take a look? https://codereview.chromium.org/2531033003/diff/40001/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm File chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm (right): https://codereview.chromium.org/2531033003/diff/40001/chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm#newcode15 chrome/browser/global_keyboard_shortcuts_mac_browsertest.mm:15: #include "ui/base/accelerators/accelerator.h" ...
4 years ago (2016-12-01 11:24:17 UTC) #11
Nico
Is it possible to test this?
4 years ago (2016-12-01 19:19:26 UTC) #12
themblsha
On 2016/12/01 19:19:26, Nico wrote: > Is it possible to test this? To test the ...
4 years ago (2016-12-02 09:57:55 UTC) #13
Nico
On 2016/12/02 09:57:55, themblsha wrote: > On 2016/12/01 19:19:26, Nico wrote: > > Is it ...
4 years ago (2016-12-02 11:25:04 UTC) #14
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/2531033003/60001
4 years ago (2016-12-02 11:44:40 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-02 12:03:36 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-02 12:05:35 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2394f02438a9b0c5c8aa20a099ed02d7a5867eba
Cr-Commit-Position: refs/heads/master@{#435918}

Powered by Google App Engine
This is Rietveld 408576698