Chromium Code Reviews| Index: ui/aura/window_delegate.h |
| diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h |
| index 34521c8575b7db6924d21b4a8e9686c5c2882d5e..01063b59b2d51c0b5fb1183874e1d78167b1e45d 100644 |
| --- a/ui/aura/window_delegate.h |
| +++ b/ui/aura/window_delegate.h |
| @@ -12,6 +12,7 @@ |
| namespace gfx { |
| class Canvas; |
| +class Path; |
| class Point; |
| class Rect; |
| class Size; |
| @@ -84,6 +85,16 @@ class AURA_EXPORT WindowDelegate { |
| // match when it's sent. |
| virtual void OnWindowVisibilityChanged(bool visible) = 0; |
| + // Called from Window::HitTest to check if the window has a custom hit test |
| + // mask. It works similar to the vies counterparts. That is, if the function |
|
Ben Goodger (Google)
2012/06/15 22:57:26
views
xiyuan
2012/06/15 23:07:41
Done.
|
| + // returns true, GetHitTestMask below will be called to get the mask. |
| + // Otherwise, Window will hit-test against its bounds. |
| + virtual bool HasHitTestMask() const = 0; |
| + |
| + // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask |
| + // above returns true. |
| + virtual void GetHitTestMask(gfx::Path* mask) const = 0; |
| + |
| protected: |
| virtual ~WindowDelegate() {} |
| }; |