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

Unified Diff: ash/mus/window_manager.h

Issue 2764963003: aura-mus: add a drag representation image. (Closed)
Patch Set: Patch cleanup. Created 3 years, 9 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 | ash/mus/window_manager.cc » ('j') | ash/mus/window_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.h
diff --git a/ash/mus/window_manager.h b/ash/mus/window_manager.h
index 2c58abe2fcb910c4c85b72cfc70a11f33f4130da..328dfd42b42a43b5196119ae22338740a9525998 100644
--- a/ash/mus/window_manager.h
+++ b/ash/mus/window_manager.h
@@ -41,6 +41,7 @@ class WMState;
namespace ash {
+class DragImageView;
class RootWindowController;
class ScreenMus;
class ShellDelegate;
@@ -151,6 +152,12 @@ class WindowManager : public aura::WindowManagerDelegate,
std::map<std::string, std::vector<uint8_t>>* properties) override;
void OnWmClientJankinessChanged(const std::set<aura::Window*>& client_windows,
bool not_responding) override;
+ void OnWmBuildDragImage(const gfx::Point& cursor_location,
+ const SkBitmap& drag_image,
+ const gfx::Vector2d& drag_image_offset,
+ ui::mojom::DragEventSource source) override;
+ void OnWmMoveDragImage(const gfx::Point& cursor_location) override;
+ void OnWmDestroyDragImage() override;
void OnWmWillCreateDisplay(const display::Display& display) override;
void OnWmNewDisplay(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host,
const display::Display& display) override;
@@ -203,6 +210,13 @@ class WindowManager : public aura::WindowManagerDelegate,
// See WmShellMus's constructor for details. Tests may set to false.
bool create_session_state_delegate_stub_for_test_ = true;
+ // An image representation of the contents of the current drag and drop
sky 2017/03/23 00:05:36 Please put the drag related state into a struct. T
Elliot Glaysher 2017/03/23 19:58:44 Done.
+ // clipboard.
+ std::unique_ptr<ash::DragImageView> drag_image_;
+
+ // The cursor offset of the dragged item.
+ gfx::Vector2d drag_image_offset_;
+
DISALLOW_COPY_AND_ASSIGN(WindowManager);
};
« no previous file with comments | « no previous file | ash/mus/window_manager.cc » ('j') | ash/mus/window_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698