| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/app_list_test_view_delegate.h" | 5 #include "ui/app_list/test/app_list_test_view_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 } | 29 } |
| 30 | 30 |
| 31 AppListModel* AppListTestViewDelegate::GetModel() { | 31 AppListModel* AppListTestViewDelegate::GetModel() { |
| 32 return model_.get(); | 32 return model_.get(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { | 35 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { |
| 36 return test_signin_delegate_; | 36 return test_signin_delegate_; |
| 37 } | 37 } |
| 38 | 38 |
| 39 SpeechUIModel* AppListTestViewDelegate::GetSpeechUI() { |
| 40 return &speech_ui_; |
| 41 } |
| 42 |
| 39 void AppListTestViewDelegate::GetShortcutPathForApp( | 43 void AppListTestViewDelegate::GetShortcutPathForApp( |
| 40 const std::string& app_id, | 44 const std::string& app_id, |
| 41 const base::Callback<void(const base::FilePath&)>& callback) { | 45 const base::Callback<void(const base::FilePath&)>& callback) { |
| 42 callback.Run(base::FilePath()); | 46 callback.Run(base::FilePath()); |
| 43 } | 47 } |
| 44 | 48 |
| 45 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, | 49 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, |
| 46 int event_flags) { | 50 int event_flags) { |
| 47 ++open_search_result_count_; | 51 ++open_search_result_count_; |
| 48 } | 52 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 63 return users_; | 67 return users_; |
| 64 } | 68 } |
| 65 | 69 |
| 66 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { | 70 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { |
| 67 model_.reset(new AppListTestModel); | 71 model_.reset(new AppListTestModel); |
| 68 model_->PopulateApps(item_count); | 72 model_->PopulateApps(item_count); |
| 69 } | 73 } |
| 70 | 74 |
| 71 } // namespace test | 75 } // namespace test |
| 72 } // namespace app_list | 76 } // namespace app_list |
| OLD | NEW |