summaryrefslogtreecommitdiffstats
path: root/ui/base/cocoa/events_mac.mm
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 21:57:12 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 21:57:12 +0000
commite69556705a762aa2562de604bd143679df8219cd (patch)
treeeaf5cf3ef2a8e04851822b7e057ae7602155f3ce /ui/base/cocoa/events_mac.mm
parent228901ff10bb26e90ff6c290a43d36b907a6c8b2 (diff)
downloadchromium_src-e69556705a762aa2562de604bd143679df8219cd.zip
chromium_src-e69556705a762aa2562de604bd143679df8219cd.tar.gz
chromium_src-e69556705a762aa2562de604bd143679df8219cd.tar.bz2
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
Diffstat (limited to 'ui/base/cocoa/events_mac.mm')
-rw-r--r--ui/base/cocoa/events_mac.mm4
1 files changed, 4 insertions, 0 deletions
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