| Index: ui/aura/window_delegate.h
|
| diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h
|
| index 34521c8575b7db6924d21b4a8e9686c5c2882d5e..d08622269c1bde141e19112db55c5ceefc58400e 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 views counterparts. That is, if the function
|
| + // 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() {}
|
| };
|
|
|