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

Unified Diff: ui/aura/mus/window_tree_client.h

Issue 2657003004: aura-mus: Hook up PerformWindowMove(). (Closed)
Patch Set: Fold PerformWindowMove and CancelWindowMove. 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
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.h
diff --git a/ui/aura/mus/window_tree_client.h b/ui/aura/mus/window_tree_client.h
index cd62cfc90761b823d93436b2a9bb8d217b8dd32a..7c687dbd7d83330fb1aef3e899fac9e79066285b 100644
--- a/ui/aura/mus/window_tree_client.h
+++ b/ui/aura/mus/window_tree_client.h
@@ -155,17 +155,6 @@ class AURA_EXPORT WindowTreeClient
void StartPointerWatcher(bool want_moves);
void StopPointerWatcher();
- // Performs a window move. |callback| will be asynchronously called with the
- // whether the move loop completed successfully.
- void PerformWindowMove(Window* window,
- ui::mojom::MoveLoopSource source,
- const gfx::Point& cursor_location,
- const base::Callback<void(bool)>& callback);
-
- // Cancels a in progress window move. (If no window is currently being moved,
- // does nothing.)
- void CancelWindowMove(Window* window);
-
void AddObserver(WindowTreeClientObserver* observer);
void RemoveObserver(WindowTreeClientObserver* observer);
@@ -446,6 +435,13 @@ class AURA_EXPORT WindowTreeClient
void OnWindowTreeHostStackAbove(WindowTreeHostMus* window_tree_host,
Window* window) override;
void OnWindowTreeHostStackAtTop(WindowTreeHostMus* window_tree_host) override;
+ void OnWindowTreeHostPerformWindowMove(
+ WindowTreeHostMus* window_tree_host,
+ ui::mojom::MoveLoopSource mus_source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback) override;
+ void OnWindowTreeHostCancelWindowMove(
+ WindowTreeHostMus* window_tree_host) override;
std::unique_ptr<WindowPortMus> CreateWindowPortForTopLevel(
const std::map<std::string, std::vector<uint8_t>>* properties) override;
void OnWindowTreeHostCreated(WindowTreeHostMus* window_tree_host) override;
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698