| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // Updates the app list's current profile and ProfileMenuItems. | 56 // Updates the app list's current profile and ProfileMenuItems. |
| 57 void OnProfileChanged(); | 57 void OnProfileChanged(); |
| 58 | 58 |
| 59 // Overridden from app_list::AppListViewDelegate: | 59 // Overridden from app_list::AppListViewDelegate: |
| 60 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE; | 60 virtual void SetProfileByPath(const base::FilePath& profile_path) OVERRIDE; |
| 61 virtual void InitModel(app_list::AppListModel* model) OVERRIDE; | 61 virtual void InitModel(app_list::AppListModel* model) OVERRIDE; |
| 62 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; | 62 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; |
| 63 virtual void GetShortcutPathForApp( | 63 virtual void GetShortcutPathForApp( |
| 64 const std::string& app_id, | 64 const std::string& app_id, |
| 65 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | 65 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; |
| 66 virtual void ActivateAppListItem(app_list::AppListItemModel* item, | |
| 67 int event_flags) OVERRIDE; | |
| 68 virtual void StartSearch() OVERRIDE; | 66 virtual void StartSearch() OVERRIDE; |
| 69 virtual void StopSearch() OVERRIDE; | 67 virtual void StopSearch() OVERRIDE; |
| 70 virtual void OpenSearchResult(app_list::SearchResult* result, | 68 virtual void OpenSearchResult(app_list::SearchResult* result, |
| 71 int event_flags) OVERRIDE; | 69 int event_flags) OVERRIDE; |
| 72 virtual void InvokeSearchResultAction(app_list::SearchResult* result, | 70 virtual void InvokeSearchResultAction(app_list::SearchResult* result, |
| 73 int action_index, | 71 int action_index, |
| 74 int event_flags) OVERRIDE; | 72 int event_flags) OVERRIDE; |
| 75 virtual void Dismiss() OVERRIDE; | 73 virtual void Dismiss() OVERRIDE; |
| 76 virtual void ViewClosing() OVERRIDE; | 74 virtual void ViewClosing() OVERRIDE; |
| 77 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 75 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 103 content::NotificationRegistrar registrar_; | 101 content::NotificationRegistrar registrar_; |
| 104 ChromeSigninDelegate signin_delegate_; | 102 ChromeSigninDelegate signin_delegate_; |
| 105 #if defined(USE_ASH) | 103 #if defined(USE_ASH) |
| 106 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 104 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
| 107 #endif | 105 #endif |
| 108 | 106 |
| 109 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
| 110 }; | 108 }; |
| 111 | 109 |
| 112 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 110 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |