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

Unified Diff: views/widget/native_widget_aura.cc

Issue 8574033: Beginnings of Window Modality support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/views/window/custom_frame_view.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/native_widget_aura.cc
===================================================================
--- views/widget/native_widget_aura.cc (revision 110305)
+++ views/widget/native_widget_aura.cc (working copy)
@@ -311,8 +311,7 @@
}
void NativeWidgetAura::BecomeModal() {
- // http://crbug.com/93936
- NOTIMPLEMENTED();
+ window_->SetIntProperty(aura::kModalKey, 1);
}
gfx::Rect NativeWidgetAura::GetWindowScreenBounds() const {
@@ -352,6 +351,8 @@
void NativeWidgetAura::Close() {
Hide();
+ window_->SetIntProperty(aura::kModalKey, 0);
+
if (!close_widget_factory_.HasWeakPtrs()) {
MessageLoop::current()->PostTask(
FROM_HERE,
« no previous file with comments | « ui/views/window/custom_frame_view.cc ('k') | views/widget/tooltip_manager_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698