OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/app_list/search_result.h" | 5 #include "ui/app_list/search_result.h" |
6 | 6 |
7 #include "ui/app_list/app_list_constants.h" | 7 #include "ui/app_list/app_list_constants.h" |
8 #include "ui/app_list/search_result_observer.h" | 8 #include "ui/app_list/search_result_observer.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
(...skipping 10 matching lines...) Expand all Loading... |
21 SearchResult::Action::Action(const base::string16& label_text, | 21 SearchResult::Action::Action(const base::string16& label_text, |
22 const base::string16& tooltip_text) | 22 const base::string16& tooltip_text) |
23 : tooltip_text(tooltip_text), | 23 : tooltip_text(tooltip_text), |
24 label_text(label_text) {} | 24 label_text(label_text) {} |
25 | 25 |
26 SearchResult::Action::~Action() {} | 26 SearchResult::Action::~Action() {} |
27 | 27 |
28 SearchResult::SearchResult() | 28 SearchResult::SearchResult() |
29 : relevance_(0), | 29 : relevance_(0), |
30 display_type_(DISPLAY_LIST), | 30 display_type_(DISPLAY_LIST), |
| 31 distance_from_origin_(-1), |
31 voice_result_(false), | 32 voice_result_(false), |
32 is_installing_(false), | 33 is_installing_(false), |
33 percent_downloaded_(0) { | 34 percent_downloaded_(0) { |
34 } | 35 } |
35 | 36 |
36 SearchResult::~SearchResult() { | 37 SearchResult::~SearchResult() { |
37 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnResultDestroying()); | 38 FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnResultDestroying()); |
38 } | 39 } |
39 | 40 |
40 void SearchResult::SetIcon(const gfx::ImageSkia& icon) { | 41 void SearchResult::SetIcon(const gfx::ImageSkia& icon) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 104 } |
104 | 105 |
105 void SearchResult::InvokeAction(int action_index, int event_flags) { | 106 void SearchResult::InvokeAction(int action_index, int event_flags) { |
106 } | 107 } |
107 | 108 |
108 ui::MenuModel* SearchResult::GetContextMenuModel() { | 109 ui::MenuModel* SearchResult::GetContextMenuModel() { |
109 return NULL; | 110 return NULL; |
110 } | 111 } |
111 | 112 |
112 } // namespace app_list | 113 } // namespace app_list |
OLD | NEW |