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

Unified Diff: ui/app_list/search_result.cc

Issue 2920393002: Implementing answer card hover highlight. (Closed)
Patch Set: CR comments 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
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/search_result_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bc0834321df060fda77e9af2187974a18868071c 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::SetIsMouseInView(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_)
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/search_result_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698