Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: ui/aura/test/test_window_delegate.h

Issue 10566009: app_list: Fix shadow bleeds over launcher button and steals mouse events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix aura_demo compilation Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698