summaryrefslogtreecommitdiffstats
path: root/ui/wm/public
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-07 19:52:52 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-07 19:52:52 +0000
commit751b13df3b768295e4b215aca45b9f1ea8bd373c (patch)
tree50660265c2fe6a4e81d834117c2e1f5a03d50a0e /ui/wm/public
parent691b2001018e28625ceeb0d4710472ff66ef9857 (diff)
downloadchromium_src-751b13df3b768295e4b215aca45b9f1ea8bd373c.zip
chromium_src-751b13df3b768295e4b215aca45b9f1ea8bd373c.tar.gz
chromium_src-751b13df3b768295e4b215aca45b9f1ea8bd373c.tar.bz2
Moves management of transients out of Window
And into TransientWindowManager. Additionally moves handling of NULL layer stacking into TransientStackingWindowClient. The tests that were exercising these code paths have all been moved to ui/views/corewm. Also wires up TransientStackingWindowClient in a couple of places that didn't have it. The order of removing from transient parent as well as destroying of transient children is slightly differently than before. To get the order exactly as it was would require some new specific observer functions. I'm hoping we don't need those. Hopefully this doesn't cause issues, if it does I'll revisit. I ended up exposing convenience functions. That's because typing something like: views::corewm::TransientWindowManager::Get(window)->AddTransientChild() was too much for me. There is also some subtlety in so far as the Get() function that takes a const Window* may return NULL, where as non-const never returns NULL. Lastly I had to make Window friend TransientWindowManager. This is temporary until I create a specific TransientWindowManagerObserver that contains the two transient related observer functions in WindowObserver. BUG=none TEST=none R=ben@chromium.org Review URL: https://codereview.chromium.org/115453004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/wm/public')
-rw-r--r--ui/wm/public/easy_resize_window_targeter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/wm/public/easy_resize_window_targeter.h b/ui/wm/public/easy_resize_window_targeter.h
index c4c7137..f873509 100644
--- a/ui/wm/public/easy_resize_window_targeter.h
+++ b/ui/wm/public/easy_resize_window_targeter.h
@@ -36,6 +36,10 @@ class EasyResizeWindowTargeter : public aura::WindowTargeter {
const ui::LocatedEvent& event) const OVERRIDE;
private:
+ // Returns true if the hit testing (EventLocationInsideBounds()) should use
+ // the extended bounds.
+ bool ShouldUseExtendedBounds(const aura::Window* window) const;
+
aura::Window* container_;
gfx::Insets mouse_extend_;
gfx::Insets touch_extend_;