| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 14 #include "ui/app_list/app_list_view_delegate.h" | 15 #include "ui/app_list/app_list_view_delegate.h" |
| 15 | 16 |
| 16 class AppListControllerDelegate; | 17 class AppListControllerDelegate; |
| 17 class AppsModelBuilder; | 18 class AppsModelBuilder; |
| 18 class Profile; | 19 class Profile; |
| 20 struct AvatarMenuItemModel; |
| 19 | 21 |
| 20 namespace app_list { | 22 namespace app_list { |
| 21 class SearchController; | 23 class SearchController; |
| 22 } | 24 } |
| 23 | 25 |
| 24 namespace base { | 26 namespace base { |
| 25 class FilePath; | 27 class FilePath; |
| 26 } | 28 } |
| 27 | 29 |
| 28 namespace gfx { | 30 namespace gfx { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 57 int event_flags) OVERRIDE; | 59 int event_flags) OVERRIDE; |
| 58 virtual void Dismiss() OVERRIDE; | 60 virtual void Dismiss() OVERRIDE; |
| 59 virtual void ViewClosing() OVERRIDE; | 61 virtual void ViewClosing() OVERRIDE; |
| 60 virtual void ViewActivationChanged(bool active) OVERRIDE; | 62 virtual void ViewActivationChanged(bool active) OVERRIDE; |
| 61 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 63 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 62 virtual string16 GetCurrentUserName() OVERRIDE; | 64 virtual string16 GetCurrentUserName() OVERRIDE; |
| 63 virtual string16 GetCurrentUserEmail() OVERRIDE; | 65 virtual string16 GetCurrentUserEmail() OVERRIDE; |
| 64 virtual void OpenSettings() OVERRIDE; | 66 virtual void OpenSettings() OVERRIDE; |
| 65 virtual void OpenHelp() OVERRIDE; | 67 virtual void OpenHelp() OVERRIDE; |
| 66 virtual void OpenFeedback() OVERRIDE; | 68 virtual void OpenFeedback() OVERRIDE; |
| 69 virtual std::vector<AvatarMenuItemModel> GetAvatarMenuItems() OVERRIDE; |
| 70 virtual void ShowForProfileAtIndex(size_t index) OVERRIDE; |
| 67 | 71 |
| 72 AvatarMenuModel avatar_menu_model_; |
| 68 scoped_ptr<app_list::SigninDelegate> signin_delegate_; | 73 scoped_ptr<app_list::SigninDelegate> signin_delegate_; |
| 69 scoped_ptr<AppsModelBuilder> apps_builder_; | 74 scoped_ptr<AppsModelBuilder> apps_builder_; |
| 70 scoped_ptr<app_list::SearchController> search_controller_; | 75 scoped_ptr<app_list::SearchController> search_controller_; |
| 71 scoped_ptr<AppListControllerDelegate> controller_; | 76 scoped_ptr<AppListControllerDelegate> controller_; |
| 72 Profile* profile_; | 77 Profile* profile_; |
| 73 | 78 |
| 74 #if defined(USE_ASH) | 79 #if defined(USE_ASH) |
| 75 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 80 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
| 76 #endif | 81 #endif |
| 77 | 82 |
| 78 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 83 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
| 79 }; | 84 }; |
| 80 | 85 |
| 81 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 86 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |