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