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

Unified Diff: ui/aura/window.h

Issue 9580001: Aura: Update window frames, allow resize from outside window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix caption for maximized windows, new resize cursor tweak Created 8 years, 10 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
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 64114406f661d2b469c5fb460483c911e03b6073..20a9f7e59502f6b7a705f781dc46a21291e3b0aa 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -225,6 +225,12 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void set_ignore_events(bool ignore_events) { ignore_events_ = ignore_events; }
+ // When non-zero insets the window's bounds by |inset| when performing hit
+ // tests for event handling. Pass a negative value for |inset| to respond to
+ // events that occur slightly outside a window's bounds.
+ void set_hit_test_bounds_inset(int inset) { hit_test_bounds_inset_ = inset; }
+ int hit_test_bounds_inset() const { return hit_test_bounds_inset_; }
+
// Returns true if the |point_in_root| in root window's coordinate falls
// within this window's bounds. Returns false if the window is detached
// from root window.
@@ -411,6 +417,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
// Makes the window pass all events through to any windows behind it.
bool ignore_events_;
+ // Inset the window bounds by this amount when doing hit testing for events.
+ int hit_test_bounds_inset_;
+
ObserverList<WindowObserver> observers_;
std::map<const void*, intptr_t> prop_map_;

Powered by Google App Engine
This is Rietveld 408576698