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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

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/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 539491f322de4e84dffb23e766f33862bc3c6ed8..80d0d479170ba7ec039e7d3fb5320c897f95c9c1 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -72,7 +72,6 @@
#include "ui/native_theme/native_theme.h"
#include "ui/vector_icons/vector_icons.h"
#include "ui/views/controls/button/blue_button.h"
-#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/button/label_button_border.h"
#include "ui/views/controls/button/md_text_button.h"
@@ -156,7 +155,7 @@ std::string GetAuthErrorAccountId(Profile* profile) {
return error->error_account_id();
}
-views::ImageButton* CreateBackButton(views::ButtonListener* listener) {
+views::ImageButton* CreateBackButton(views::ImageButtonDelegate* listener) {
views::ImageButton* back_button = new views::ImageButton(listener);
back_button->SetImageAlignment(views::ImageButton::ALIGN_LEFT,
views::ImageButton::ALIGN_MIDDLE);
@@ -448,7 +447,8 @@ class EditableProfilePhoto : public views::LabelButton {
// A title card with one back button right aligned and one label center aligned.
class TitleCard : public views::View {
public:
- TitleCard(const base::string16& message, views::ButtonListener* listener,
+ TitleCard(const base::string16& message,
+ views::ImageButtonDelegate* listener,
views::ImageButton** back_button) {
back_button_ = CreateBackButton(listener);
*back_button = back_button_;

Powered by Google App Engine
This is Rietveld 408576698