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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: fix cros build 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
Index: chrome/browser/ui/views/tabs/tab.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index 7b7bc644e81e50785ca15f69330a514f3126bb59..a14b226df8d3533cf7e83967a7e34edc3214a541 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -19,7 +19,7 @@
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/paint_throbber.h"
#include "ui/views/context_menu_controller.h"
-#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/glow_hover_controller.h"
#include "ui/views/masked_targeter_delegate.h"
#include "ui/views/view.h"
@@ -34,7 +34,6 @@ class LinearAnimation;
class ThrobAnimation;
}
namespace views {
-class ImageButton;
class Label;
}
@@ -44,7 +43,7 @@ class Label;
//
///////////////////////////////////////////////////////////////////////////////
class Tab : public gfx::AnimationDelegate,
- public views::ButtonListener,
+ public views::ImageButtonDelegate,
public views::ContextMenuController,
public views::MaskedTargeterDelegate,
public views::View {
@@ -184,7 +183,7 @@ class Tab : public gfx::AnimationDelegate,
void AnimationCanceled(const gfx::Animation* animation) override;
void AnimationEnded(const gfx::Animation* animation) override;
- // views::ButtonListener:
+ // views::ImageButtonDelegate:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
// views::ContextMenuController:

Powered by Google App Engine
This is Rietveld 408576698