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

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

Issue 2633233003: aura-mus: Implement stacking in DesktopWindowTreeHostMus. (Closed)
Patch Set: Patch cleanup. 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
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 13660c96943379fbde45e8063fb00f656942a44e..d8c4c4755190be2885fa6995dda3ac7ffe97cf08 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1283,6 +1283,8 @@ void WindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) {
if (!change)
return;
+ delegate_->OnChangeCompleted(change->change_type(), success);
+
if (!success)
change->ChangeFailed();
@@ -1610,6 +1612,14 @@ void WindowTreeClient::OnWindowTreeHostDeactivateWindow(
WindowMus::Get(window_tree_host->window())->server_id());
}
+void WindowTreeClient::OnWindowTreeHostStackAtTop(
+ WindowTreeHostMus* window_tree_host) {
+ WindowMus* window = WindowMus::Get(window_tree_host->window());
+ const uint32_t change_id = ScheduleInFlightChange(
+ base::MakeUnique<CrashInFlightChange>(window, ChangeType::REORDER));
+ tree_->StackAtTop(change_id, window->server_id());
+}
+
std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel(
const std::map<std::string, std::vector<uint8_t>>* properties) {
std::unique_ptr<WindowPortMus> window_port =

Powered by Google App Engine
This is Rietveld 408576698