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

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

Issue 1800373002: [MD] replace infobar bottom solid line separator with a shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_container_view.h
diff --git a/chrome/browser/ui/views/infobars/infobar_container_view.h b/chrome/browser/ui/views/infobars/infobar_container_view.h
index c2e99601bf2b11ae7fb19ace87a6c8fc89a9aa5f..31e8f4bd9c84fb6719580cd025f0028fb45c9fb7 100644
--- a/chrome/browser/ui/views/infobars/infobar_container_view.h
+++ b/chrome/browser/ui/views/infobars/infobar_container_view.h
@@ -14,15 +14,13 @@
// The views-specific implementation of InfoBarContainer.
class InfoBarContainerView : public views::AccessiblePaneView,
- public infobars::InfoBarContainer,
- public views::ViewTargeterDelegate {
+ public infobars::InfoBarContainer {
public:
static const char kViewClassName[];
explicit InfoBarContainerView(Delegate* delegate);
~InfoBarContainerView() override;
- private:
// AccessiblePaneView:
gfx::Size GetPreferredSize() const override;
const char* GetClassName() const override;
@@ -33,10 +31,12 @@ class InfoBarContainerView : public views::AccessiblePaneView,
void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
size_t position) override;
void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) override;
+ void PlatformSpecificInfoBarStateChanged(bool is_animating) override;
- // ViewTargeterDelegate:
- bool DoesIntersectRect(const View* target,
- const gfx::Rect& rect) const override;
+ private:
+ // This view draws the shadow over the web contents below the
+ // lowest infobar.
+ views::View* content_shadow_;
DISALLOW_COPY_AND_ASSIGN(InfoBarContainerView);
};

Powered by Google App Engine
This is Rietveld 408576698