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

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 2305933002: Update dialog close buttons to use vector icons and ripples. (Closed)
Patch Set: Created 4 years, 3 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/find_bar_view.cc
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc
index 8c9fad33f1ccbb61f0063d7611963b59fb9b474b..2dc225721f68d4f0908a60b8450d5e93d284dc44 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -19,7 +19,6 @@
#include "chrome/browser/ui/find_bar/find_notification_details.h"
#include "chrome/browser/ui/find_bar/find_tab_helper.h"
#include "chrome/browser/ui/view_ids.h"
-#include "chrome/browser/ui/views/bar_control_button.h"
#include "chrome/browser/ui/views/find_bar_host.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/grit/generated_resources.h"
@@ -44,6 +43,7 @@
#include "ui/views/border.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/controls/button/image_button.h"
+#include "ui/views/controls/button/vector_icon_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/separator.h"
#include "ui/views/layout/box_layout.h"
@@ -142,15 +142,15 @@ FindBarView::FindBarView(FindBarHost* host)
AddChildView(find_text_);
if (ui::MaterialDesignController::IsModeMaterial()) {
- BarControlButton* find_previous = new BarControlButton(this);
+ views::VectorIconButton* find_previous = new views::VectorIconButton(this);
find_previous->SetIcon(
gfx::VectorIconId::FIND_PREV,
base::Bind(&FindBarView::GetTextColorForIcon, base::Unretained(this)));
- BarControlButton* find_next = new BarControlButton(this);
+ views::VectorIconButton* find_next = new views::VectorIconButton(this);
find_next->SetIcon(
gfx::VectorIconId::FIND_NEXT,
base::Bind(&FindBarView::GetTextColorForIcon, base::Unretained(this)));
- BarControlButton* close = new BarControlButton(this);
+ views::VectorIconButton* close = new views::VectorIconButton(this);
close->SetIcon(
gfx::VectorIconId::BAR_CLOSE,
base::Bind(&FindBarView::GetTextColorForIcon, base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698