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

Unified Diff: ui/app_list/search_result.h

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 | « chrome/browser/ui/app_list/search/answer_card_search_provider.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ec8d85811db171ab4fc029a622cb7408040edbd7 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 SetIsMouseInView(bool mouse_is_inside);
+
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_;
« no previous file with comments | « chrome/browser/ui/app_list/search/answer_card_search_provider.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698