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

Unified Diff: ui/app_list/views/search_box_view.cc

Issue 1534303002: CustomButton cleanup: make protected members private, create accessors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy up Created 5 years 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: ui/app_list/views/search_box_view.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index 1676f0aa4c35766fd26bd80c3353e2e582caf32d..1825b4eb34d114e0b414d3538438714689e2b274 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -103,7 +103,7 @@ class SearchBoxImageButton : public views::ImageButton {
private:
// views::View overrides:
void OnPaintBackground(gfx::Canvas* canvas) override {
- if (state_ == STATE_HOVERED || state_ == STATE_PRESSED || selected_)
+ if (state() == STATE_HOVERED || state() == STATE_PRESSED || selected_)
canvas->FillRect(gfx::Rect(size()), kSelectedColor);
}

Powered by Google App Engine
This is Rietveld 408576698