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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.cc

Issue 1784573002: mus: Client-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b548402_modal_windows_server
Patch Set: Created 4 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: components/mus/public/cpp/lib/window_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index cdcd7b613a8670b7c973c2d8ac8c887086c01b92..47ea48ee4cc87d9d8fb68a1fa5b16597c3efd238 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -217,6 +217,13 @@ void WindowTreeClientImpl::RemoveTransientWindowFromParent(Window* window) {
tree_->RemoveTransientWindowFromParent(change_id, window->id());
}
+void WindowTreeClientImpl::SetModal(Window* window) {
+ DCHECK(tree_);
+ const uint32_t change_id = ScheduleInFlightChange(
+ make_scoped_ptr(new CrashInFlightChange(window, ChangeType::SET_MODAL)));
+ tree_->SetModal(change_id, window->id());
+}
+
void WindowTreeClientImpl::Reorder(Window* window,
Id relative_window_id,
mojom::OrderDirection direction) {

Powered by Google App Engine
This is Rietveld 408576698