Chromium Code Reviews| 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_; |