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

Unified Diff: chrome/browser/ui/views/constrained_window_views.cc

Issue 11316287: Move WindowModalityController to CoreWm. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « ash/wm/window_modality_controller_unittest.cc ('k') | ui/aura/test/test_activation_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/constrained_window_views.cc
===================================================================
--- chrome/browser/ui/views/constrained_window_views.cc (revision 170620)
+++ chrome/browser/ui/views/constrained_window_views.cc (working copy)
@@ -57,8 +57,10 @@
#endif
#if defined(USE_AURA)
+#include "ui/aura/window.h"
#include "ui/views/corewm/visibility_controller.h"
#include "ui/views/corewm/window_animations.h"
+#include "ui/views/corewm/window_modality_controller.h"
#endif
#if defined(USE_ASH)
@@ -66,8 +68,6 @@
#include "ash/ash_switches.h"
#include "ash/shell.h"
#include "ash/wm/custom_frame_view_ash.h"
-#include "ash/wm/window_modality_controller.h"
-#include "ui/aura/window.h"
#endif
using base::TimeDelta;
@@ -632,8 +632,8 @@
constrained_window_tab_helper->AddConstrainedDialog(this);
#if defined(USE_ASH)
GetNativeWindow()->SetProperty(ash::kConstrainedWindowKey, true);
- ash::SetModalParent(GetNativeWindow(),
- web_contents_->GetView()->GetNativeView());
+ views::corewm::SetModalParent(GetNativeWindow(),
+ web_contents_->GetView()->GetNativeView());
#endif
}
« no previous file with comments | « ash/wm/window_modality_controller_unittest.cc ('k') | ui/aura/test/test_activation_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698