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

Unified Diff: ui/views/widget/widget_delegate.h

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ShouldDescendIntoChildForEventHandling Created 8 years, 4 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/views/widget/widget_delegate.h
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h
index 33f3ccd5de25acf6582d222581cbda7f50b9e782..bb348426fc716d4c0b89ca4b1779a80c0923f6f8 100644
--- a/ui/views/widget/widget_delegate.h
+++ b/ui/views/widget/widget_delegate.h
@@ -147,6 +147,14 @@ class VIEWS_EXPORT WidgetDelegate {
// Provides the hit-test mask if HasHitTestMask above returns true.
virtual void GetHitTestMask(gfx::Path* mask) const;
+ // Returns true if event handling should descend into |child|.
+ // |event_location| is in terms of the Window. |event_type| specifies the
+ // type of the event.
+ virtual bool ShouldDescendIntoChildForEventHandling(
+ aura::Window* child,
Ben Goodger (Google) 2012/08/21 02:17:40 This won't compile on non-aura builds. You have to
jianli 2012/08/21 17:22:00 Done.
+ const gfx::Point& event_location,
+ ui::EventType event_type);
+
protected:
virtual ~WidgetDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698