Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: chrome/browser/ui/app_list/app_list_view_delegate.h

Issue 12298015: Change NotifyAppList*() functions into observers on a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 #if defined(USE_ASH) 24 #if defined(USE_ASH)
25 class AppSyncUIStateWatcher; 25 class AppSyncUIStateWatcher;
26 #endif 26 #endif
27 27
28 class AppListViewDelegate : public app_list::AppListViewDelegate { 28 class AppListViewDelegate : public app_list::AppListViewDelegate {
29 public: 29 public:
30 // The delegate will take ownership of the controller. 30 // The delegate will take ownership of the controller.
31 AppListViewDelegate(AppListControllerDelegate* controller, Profile* profile); 31 AppListViewDelegate(AppListControllerDelegate* controller, Profile* profile);
32 virtual ~AppListViewDelegate(); 32 virtual ~AppListViewDelegate();
33 33
34 // Called when an extension with the given id starts being installed.
35 void OnBeginExtensionInstall(const std::string& extension_id,
36 const std::string& extension_name,
37 const gfx::ImageSkia& installing_icon);
38
39 // Called when the download of an extension makes progress.
40 void OnDownloadProgress(const std::string& extension_id,
41 int percent_downloaded);
42 void OnInstallFailure(const std::string& extension_id);
43
44 private: 34 private:
45 // Overridden from app_list::AppListViewDelegate: 35 // Overridden from app_list::AppListViewDelegate:
46 virtual void SetModel(app_list::AppListModel* model) OVERRIDE; 36 virtual void SetModel(app_list::AppListModel* model) OVERRIDE;
47 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE; 37 virtual app_list::SigninDelegate* GetSigninDelegate() OVERRIDE;
48 virtual void ActivateAppListItem(app_list::AppListItemModel* item, 38 virtual void ActivateAppListItem(app_list::AppListItemModel* item,
49 int event_flags) OVERRIDE; 39 int event_flags) OVERRIDE;
50 virtual void StartSearch() OVERRIDE; 40 virtual void StartSearch() OVERRIDE;
51 virtual void StopSearch() OVERRIDE; 41 virtual void StopSearch() OVERRIDE;
52 virtual void OpenSearchResult(const app_list::SearchResult& result, 42 virtual void OpenSearchResult(const app_list::SearchResult& result,
53 int event_flags) OVERRIDE; 43 int event_flags) OVERRIDE;
(...skipping 12 matching lines...) Expand all
66 Profile* profile_; 56 Profile* profile_;
67 57
68 #if defined(USE_ASH) 58 #if defined(USE_ASH)
69 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; 59 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_;
70 #endif 60 #endif
71 61
72 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); 62 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate);
73 }; 63 };
74 64
75 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 65 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_util.h ('k') | chrome/browser/ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698