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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h

Issue 922293002: linux/x11: Fix event dispatch in menus in High DPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
index d6b5cc842dce6ce5f25bb40a0d886928508f2ba6..fbd18d631732a3a651f3d3a40dcd1453254e134c 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
@@ -164,6 +164,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
ui::EventProcessor* GetEventProcessor() override;
private:
+ friend class DesktopWindowTreeHostX11HighDPITest;
// Initializes our X11 surface to draw on. This method performs all
// initialization related to talking to the X11 server.
void InitX11Window(const Widget::InitParams& params);
@@ -209,6 +210,11 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
// and dispatched to that host instead.
void DispatchTouchEvent(ui::TouchEvent* event);
+ // Updates the location of |located_event| to be in |host|'s coordinate system
+ // so that it can be dispatched to |host|.
+ void ConvertEventToDifferentHost(ui::LocatedEvent* located_event,
+ DesktopWindowTreeHostX11* host);
+
// Resets the window region for the current widget bounds if necessary.
void ResetWindowRegion();
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698