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

Unified Diff: ui/views/event_utils_aura.cc

Issue 100303005: Ensure that reposting mouse events on Windows posts the message natively via the PostMessage API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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
Index: ui/views/event_utils_aura.cc
===================================================================
--- ui/views/event_utils_aura.cc (revision 238186)
+++ ui/views/event_utils_aura.cc (working copy)
@@ -10,6 +10,7 @@
#include "ui/aura/root_window.h"
#include "ui/events/event.h"
#include "ui/gfx/point.h"
+#include "ui/views/views_delegate.h"
using aura::client::ScreenPositionClient;
@@ -20,6 +21,13 @@
if (!window)
return false;
+#if defined(OS_WIN)
+ if (ViewsDelegate::views_delegate &&
+ !ViewsDelegate::views_delegate->IsWindowInMetro(window)) {
+ return RepostLocatedEventWin(
+ window->GetDispatcher()->host()->GetAcceleratedWidget(), event);
+ }
+#endif
aura::Window* root_window = window->GetRootWindow();
gfx::Point root_loc(event.location());
« no previous file with comments | « ui/views/event_utils.h ('k') | ui/views/event_utils_win.cc » ('j') | ui/views/event_utils_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698