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

Unified Diff: ui/views/corewm/window_modality_controller.h

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/aura/test/test_activation_client.cc ('k') | ui/views/corewm/window_modality_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/window_modality_controller.h
===================================================================
--- ui/views/corewm/window_modality_controller.h (revision 170620)
+++ ui/views/corewm/window_modality_controller.h (working copy)
@@ -2,38 +2,37 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_WINDOW_MODALITY_CONTROLLER_H_
-#define ASH_WM_WINDOW_MODALITY_CONTROLLER_H_
+#ifndef UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
+#define UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
#include <vector>
-#include "ash/ash_export.h"
#include "base/compiler_specific.h"
#include "ui/aura/env_observer.h"
#include "ui/aura/window_observer.h"
#include "ui/base/events/event_handler.h"
+#include "ui/views/views_export.h"
namespace ui {
class LocatedEvent;
}
-namespace ash {
+namespace views {
+namespace corewm {
// Sets the modal parent for the child.
-ASH_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent);
+VIEWS_EXPORT void SetModalParent(aura::Window* child, aura::Window* parent);
// Returns the modal transient child of |window|, or NULL if |window| does not
// have any modal transient children.
-ASH_EXPORT aura::Window* GetModalTransient(aura::Window* window);
+VIEWS_EXPORT aura::Window* GetModalTransient(aura::Window* window);
-namespace internal {
-
// WindowModalityController is an event filter that consumes events sent to
// windows that are the transient parents of window-modal windows. This filter
// must be added to the CompoundEventFilter so that activation works properly.
-class WindowModalityController : public ui::EventHandler,
- public aura::EnvObserver,
- public aura::WindowObserver {
+class VIEWS_EXPORT WindowModalityController : public ui::EventHandler,
+ public aura::EnvObserver,
+ public aura::WindowObserver {
public:
WindowModalityController();
virtual ~WindowModalityController();
@@ -62,7 +61,7 @@
DISALLOW_COPY_AND_ASSIGN(WindowModalityController);
};
-} // namespace internal
-} // namespace ash
+} // namespace corewm
+} // namespace views
-#endif // ASH_WM_WINDOW_MODALITY_CONTROLLER_H_
+#endif // UI_VIEWS_COREWM_WINDOW_MODALITY_CONTROLLER_H_
« no previous file with comments | « ui/aura/test/test_activation_client.cc ('k') | ui/views/corewm/window_modality_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698