| Index: ui/aura/test/test_window_delegate.h
|
| diff --git a/ui/aura/test/test_window_delegate.h b/ui/aura/test/test_window_delegate.h
|
| index 294709d8681c7c3001138d62937bde5302020451..cb51290f1734580a72edc4eed6023c69cad741dd 100644
|
| --- a/ui/aura/test/test_window_delegate.h
|
| +++ b/ui/aura/test/test_window_delegate.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/aura/window_delegate.h"
|
| +#include "ui/gfx/rect.h"
|
|
|
| namespace aura {
|
| namespace test {
|
| @@ -42,6 +43,8 @@ class TestWindowDelegate : public WindowDelegate {
|
| virtual void OnWindowDestroying() OVERRIDE;
|
| virtual void OnWindowDestroyed() OVERRIDE;
|
| virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
|
| + virtual bool HasHitTestMask() const OVERRIDE;
|
| + virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
|
|
|
| private:
|
| int window_component_;
|
| @@ -70,6 +73,21 @@ class ColorTestWindowDelegate : public TestWindowDelegate {
|
| DISALLOW_COPY_AND_ASSIGN(ColorTestWindowDelegate);
|
| };
|
|
|
| +// A simple WindowDelegate that has a hit-test mask.
|
| +class MaskedWindowDelegate : public TestWindowDelegate {
|
| + public:
|
| + explicit MaskedWindowDelegate(const gfx::Rect mask_rect);
|
| +
|
| + // Overridden from TestWindowDelegate:
|
| + virtual bool HasHitTestMask() const OVERRIDE;
|
| + virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE;
|
| +
|
| + private:
|
| + gfx::Rect mask_rect_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MaskedWindowDelegate);
|
| +};
|
| +
|
| } // namespace test
|
| } // namespace aura
|
|
|
|
|