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

Unified Diff: ui/views/corewm/window_modality_controller.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 | « ui/views/corewm/window_modality_controller.h ('k') | ui/views/test/capture_tracking_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_modality_controller.cc
===================================================================
--- ui/views/corewm/window_modality_controller.cc (revision 170620)
+++ ui/views/corewm/window_modality_controller.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/wm/window_modality_controller.h"
+#include "ui/views/corewm/window_modality_controller.h"
#include <algorithm>
@@ -17,7 +17,8 @@
#include "ui/views/corewm/window_animations.h"
#include "ui/views/corewm/window_util.h"
-namespace ash {
+namespace views {
+namespace corewm {
// Transient child's modal parent.
extern const aura::WindowProperty<aura::Window*>* const kModalParentKey;
@@ -80,15 +81,13 @@
// We always want to check the for the transient child of the activatable
// window.
- aura::Window* activatable = views::corewm::GetActivatableWindow(window);
+ aura::Window* activatable = GetActivatableWindow(window);
if (!activatable)
return NULL;
return GetModalTransientChild(activatable, window);
}
-namespace internal {
-
////////////////////////////////////////////////////////////////////////////////
// WindowModalityController, public:
@@ -150,11 +149,10 @@
aura::Window* modal_transient_child = GetModalTransient(target);
if (modal_transient_child && (event->type() == ui::ET_MOUSE_PRESSED ||
event->type() == ui::ET_TOUCH_PRESSED)) {
- views::corewm::AnimateWindow(modal_transient_child,
- views::corewm::WINDOW_ANIMATION_TYPE_BOUNCE);
+ AnimateWindow(modal_transient_child, WINDOW_ANIMATION_TYPE_BOUNCE);
}
return !!modal_transient_child;
}
-} // namespace internal
-} // namespace ash
+} // namespace corewm
+} // namespace views
« no previous file with comments | « ui/views/corewm/window_modality_controller.h ('k') | ui/views/test/capture_tracking_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698