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

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

Issue 2744463002: Add VectorIconButton functionality to ImageButton. (Closed)
Patch Set: check details 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 | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »
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..1706e51577c6ad5387f60853d0fdc28b277241ab 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:
@@ -68,15 +68,16 @@ class FindBarView : public views::View,
void ClearMatchCount();
// views::View:
+ const char* GetClassName() const override;
void Layout() override;
gfx::Size GetPreferredSize() const override;
+ void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
// 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,
@@ -94,10 +95,6 @@ class FindBarView : public views::View,
// Updates the appearance for the match count label.
void UpdateMatchCountAppearance(bool no_match);
- // DropdownBarView:
- const char* GetClassName() const override;
- void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
-
// Returns the color for the icons on the buttons per the current NativeTheme.
SkColor GetTextColorForIcon();
@@ -115,9 +112,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 | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698