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

Unified Diff: base/message_pump_aurax11.cc

Issue 11818065: OK, here's john's patch plus my sync stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Redisable PlatformAppBrowserTest.WebContentsHasFocus on aura Created 7 years, 10 months 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 | « no previous file | chrome/browser/autofill/form_structure_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_pump_aurax11.cc
diff --git a/base/message_pump_aurax11.cc b/base/message_pump_aurax11.cc
index 9ba7989c4a7c8487508a26961189df62f8ccbe30..8c764d5ffcd04990236ee250bab7f6de905d3446 100644
--- a/base/message_pump_aurax11.cc
+++ b/base/message_pump_aurax11.cc
@@ -91,7 +91,14 @@ Window FindEventTarget(const base::NativeEvent& xev) {
if (xev->type == GenericEvent &&
static_cast<XIEvent*>(xev->xcookie.data)->extension == g_xinput_opcode) {
target = static_cast<XIDeviceEvent*>(xev->xcookie.data)->event;
+ } else if (xev->type == MapNotify) {
+ target = xev->xmap.window;
+ } else if (xev->type == UnmapNotify) {
+ target = xev->xunmap.window;
}
+ // TODO(erg): Are there other events that we aren't reacting to properly
+ // because xev->xany.window != xev->eventname.window?
+
return target;
}
« no previous file with comments | « no previous file | chrome/browser/autofill/form_structure_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698