| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 AppListModel* AppListTestViewDelegate::GetModel() { | 72 AppListModel* AppListTestViewDelegate::GetModel() { |
| 73 return model_.get(); | 73 return model_.get(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { | 76 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { |
| 77 return test_signin_delegate_.get(); | 77 return test_signin_delegate_.get(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 SpeechUIModel* AppListTestViewDelegate::GetSpeechUI() { |
| 81 return &speech_ui_; |
| 82 } |
| 83 |
| 80 void AppListTestViewDelegate::GetShortcutPathForApp( | 84 void AppListTestViewDelegate::GetShortcutPathForApp( |
| 81 const std::string& app_id, | 85 const std::string& app_id, |
| 82 const base::Callback<void(const base::FilePath&)>& callback) { | 86 const base::Callback<void(const base::FilePath&)>& callback) { |
| 83 callback.Run(base::FilePath()); | 87 callback.Run(base::FilePath()); |
| 84 } | 88 } |
| 85 | 89 |
| 86 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, | 90 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, |
| 87 int event_flags) { | 91 int event_flags) { |
| 88 ++open_search_result_count_; | 92 ++open_search_result_count_; |
| 89 } | 93 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 114 observers_.AddObserver(observer); | 118 observers_.AddObserver(observer); |
| 115 } | 119 } |
| 116 | 120 |
| 117 void AppListTestViewDelegate::RemoveObserver( | 121 void AppListTestViewDelegate::RemoveObserver( |
| 118 app_list::AppListViewDelegateObserver* observer) { | 122 app_list::AppListViewDelegateObserver* observer) { |
| 119 observers_.RemoveObserver(observer); | 123 observers_.RemoveObserver(observer); |
| 120 } | 124 } |
| 121 | 125 |
| 122 } // namespace test | 126 } // namespace test |
| 123 } // namespace app_list | 127 } // namespace app_list |
| OLD | NEW |