| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_)); | 185 base::UTF8ToUTF16(WindowTypeShelfItem::GetDetails(type_)); |
| 186 set_details(details); | 186 set_details(details); |
| 187 Tags details_tags; | 187 Tags details_tags; |
| 188 details_tags.push_back(Tag(Tag::DIM, 0, details.length())); | 188 details_tags.push_back(Tag(Tag::DIM, 0, details.length())); |
| 189 set_details_tags(details_tags); | 189 set_details_tags(details_tags); |
| 190 } | 190 } |
| 191 | 191 |
| 192 WindowTypeShelfItem::Type type() const { return type_; } | 192 WindowTypeShelfItem::Type type() const { return type_; } |
| 193 | 193 |
| 194 // app_list::SearchResult: | 194 // app_list::SearchResult: |
| 195 scoped_ptr<SearchResult> Duplicate() override { | 195 scoped_ptr<SearchResult> Duplicate() const override { |
| 196 return scoped_ptr<SearchResult>(); | 196 return scoped_ptr<SearchResult>(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 private: | 199 private: |
| 200 WindowTypeShelfItem::Type type_; | 200 WindowTypeShelfItem::Type type_; |
| 201 | 201 |
| 202 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult); | 202 DISALLOW_COPY_AND_ASSIGN(ExampleSearchResult); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { | 205 class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 }; | 363 }; |
| 364 | 364 |
| 365 } // namespace | 365 } // namespace |
| 366 | 366 |
| 367 app_list::AppListViewDelegate* CreateAppListViewDelegate() { | 367 app_list::AppListViewDelegate* CreateAppListViewDelegate() { |
| 368 return new ExampleAppListViewDelegate; | 368 return new ExampleAppListViewDelegate; |
| 369 } | 369 } |
| 370 | 370 |
| 371 } // namespace shell | 371 } // namespace shell |
| 372 } // namespace ash | 372 } // namespace ash |
| OLD | NEW |