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

Unified Diff: ash/mus/window_manager.h

Issue 2764963003: aura-mus: add a drag representation image. (Closed)
Patch Set: Also move the state in WindowTree into a struct. 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') | services/ui/public/interfaces/window_manager.mojom » ('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..8fb375048c4e9468124cf1e12d9d398a18da83b6 100644
--- a/ash/mus/window_manager.h
+++ b/ash/mus/window_manager.h
@@ -151,6 +151,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& screen_location,
+ const SkBitmap& drag_image,
+ const gfx::Vector2d& drag_image_offset,
+ ui::mojom::PointerKind source) override;
+ void OnWmMoveDragImage(const gfx::Point& screen_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 +209,10 @@ 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;
+ // State that is only valid during a drag.
+ struct DragState;
+ std::unique_ptr<DragState> drag_state_;
+
DISALLOW_COPY_AND_ASSIGN(WindowManager);
};
« no previous file with comments | « no previous file | ash/mus/window_manager.cc » ('j') | services/ui/public/interfaces/window_manager.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698