| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const base::Callback<void(const base::FilePath&)>& callback) { | 87 const base::Callback<void(const base::FilePath&)>& callback) { |
| 88 callback.Run(base::FilePath()); | 88 callback.Run(base::FilePath()); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, | 91 void AppListTestViewDelegate::OpenSearchResult(SearchResult* result, |
| 92 int event_flags) { | 92 int event_flags) { |
| 93 ++open_search_result_count_; | 93 ++open_search_result_count_; |
| 94 } | 94 } |
| 95 | 95 |
| 96 base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() { | 96 base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() { |
| 97 return base::TimeDelta(); | 97 return auto_launch_timeout_; |
| 98 } |
| 99 |
| 100 void AppListTestViewDelegate::AutoLaunchCanceled() { |
| 101 auto_launch_timeout_ = base::TimeDelta(); |
| 98 } | 102 } |
| 99 | 103 |
| 100 void AppListTestViewDelegate::Dismiss() { | 104 void AppListTestViewDelegate::Dismiss() { |
| 101 ++dismiss_count_; | 105 ++dismiss_count_; |
| 102 } | 106 } |
| 103 | 107 |
| 104 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { | 108 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { |
| 105 return gfx::ImageSkia(); | 109 return gfx::ImageSkia(); |
| 106 } | 110 } |
| 107 | 111 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 127 observers_.AddObserver(observer); | 131 observers_.AddObserver(observer); |
| 128 } | 132 } |
| 129 | 133 |
| 130 void AppListTestViewDelegate::RemoveObserver( | 134 void AppListTestViewDelegate::RemoveObserver( |
| 131 AppListViewDelegateObserver* observer) { | 135 AppListViewDelegateObserver* observer) { |
| 132 observers_.RemoveObserver(observer); | 136 observers_.RemoveObserver(observer); |
| 133 } | 137 } |
| 134 | 138 |
| 135 } // namespace test | 139 } // namespace test |
| 136 } // namespace app_list | 140 } // namespace app_list |
| OLD | NEW |