diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 18:52:44 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 18:52:44 +0000 |
commit | 1c34932902e6462e70980112ee045907492602c8 (patch) | |
tree | bb09aa097f0d2e1b386fc72456dee059c73bd32f /aura/window.h | |
parent | 08858317710b1f9df9ebb786f7481cf7c6e0dbbe (diff) | |
download | chromium_src-1c34932902e6462e70980112ee045907492602c8.zip chromium_src-1c34932902e6462e70980112ee045907492602c8.tar.gz chromium_src-1c34932902e6462e70980112ee045907492602c8.tar.bz2 |
Revert 98850 - Proper MouseEvent targeting. Adds a Window method that locates a Window for a given point.
Also adds an Aura test suite.
http://crbug.com/93933
http://crbug.com/93943
TEST=see unittest
Review URL: http://codereview.chromium.org/7791030
TBR=ben@chromium.org
Review URL: http://codereview.chromium.org/7739002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'aura/window.h')
-rw-r--r-- | aura/window.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/aura/window.h b/aura/window.h index f5667b8..871ceb6 100644 --- a/aura/window.h +++ b/aura/window.h @@ -27,7 +27,6 @@ class WindowDelegate; // Aura window implementation. Interesting events are sent to the // WindowDelegate. -// TODO(beng): resolve ownership. class Window { public: enum Visibility { @@ -81,26 +80,9 @@ class Window { void AddChild(Window* child); void RemoveChild(Window* child); - static void ConvertPointToWindow(Window* source, - Window* target, - gfx::Point* point); - // Handles a mouse event. Returns true if handled. bool OnMouseEvent(const MouseEvent& event); - WindowDelegate* delegate() { return delegate_; } - - // Returns true if the mouse pointer at the specified |point| can trigger an - // event for this Window. - // TODO(beng): - // A Window can supply a hit-test mask to cause some portions of itself to not - // trigger events, causing the events to fall through to the Window behind. - bool HitTest(const gfx::Point& point); - - // Returns the Window that most closely encloses |point| for the purposes of - // event targeting. - Window* GetEventHandlerForPoint(const gfx::Point& point); - private: typedef std::vector<Window*> Windows; |