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

Unified Diff: services/ui/ws/platform_display_default.h

Issue 2629653002: Add window position offset. (Closed)
Patch Set: Created 3 years, 11 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
Index: services/ui/ws/platform_display_default.h
diff --git a/services/ui/ws/platform_display_default.h b/services/ui/ws/platform_display_default.h
index f0f5326ce7c6ddce6c6d8b6e4c4f61fb76907191..e1fc569275f69ec790a687a58330b7400ef46cc4 100644
--- a/services/ui/ws/platform_display_default.h
+++ b/services/ui/ws/platform_display_default.h
@@ -81,6 +81,9 @@ class PlatformDisplayDefault : public PlatformDisplay,
PlatformDisplayDelegate* delegate_ = nullptr;
std::unique_ptr<FrameGenerator> frame_generator_;
+ // Fix X11 event positions when the window gets resized.
+ int window_height_offset_ = 0;
+
display::ViewportMetrics metrics_;
std::unique_ptr<ui::PlatformWindow> platform_window_;
gfx::AcceleratedWidget widget_;
« no previous file with comments | « no previous file | services/ui/ws/platform_display_default.cc » ('j') | services/ui/ws/platform_display_default.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698