diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 00:39:26 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 00:39:26 +0000 |
commit | eaf6dd563c1057e8adb4ec20d0d85e2c07cb5f13 (patch) | |
tree | aa7ba22226537c129db8e755ae1f3580c7f6d73e /aura/window.h | |
parent | 9978f269d897907a21140fcbc75ed76c4b93d117 (diff) | |
download | chromium_src-eaf6dd563c1057e8adb4ec20d0d85e2c07cb5f13.zip chromium_src-eaf6dd563c1057e8adb4ec20d0d85e2c07cb5f13.tar.gz chromium_src-eaf6dd563c1057e8adb4ec20d0d85e2c07cb5f13.tar.bz2 |
Handle interactive window sizing and moving, as well as primitive z-index shuffling.
http://crbug.com/93937
http://crbug.com/93938
TEST=none
Review URL: http://codereview.chromium.org/7792069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99277 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'aura/window.h')
-rw-r--r-- | aura/window.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/aura/window.h b/aura/window.h index 1e62283..0b5bfd4 100644 --- a/aura/window.h +++ b/aura/window.h @@ -25,6 +25,7 @@ namespace aura { class Desktop; class MouseEvent; class WindowDelegate; +class WindowManager; // Aura window implementation. Interesting events are sent to the // WindowDelegate. @@ -73,6 +74,10 @@ class Window : public ui::LayerDelegate { void SetParent(Window* parent); Window* parent() { return parent_; } + // Move the specified child of this Window to the front of the z-order. + // TODO(beng): this is (obviously) feeble. + void MoveChildToFront(Window* child); + // Draw the window and its children. void DrawTree(); @@ -87,7 +92,7 @@ class Window : public ui::LayerDelegate { gfx::Point* point); // Handles a mouse event. Returns true if handled. - bool OnMouseEvent(const MouseEvent& event); + bool OnMouseEvent(MouseEvent* event); WindowDelegate* delegate() { return delegate_; } @@ -135,6 +140,8 @@ class Window : public ui::LayerDelegate { int id_; + scoped_ptr<WindowManager> window_manager_; + DISALLOW_COPY_AND_ASSIGN(Window); }; |