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

Unified Diff: ui/base/x/events_x.cc

Issue 8597010: Send fake event when event_type is set to exit menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use xdisplay_ Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/win/events_win.cc ('k') | views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/events_x.cc
diff --git a/ui/base/x/events_x.cc b/ui/base/x/events_x.cc
index 329acbe5147d1a8a75fe1691d9b8b718b1a57c7d..966fec275141e06a768c3e9da254b5010621cee8 100644
--- a/ui/base/x/events_x.cc
+++ b/ui/base/x/events_x.cc
@@ -4,6 +4,7 @@
#include "ui/base/events.h"
+#include <X11/Xlib.h>
#include <X11/extensions/XInput2.h>
#include "base/logging.h"
@@ -354,4 +355,14 @@ float GetTouchForce(const base::NativeEvent& native_event) {
return force;
}
+base::NativeEvent CreateNoopEvent() {
+ static XEvent* noop = new XEvent();
+ noop->xclient.type = ClientMessage;
+ noop->xclient.display = NULL;
+ noop->xclient.window = None;
+ noop->xclient.message_type = 0;
+ noop->xclient.format = 0;
+ return noop;
+}
+
} // namespace ui
« no previous file with comments | « ui/base/win/events_win.cc ('k') | views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698