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

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

Issue 2745143004: Inform window manager about modal windows in mus+ash. (Closed)
Patch Set: . 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
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 82f54f0d6d4d97dc79c56cebfb063cc8c2b5661e..1675000ce9ed6ab3b8743dac5b5172a32e2c1d48 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1396,6 +1396,20 @@ void WindowTreeClient::WmSetProperty(
window_manager_internal_client_->WmResponse(change_id, result);
}
+void WindowTreeClient::WmSetModalType(uint32_t change_id,
+ Id window_id,
+ ui::ModalType type) {
+ WindowMus* window = GetWindowByServerId(window_id);
+ bool result = false;
+ if (window) {
+ DCHECK(window_manager_delegate_);
sky 2017/03/14 21:16:23 I think you should directly set the modal type her
Hadi 2017/03/17 16:16:32 Done.
+ result =
+ window_manager_delegate_->OnWmSetModalType(window->GetWindow(), type);
+ }
+ if (window_manager_internal_client_)
+ window_manager_internal_client_->WmResponse(change_id, result);
+}
+
void WindowTreeClient::WmSetCanFocus(Id window_id, bool can_focus) {
WindowMus* window = GetWindowByServerId(window_id);
if (window)

Powered by Google App Engine
This is Rietveld 408576698