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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 void SearchResult::AddObserver(SearchResultObserver* observer) { | 92 void SearchResult::AddObserver(SearchResultObserver* observer) { |
93 observers_.AddObserver(observer); | 93 observers_.AddObserver(observer); |
94 } | 94 } |
95 | 95 |
96 void SearchResult::RemoveObserver(SearchResultObserver* observer) { | 96 void SearchResult::RemoveObserver(SearchResultObserver* observer) { |
97 observers_.RemoveObserver(observer); | 97 observers_.RemoveObserver(observer); |
98 } | 98 } |
99 | 99 |
| 100 scoped_ptr<SearchResult> SearchResult::Duplicate() { |
| 101 NOTREACHED(); |
| 102 return scoped_ptr<SearchResult>(); |
| 103 } |
| 104 |
| 105 SearchResultType SearchResult::GetType() { |
| 106 // This is defined for testing, the actual search result must set the type. |
| 107 NOTREACHED(); |
| 108 return SEARCH_RESULT_TYPE_BOUNDARY; |
| 109 } |
| 110 |
100 void SearchResult::Open(int event_flags) { | 111 void SearchResult::Open(int event_flags) { |
101 } | 112 } |
102 | 113 |
103 void SearchResult::InvokeAction(int action_index, int event_flags) { | 114 void SearchResult::InvokeAction(int action_index, int event_flags) { |
104 } | 115 } |
105 | 116 |
106 ui::MenuModel* SearchResult::GetContextMenuModel() { | 117 ui::MenuModel* SearchResult::GetContextMenuModel() { |
107 return NULL; | 118 return NULL; |
108 } | 119 } |
109 | 120 |
110 } // namespace app_list | 121 } // namespace app_list |
OLD | NEW |