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

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

Issue 2657003004: aura-mus: Hook up PerformWindowMove(). (Closed)
Patch Set: Add comments. 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 | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/mus/window_tree_host_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 2c22cb46b6e0bbb51164e6501d08c7bc71d076ce..6aa5f9f91e7c852f8b0c438dc5fce82a78eb9ac4 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1710,6 +1710,22 @@ void WindowTreeClient::OnWindowTreeHostStackAtTop(
tree_->StackAtTop(change_id, window->server_id());
}
+void WindowTreeClient::OnWindowTreeHostPerformWindowMove(
+ WindowTreeHostMus* window_tree_host,
+ ui::mojom::MoveLoopSource source,
+ const gfx::Point& cursor_location,
+ const base::Callback<void(bool)>& callback) {
+ PerformWindowMove(window_tree_host->window(),
sky 2017/01/27 19:00:31 Is there any reason to keep the PerformWindowMove/
Elliot Glaysher 2017/01/27 20:22:16 There are not. Moved implementations.
+ source,
+ cursor_location,
+ callback);
+}
+
+void WindowTreeClient::OnWindowTreeHostCancelWindowMove(
+ WindowTreeHostMus* window_tree_host) {
+ CancelWindowMove(window_tree_host->window());
+}
+
std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel(
const std::map<std::string, std::vector<uint8_t>>* properties) {
std::unique_ptr<WindowPortMus> window_port =
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/mus/window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698