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

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

Issue 2753833003: Create utility function for configuring an ImageButton to use a vector (Closed)
Patch Set: . 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 | « no previous file | chrome/browser/ui/views/find_bar_view.cc » ('j') | ui/views/controls/button/image_button.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/find_bar_view.h
diff --git a/chrome/browser/ui/views/find_bar_view.h b/chrome/browser/ui/views/find_bar_view.h
index 212f47416903c2fa9900e457e0c673fd03edf1b9..4ee0fdfd72d84883db5cba4c181507df57e007e9 100644
--- a/chrome/browser/ui/views/find_bar_view.h
+++ b/chrome/browser/ui/views/find_bar_view.h
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
#include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
-#include "ui/views/controls/button/vector_icon_button_delegate.h"
+#include "ui/views/controls/button/button.h"
#include "ui/views/controls/textfield/textfield_controller.h"
#include "ui/views/view.h"
#include "ui/views/view_targeter_delegate.h"
@@ -24,11 +24,11 @@ class Range;
}
namespace views {
+class ImageButton;
class Label;
class Painter;
class Separator;
class Textfield;
-class VectorIconButton;
}
////////////////////////////////////////////////////////////////////////////////
@@ -40,7 +40,7 @@ class VectorIconButton;
////////////////////////////////////////////////////////////////////////////////
class FindBarView : public views::View,
public DropdownBarHostDelegate,
- public views::VectorIconButtonDelegate,
+ public views::ButtonListener,
public views::TextfieldController,
public views::ViewTargeterDelegate {
public:
@@ -74,9 +74,8 @@ class FindBarView : public views::View,
// DropdownBarHostDelegate:
void SetFocusAndSelection(bool select_all) override;
- // views::VectorIconButtonDelegate:
+ // views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
- SkColor GetVectorIconBaseColor() const override;
// views::TextfieldController:
bool HandleKeyEvent(views::Textfield* sender,
@@ -115,9 +114,9 @@ class FindBarView : public views::View,
views::Label* match_count_text_;
views::View* focus_forwarder_view_;
views::Separator* separator_;
- views::VectorIconButton* find_previous_button_;
- views::VectorIconButton* find_next_button_;
- views::VectorIconButton* close_button_;
+ views::ImageButton* find_previous_button_;
+ views::ImageButton* find_next_button_;
+ views::ImageButton* close_button_;
// The preferred height of the find bar.
int preferred_height_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/find_bar_view.cc » ('j') | ui/views/controls/button/image_button.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698