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

Unified Diff: chrome/browser/first_run/try_chrome_dialog_view.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/first_run/try_chrome_dialog_view.h
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.h b/chrome/browser/first_run/try_chrome_dialog_view.h
index 1daa77f5b09642561913ac3deb94e20f551cc192..eb85b3ef09d44d2446fd0868dd7a8f58b8559033 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.h
+++ b/chrome/browser/first_run/try_chrome_dialog_view.h
@@ -10,7 +10,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/views/controls/button/button.h"
+#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/link_listener.h"
namespace gfx {
@@ -55,7 +55,7 @@ class Widget;
// | [x] Make it the default browser [ OK ] |
// +-----------------------------------------------+
-class TryChromeDialogView : public views::ButtonListener,
+class TryChromeDialogView : public views::ImageButtonDelegate,
public views::LinkListener {
public:
// Receives a handle to the active modal dialog, or NULL when the active
@@ -100,7 +100,7 @@ class TryChromeDialogView : public views::ButtonListener,
// |h|. This is best effort, so we don't care much if the operation fails.
void SetToastRegion(HWND window, int w, int h);
- // views::ButtonListener:
+ // views::ImageButtonDelegate:
// We have two buttons and according to what the user clicked we set |result_|
// and we should always close and end the modal loop.
void ButtonPressed(views::Button* sender, const ui::Event& event) override;

Powered by Google App Engine
This is Rietveld 408576698