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

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

Issue 12208040: [win] Add a progress bar in the app launcher for app installs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux compile 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 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h"
6 6
7 #include "chrome/browser/profiles/profile_manager.h" 7 #include "chrome/browser/profiles/profile_manager.h"
8 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 8 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
9 #include "chrome/browser/ui/app_list/apps_model_builder.h" 9 #include "chrome/browser/ui/app_list/apps_model_builder.h"
10 #include "chrome/browser/ui/app_list/chrome_app_list_item.h" 10 #include "chrome/browser/ui/app_list/chrome_app_list_item.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void AppListViewDelegate::OnBeginExtensionInstall( 57 void AppListViewDelegate::OnBeginExtensionInstall(
58 const std::string& extension_id, 58 const std::string& extension_id,
59 const std::string& extension_name, 59 const std::string& extension_name,
60 const gfx::ImageSkia& installing_icon) { 60 const gfx::ImageSkia& installing_icon) {
61 apps_builder_->OnBeginExtensionInstall(extension_id, 61 apps_builder_->OnBeginExtensionInstall(extension_id,
62 extension_name, 62 extension_name,
63 installing_icon); 63 installing_icon);
64 } 64 }
65 65
66 void AppListViewDelegate::OnDownloadProgress(
67 const std::string& extension_id,
68 int percent_downloaded) {
69 apps_builder_->OnDownloadProgress(extension_id, percent_downloaded);
70 }
71
66 void AppListViewDelegate::ActivateAppListItem( 72 void AppListViewDelegate::ActivateAppListItem(
67 app_list::AppListItemModel* item, 73 app_list::AppListItemModel* item,
68 int event_flags) { 74 int event_flags) {
69 content::RecordAction(content::UserMetricsAction("AppList_ClickOnApp")); 75 content::RecordAction(content::UserMetricsAction("AppList_ClickOnApp"));
70 static_cast<ChromeAppListItem*>(item)->Activate(event_flags); 76 static_cast<ChromeAppListItem*>(item)->Activate(event_flags);
71 } 77 }
72 78
73 void AppListViewDelegate::StartSearch() { 79 void AppListViewDelegate::StartSearch() {
74 if (search_builder_.get()) 80 if (search_builder_.get())
75 search_builder_->StartSearch(); 81 search_builder_->StartSearch();
(...skipping 23 matching lines...) Expand all
99 controller_->DismissView(); 105 controller_->DismissView();
100 } 106 }
101 107
102 void AppListViewDelegate::ViewClosing() { 108 void AppListViewDelegate::ViewClosing() {
103 controller_->ViewClosing(); 109 controller_->ViewClosing();
104 } 110 }
105 111
106 void AppListViewDelegate::ViewActivationChanged(bool active) { 112 void AppListViewDelegate::ViewActivationChanged(bool active) {
107 controller_->ViewActivationChanged(active); 113 controller_->ViewActivationChanged(active);
108 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.h ('k') | chrome/browser/ui/app_list/apps_model_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698