From a7a40614447afeb87a2ad5242782e8bfbe7f0340 Mon Sep 17 00:00:00 2001 From: "sadrul@chromium.org" Date: Sat, 18 Jan 2014 08:52:09 +0000 Subject: events: Add a few more masked window targeter for Widgets with hit-test masks. Notable changes: * Add a BubbleWindowTargeter that can be used for bubbles (and use it for tray-bubble and app-list bubble). * Change the wm::MaskedWindowTargeter to fall-back to the default WindowTargeter if setting the mask fails. BUG=318879 R=ben@chromium.org Review URL: https://codereview.chromium.org/132233015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@245757 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/wm/public/masked_window_targeter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/wm/public') diff --git a/ui/wm/public/masked_window_targeter.h b/ui/wm/public/masked_window_targeter.h index edb050f..ad3140d3 100644 --- a/ui/wm/public/masked_window_targeter.h +++ b/ui/wm/public/masked_window_targeter.h @@ -20,8 +20,8 @@ class MaskedWindowTargeter : public aura::WindowTargeter { protected: // Sets the hit-test mask for |window| in |mask| (in |window|'s local - // coordinate system). - virtual void GetHitTestMask(aura::Window* window, gfx::Path* mask) const = 0; + // coordinate system). Returns whether a valid mask has been set in |mask|. + virtual bool GetHitTestMask(aura::Window* window, gfx::Path* mask) const = 0; // aura::WindowTargeter: virtual bool EventLocationInsideBounds( -- cgit v1.1