Index: ui/views/widget/native_widget_aura.cc |
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc |
index fa5ee73435153f5ad777d550dad7bef87e13aa8a..12eeda3b461cf3b5ddaabda09b43f53eb593015f 100644 |
--- a/ui/views/widget/native_widget_aura.cc |
+++ b/ui/views/widget/native_widget_aura.cc |
@@ -761,6 +761,11 @@ int NativeWidgetAura::GetNonClientComponent(const gfx::Point& point) const { |
bool NativeWidgetAura::ShouldDescendIntoChildForEventHandling( |
aura::Window* child, |
const gfx::Point& location) { |
+ views::WidgetDelegate* widget_delegate = GetWidget()->widget_delegate(); |
+ if (widget_delegate && |
+ !widget_delegate->ShouldDescendIntoChildForEventHandling(child, location)) |
+ return false; |
+ |
// Don't descend into |child| if there is a view with a Layer that contains |
// the point and is stacked above |child|s layer. |
typedef std::vector<ui::Layer*> Layers; |