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

Unified Diff: ui/app_list/search_result.cc

Issue 2920393002: Implementing answer card hover highlight. (Closed)
Patch Set: Fixing regression introduced by https://chromium-review.googlesource.com/c/520702/8/ui/app_list/vie… Created 3 years, 6 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: ui/app_list/search_result.cc
diff --git a/ui/app_list/search_result.cc b/ui/app_list/search_result.cc
index e9f17567b5620e36ceb24d3eb8d1b757dafb75e9..4f4013133dc507362440885a19ff2e4a0c968223 100644
--- a/ui/app_list/search_result.cc
+++ b/ui/app_list/search_result.cc
@@ -57,6 +57,12 @@ void SearchResult::SetBadgeIcon(const gfx::ImageSkia& badge_icon) {
observer.OnBadgeIconChanged();
}
+void SearchResult::set_is_mouse_in_view(bool mouse_is_inside) {
+ mouse_is_in_view_ = mouse_is_inside;
+ for (auto& observer : observers_)
+ observer.OnViewHoverStateChanged();
+}
+
void SearchResult::SetActions(const Actions& sets) {
actions_ = sets;
for (auto& observer : observers_)

Powered by Google App Engine
This is Rietveld 408576698