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

Unified Diff: ui/app_list/search_result.h

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.h
diff --git a/ui/app_list/search_result.h b/ui/app_list/search_result.h
index d721c7ef047fc32b32b10630792f38a99f02005f..53807f38d74375ba017868e6747e9a514683ec63 100644
--- a/ui/app_list/search_result.h
+++ b/ui/app_list/search_result.h
@@ -116,6 +116,9 @@ class APP_LIST_EXPORT SearchResult {
views::View* view() const { return view_; }
void set_view(views::View* view) { view_ = view; }
+ bool is_mouse_in_view() const { return mouse_is_in_view_; }
+ void set_is_mouse_in_view(bool mouse_is_inside);
xiyuan 2017/06/06 18:53:52 nit: set_is_mouse_in_view -> SetIsMouseInView sinc
vadimt 2017/06/06 19:18:54 Done.
+
const std::string& id() const { return id_; }
double relevance() const { return relevance_; }
@@ -201,6 +204,9 @@ class APP_LIST_EXPORT SearchResult {
// SearchProvider to set this property and own this view.
views::View* view_ = nullptr;
+ // If view_ isn't null, indicates whether the mouse cursor is inside view_.
+ bool mouse_is_in_view_ = false;
+
std::string id_;
double relevance_;
DisplayType display_type_;

Powered by Google App Engine
This is Rietveld 408576698