summaryrefslogtreecommitdiffstats
path: root/aura/window_delegate.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 18:32:33 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-30 18:32:33 +0000
commitddf5ff7b90b443c64c124f328cbc5b2f133de601 (patch)
tree95aaf27f61722a470209a3fa8c150a9a8ad2546c /aura/window_delegate.h
parent5466c9f369999f03d9067fd01953ce326ac3affd (diff)
downloadchromium_src-ddf5ff7b90b443c64c124f328cbc5b2f133de601.zip
chromium_src-ddf5ff7b90b443c64c124f328cbc5b2f133de601.tar.gz
chromium_src-ddf5ff7b90b443c64c124f328cbc5b2f133de601.tar.bz2
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 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'aura/window_delegate.h')
-rw-r--r--aura/window_delegate.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/aura/window_delegate.h b/aura/window_delegate.h
index ffa3191..93ad8f5 100644
--- a/aura/window_delegate.h
+++ b/aura/window_delegate.h
@@ -12,11 +12,19 @@ class Canvas;
namespace aura {
+class MouseEvent;
+
// Delegate interface for aura::Window.
class WindowDelegate {
public:
+ virtual bool OnMouseEvent(const MouseEvent& event) = 0;
+
// Asks the delegate to paint window contents into the supplied canvas.
- virtual void OnPaint(gfx::Canvas* canvas) = 0;
+ virtual void OnPaint(gfx::Canvas* canvas) = 0;
+
+ // Called when the Window has been destroyed (i.e. from its destructor).
+ // The delegate can use this as an opportunity to delete itself if necessary.
+ virtual void OnWindowDestroyed() = 0;
protected:
virtual ~WindowDelegate() {}