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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.h

Issue 1767363002: [md] Give each infobar its own layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: true intersection Created 4 years, 9 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: chrome/browser/ui/views/infobars/infobar_view.h
diff --git a/chrome/browser/ui/views/infobars/infobar_view.h b/chrome/browser/ui/views/infobars/infobar_view.h
index b1955f73df1b63ef4b500bb1c3eb713142f1965b..0aba01c1554f6e60b390d700fe157fc09276a1b1 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.h
+++ b/chrome/browser/ui/views/infobars/infobar_view.h
@@ -13,6 +13,7 @@
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/menu/menu_types.h"
#include "ui/views/focus/external_focus_tracker.h"
+#include "ui/views/view_targeter_delegate.h"
namespace ui {
class MenuModel;
@@ -32,7 +33,8 @@ class MenuRunner;
class InfoBarView : public infobars::InfoBar,
public views::View,
public views::ButtonListener,
- public views::ExternalFocusTracker {
+ public views::ExternalFocusTracker,
+ public views::ViewTargeterDelegate {
public:
explicit InfoBarView(scoped_ptr<infobars::InfoBarDelegate> delegate);
@@ -124,6 +126,10 @@ class InfoBarView : public infobars::InfoBar,
// views::ExternalFocusTracker:
void OnWillChangeFocus(View* focused_before, View* focused_now) override;
+ // views::ViewTargeterDelegate:
+ bool DoesIntersectRect(const View* target,
+ const gfx::Rect& rect) const override;
+
// This container holds the children and clips their painting during
// animation.
views::View* child_container_;

Powered by Google App Engine
This is Rietveld 408576698