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

Unified Diff: aura/window_manager.h

Issue 7886042: Move Aura to UI subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
Index: aura/window_manager.h
===================================================================
--- aura/window_manager.h (revision 100961)
+++ aura/window_manager.h (working copy)
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef AURA_WINDOW_MANAGER_H_
-#define AURA_WINDOW_MANAGER_H_
-#pragma once
-
-#include "base/logging.h"
-#include "ui/gfx/point.h"
-
-namespace aura {
-
-class Window;
-class MouseEvent;
-
-// An object that filters events sent to an owner window, potentially performing
-// adjustments to the window's position, size and z-index.
-//
-// TODO(beng): Make this into an interface so we can have specializations for
-// different types of Window and product.
-class WindowManager {
- public:
- explicit WindowManager(Window* owner);
- ~WindowManager();
-
- // Try to handle |event| (before the owner's delegate gets a chance to).
- // Returns true if the event was handled by the WindowManager and should not
- // be forwarded to the owner's delegate.
- bool OnMouseEvent(MouseEvent* event);
-
- private:
- // Moves the owner window and all of its parents to the front of their
- // respective z-orders.
- void MoveWindowToFront();
-
- Window* owner_;
- gfx::Point mouse_down_offset_;
- gfx::Point window_location_;
- int window_component_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowManager);
-};
-
-} // namespace aura
-
-#endif // AURA_WINDOW_MANAGER_H_
« no previous file with comments | « aura/window_delegate.h ('k') | aura/window_manager.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698