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

Unified Diff: ui/views/mus/native_widget_mus.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: Added early out 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
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index c7ab681ba74e1c6067d951abf7d3166a288bde01..2a25edd422eb454af217aad7008692ba3b5cfd46 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -481,7 +481,8 @@ void NativeWidgetMus::SetWindowIcons(const gfx::ImageSkia& window_icon,
}
void NativeWidgetMus::InitModalType(ui::ModalType modal_type) {
- // NOTIMPLEMENTED();
+ if (modal_type != ui::MODAL_TYPE_NONE)
+ window_->SetModal();
}
gfx::Rect NativeWidgetMus::GetWindowBoundsInScreen() const {
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698