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

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

Issue 2745143004: Inform window manager about modal windows in mus+ash. (Closed)
Patch Set: rebased. 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 | « ui/aura/mus/window_tree_client.h ('k') | no next file » | 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 9b93c51aa52c4206e39da9f44e89475a51a30b5f..8b5bc8570e20a7ee089776f4be86dd79758953cb 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1431,6 +1431,12 @@ void WindowTreeClient::WmSetProperty(
window_manager_internal_client_->WmResponse(change_id, result);
}
+void WindowTreeClient::WmSetModalType(Id window_id, ui::ModalType type) {
+ WindowMus* window = GetWindowByServerId(window_id);
+ if (window)
+ window->GetWindow()->SetProperty(aura::client::kModalKey, type);
+}
+
void WindowTreeClient::WmSetCanFocus(Id window_id, bool can_focus) {
WindowMus* window = GetWindowByServerId(window_id);
if (window)
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698