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

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

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: check details Created 3 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
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94466211c9b55edc598f7276541a51890ca1684c..058237b1045142b47ed3cc09016c9ec68b6c62bf 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.h
+++ b/chrome/browser/ui/views/infobars/infobar_view.h
@@ -11,23 +11,22 @@
#include "components/infobars/core/infobar_container.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/views/controls/button/button.h"
-#include "ui/views/controls/button/vector_icon_button_delegate.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 views {
+class ImageButton;
class ImageView;
class Label;
class Link;
class LinkListener;
class MenuRunner;
-class VectorIconButton;
} // namespace views
class InfoBarView : public infobars::InfoBar,
public views::View,
- public views::VectorIconButtonDelegate,
+ public views::ButtonListener,
public views::ExternalFocusTracker,
public views::ViewTargeterDelegate {
public:
@@ -59,11 +58,10 @@ class InfoBarView : public infobars::InfoBar,
void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) override;
- // views::VectorIconButtonDelegate:
+ // views::ButtonListener:
// NOTE: This must not be called if we're unowned. (Subclasses should ignore
// calls to ButtonPressed() in this case.)
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
- SkColor GetVectorIconBaseColor() const override;
// Returns the minimum width the content (that is, everything between the icon
// and the close button) can be shrunk to. This is used to prevent the close
@@ -114,7 +112,7 @@ class InfoBarView : public infobars::InfoBar,
views::ImageView* icon_;
// The close button at the right edge of the InfoBar.
- views::VectorIconButton* close_button_;
+ views::ImageButton* close_button_;
// Used to run the menu.
std::unique_ptr<views::MenuRunner> menu_runner_;
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698