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

Issue 2035393002: Modify ui_controls::SendKeyPressNotifyWhenDone to use [NSApp postEvent: atStart:]. (Closed)

Created:
4 years, 6 months ago by karandeepb
Modified:
4 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify ui_controls::SendKeyPressNotifyWhenDone to use [NSApp postEvent: atStart:]. Currently, in ui_controls_mac.mm, [NSApp postEvent: atStart:] is used to dispatch events, except in SendKeyPressNotifyWhenDone, where [NSApp sendEvent:] is used. The reason to use [NSApp sendEvent:] was the failure of BrowserKeyEventsTest.CommandKeyEvents which has since been disabled (crbug.com/81451). This CL modifies SendKeyPressNotifyWhenDone to use [NSApp postEvent: atStart:] instead. This is required since events sent using [NSApp sendEvent:] are not added to the event queue, hence the correct event is not reported by [NSApp currentEvent]. BUG=607429, 617110

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -21 lines) Patch
M ui/base/test/ui_controls_mac.mm View 2 chunks +7 lines, -21 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
karandeepb
PTAL @thakis. Require this for crrev.com/2033433006.
4 years, 6 months ago (2016-06-06 09:46:24 UTC) #3
karandeepb
ping @thakis. Thanks.
4 years, 6 months ago (2016-06-07 05:50:49 UTC) #4
Nico
Wait, the motivation for removing a comment saying "We can't just $foo, it makes a ...
4 years, 6 months ago (2016-06-09 15:13:33 UTC) #6
karandeepb
On 2016/06/09 15:13:33, Nico wrote: > Wait, the motivation for removing a comment saying "We ...
4 years, 6 months ago (2016-06-10 08:15:22 UTC) #7
karandeepb
On 2016/06/10 08:15:22, karandeepb wrote: > On 2016/06/09 15:13:33, Nico wrote: > > Wait, the ...
4 years, 6 months ago (2016-06-10 08:15:50 UTC) #8
karandeepb
4 years, 5 months ago (2016-06-29 00:52:37 UTC) #9
Message was sent while issue was closed.
So I did some investigation but couldn't find the root cause behind why
postEvent doesn't work. Have commented on the bug with my findings -
https://bugs.chromium.org/p/chromium/issues/detail?id=49270#c9

Powered by Google App Engine
This is Rietveld 408576698