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 "base/callback.h" |
| 8 #include "base/files/file_path.h" |
7 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
8 | 10 |
9 namespace app_list { | 11 namespace app_list { |
10 namespace test { | 12 namespace test { |
11 | 13 |
12 AppListTestViewDelegate::AppListTestViewDelegate() | 14 AppListTestViewDelegate::AppListTestViewDelegate() |
13 : activate_count_(0), | 15 : activate_count_(0), |
14 dismiss_count_(0), | 16 dismiss_count_(0), |
15 last_activated_(NULL) { | 17 last_activated_(NULL) { |
16 } | 18 } |
17 | 19 |
18 AppListTestViewDelegate::~AppListTestViewDelegate() {} | 20 AppListTestViewDelegate::~AppListTestViewDelegate() {} |
19 | 21 |
20 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { | 22 SigninDelegate* AppListTestViewDelegate::GetSigninDelegate() { |
21 return NULL; | 23 return NULL; |
22 } | 24 } |
23 | 25 |
| 26 void AppListTestViewDelegate::GetShortcutPathForApp( |
| 27 const std::string& app_id, |
| 28 const base::Callback<void(const base::FilePath&)>& callback) { |
| 29 callback.Run(base::FilePath()); |
| 30 } |
| 31 |
24 void AppListTestViewDelegate::ActivateAppListItem(AppListItemModel* item, | 32 void AppListTestViewDelegate::ActivateAppListItem(AppListItemModel* item, |
25 int event_flags) { | 33 int event_flags) { |
26 last_activated_ = item; | 34 last_activated_ = item; |
27 ++activate_count_; | 35 ++activate_count_; |
28 } | 36 } |
29 | 37 |
30 void AppListTestViewDelegate::Dismiss() { | 38 void AppListTestViewDelegate::Dismiss() { |
31 ++dismiss_count_; | 39 ++dismiss_count_; |
32 } | 40 } |
33 | 41 |
34 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { | 42 gfx::ImageSkia AppListTestViewDelegate::GetWindowIcon() { |
35 return gfx::ImageSkia(); | 43 return gfx::ImageSkia(); |
36 } | 44 } |
37 | 45 |
38 base::string16 AppListTestViewDelegate::GetCurrentUserName() { | 46 base::string16 AppListTestViewDelegate::GetCurrentUserName() { |
39 return base::string16(); | 47 return base::string16(); |
40 } | 48 } |
41 | 49 |
42 base::string16 AppListTestViewDelegate::GetCurrentUserEmail() { | 50 base::string16 AppListTestViewDelegate::GetCurrentUserEmail() { |
43 return base::string16(); | 51 return base::string16(); |
44 } | 52 } |
45 | 53 |
46 } // namespace test | 54 } // namespace test |
47 } // namespace app_list | 55 } // namespace app_list |
OLD | NEW |