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

Unified Diff: ui/aura/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/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
};
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698