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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "ash/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell/example_factory.h" | 10 #include "ash/shell/example_factory.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 base::string16 details = | 181 base::string16 details = |
182 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_)); | 182 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_)); |
183 set_details(details); | 183 set_details(details); |
184 Tags details_tags; | 184 Tags details_tags; |
185 details_tags.push_back(Tag(Tag::DIM, 0, details.length())); | 185 details_tags.push_back(Tag(Tag::DIM, 0, details.length())); |
186 set_details_tags(details_tags); | 186 set_details_tags(details_tags); |
187 } | 187 } |
188 | 188 |
189 WindowTypeShelfItem::Type type() const { return type_; } | 189 WindowTypeShelfItem::Type type() const { return type_; } |
190 | 190 |
| 191 // app_list::SearchResult: |
| 192 virtual scoped_ptr<SearchResult> Duplicate() override { |
| 193 return scoped_ptr<SearchResult>(); |
| 194 } |
| 195 |
191 private: | 196 private: |
192 WindowTypeShelfItem::Type type_; | 197 WindowTypeShelfItem::Type type_; |
193 | 198 |
194 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult); | 199 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult); |
195 }; | 200 }; |
196 | 201 |
197 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { | 202 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { |
198 public: | 203 public: |
199 ExampleAppListViewDelegate() | 204 ExampleAppListViewDelegate() |
200 : model_(new app_list::AppListModel) { | 205 : model_(new app_list::AppListModel) { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 }; | 374 }; |
370 | 375 |
371 } // namespace | 376 } // namespace |
372 | 377 |
373 app_list::AppListViewDelegate* CreateAppListViewDelegate() { | 378 app_list::AppListViewDelegate* CreateAppListViewDelegate() { |
374 return new ExampleAppListViewDelegate; | 379 return new ExampleAppListViewDelegate; |
375 } | 380 } |
376 | 381 |
377 } // namespace shell | 382 } // namespace shell |
378 } // namespace ash | 383 } // namespace ash |
OLD | NEW |