summaryrefslogtreecommitdiffstats
path: root/ui/wm/public
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 08:52:09 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-18 08:52:09 +0000
commita7a40614447afeb87a2ad5242782e8bfbe7f0340 (patch)
treeb4fc9031a56f549d3dfe8b40e4accb0ce792e867 /ui/wm/public
parenta3bce33e8c38ef03d9582cf69b02234955b4398d (diff)
downloadchromium_src-a7a40614447afeb87a2ad5242782e8bfbe7f0340.zip
chromium_src-a7a40614447afeb87a2ad5242782e8bfbe7f0340.tar.gz
chromium_src-a7a40614447afeb87a2ad5242782e8bfbe7f0340.tar.bz2
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
Diffstat (limited to 'ui/wm/public')
-rw-r--r--ui/wm/public/masked_window_targeter.h4
1 files changed, 2 insertions, 2 deletions
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(