| Index: chrome/browser/ui/views/infobars/infobar_view.cc
|
| diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
|
| index 041283e5ad2b40ed9fc2b4e84592604ff26a3dac..c98ae6f8b82f1ac8c5a6d4c5baf130cf35a63a24 100644
|
| --- a/chrome/browser/ui/views/infobars/infobar_view.cc
|
| +++ b/chrome/browser/ui/views/infobars/infobar_view.cc
|
| @@ -85,10 +85,14 @@ InfoBarView::InfoBarView(scoped_ptr<infobars::InfoBarDelegate> delegate)
|
| set_owned_by_client(); // InfoBar deletes itself at the appropriate time.
|
| set_background(
|
| new InfoBarBackground(infobars::InfoBar::delegate()->GetInfoBarType()));
|
| + SetEventTargeter(make_scoped_ptr(new views::ViewTargeter(this)));
|
|
|
| AddChildView(child_container_);
|
|
|
| if (ui::MaterialDesignController::IsModeMaterial()) {
|
| + SetPaintToLayer(true);
|
| + layer()->SetFillsBoundsOpaquely(false);
|
| +
|
| child_container_->SetPaintToLayer(true);
|
| child_container_->layer()->SetMasksToBounds(true);
|
| // Since MD doesn't use a gradient, we can set a solid bg color.
|
| @@ -425,3 +429,9 @@ void InfoBarView::OnWillChangeFocus(View* focused_before, View* focused_now) {
|
| NotifyAccessibilityEvent(ui::AX_EVENT_ALERT, true);
|
| }
|
| }
|
| +
|
| +bool InfoBarView::DoesIntersectRect(const View* target,
|
| + const gfx::Rect& rect) const {
|
| + DCHECK_EQ(this, target);
|
| + return rect.bottom() >= arrow_height();
|
| +}
|
|
|