From e69556705a762aa2562de604bd143679df8219cd Mon Sep 17 00:00:00 2001 From: "pkotwicz@chromium.org" Date: Sat, 25 Feb 2012 21:57:12 +0000 Subject: When locking the screen via Ctrl-Shift-L from wrench menu, login screen menus do not work, because wrench menu is not fully closed. Made Noop events always make it to inner loop in the nested_dispatcher such that the menu can fully close itself via noop event. Bug=113247 Testing=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123500 Review URL: https://chromiumcodereview.appspot.com/9381008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123669 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/cocoa/events_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/base/cocoa/events_mac.mm') diff --git a/ui/base/cocoa/events_mac.mm b/ui/base/cocoa/events_mac.mm index f40d755..a3ae73b 100644 --- a/ui/base/cocoa/events_mac.mm +++ b/ui/base/cocoa/events_mac.mm @@ -179,6 +179,10 @@ bool GetScrollOffsets(const base::NativeEvent& native_event, return false; } +bool IsNoopEvent(base::NativeEvent event) { + return ([event type] == NSApplicationDefined && [event subtype] == 0); +} + base::NativeEvent CreateNoopEvent() { return [NSEvent otherEventWithType:NSApplicationDefined location:NSZeroPoint -- cgit v1.1