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

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

Issue 2006463002: Scale the location of drag image for high DPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_drag_drop_client_aurax11.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_drag_drop_client_aurax11.h
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h
index 9fec7bbe020b2d6ea9029ed17780b88369fabed5..07481288eb3aed6738ef4670f7ca8d28d3293f84 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h
@@ -19,6 +19,7 @@
#include "ui/base/cursor/cursor.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/gfx/x/x11_atom_cache.h"
#include "ui/views/views_export.h"
#include "ui/views/widget/desktop_aura/x11_move_loop_delegate.h"
@@ -118,6 +119,9 @@ class VIEWS_EXPORT DesktopDragDropClientAuraX11
// server.
virtual void SendXClientEvent(::Window xid, XEvent* xev);
+ protected:
+ Widget* drag_widget() { return drag_widget_.get(); }
+
private:
enum SourceState {
// |source_current_window_| will receive a drop once we receive an
@@ -278,6 +282,9 @@ class VIEWS_EXPORT DesktopDragDropClientAuraX11
// Widget that the user drags around. May be NULL.
std::unique_ptr<Widget> drag_widget_;
+ // The size of drag image.
+ gfx::Size drag_image_size_;
+
// The offset of |drag_widget_| relative to the mouse position.
gfx::Vector2d drag_widget_offset_;
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698