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 21 matching lines...) Expand all Loading... |
32 virtual ~AppListViewDelegate(); | 32 virtual ~AppListViewDelegate(); |
33 | 33 |
34 // Called when an extension with the given id starts being installed. | 34 // Called when an extension with the given id starts being installed. |
35 void OnBeginExtensionInstall(const std::string& extension_id, | 35 void OnBeginExtensionInstall(const std::string& extension_id, |
36 const std::string& extension_name, | 36 const std::string& extension_name, |
37 const gfx::ImageSkia& installing_icon); | 37 const gfx::ImageSkia& installing_icon); |
38 | 38 |
39 // Called when the download of an extension makes progress. | 39 // Called when the download of an extension makes progress. |
40 void OnDownloadProgress(const std::string& extension_id, | 40 void OnDownloadProgress(const std::string& extension_id, |
41 int percent_downloaded); | 41 int percent_downloaded); |
| 42 void OnInstallFailure(const std::string& extension_id); |
42 | 43 |
43 private: | 44 private: |
44 // Overridden from app_list::AppListViewDelegate: | 45 // Overridden from app_list::AppListViewDelegate: |
45 virtual void SetModel(app_list::AppListModel* model) OVERRIDE; | 46 virtual void SetModel(app_list::AppListModel* model) OVERRIDE; |
46 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; | 47 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; |
47 virtual void ActivateAppListItem(app_list::AppListItemModel* item, | 48 virtual void ActivateAppListItem(app_list::AppListItemModel* item, |
48 int event_flags) OVERRIDE; | 49 int event_flags) OVERRIDE; |
49 virtual void StartSearch() OVERRIDE; | 50 virtual void StartSearch() OVERRIDE; |
50 virtual void StopSearch() OVERRIDE; | 51 virtual void StopSearch() OVERRIDE; |
51 virtual void OpenSearchResult(const app_list::SearchResult& result, | 52 virtual void OpenSearchResult(const app_list::SearchResult& result, |
(...skipping 13 matching lines...) Expand all Loading... |
65 Profile* profile_; | 66 Profile* profile_; |
66 | 67 |
67 #if defined(USE_ASH) | 68 #if defined(USE_ASH) |
68 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 69 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
69 #endif | 70 #endif |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 72 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
72 }; | 73 }; |
73 | 74 |
74 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 75 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |