| Index: trunk/src/chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.cc
|
| ===================================================================
|
| --- trunk/src/chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.cc (revision 267382)
|
| +++ trunk/src/chrome/browser/ui/views/app_list/win/app_list_controller_delegate_win.cc (working copy)
|
| @@ -7,15 +7,17 @@
|
| #include "apps/app_window.h"
|
| #include "apps/app_window_registry.h"
|
| #include "chrome/browser/metro_utils/metro_chrome_win.h"
|
| -#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/app_list/app_list_icon_win.h"
|
| #include "chrome/browser/ui/extensions/application_launch.h"
|
| #include "chrome/browser/ui/host_desktop.h"
|
| +#include "chrome/browser/ui/views/app_list/win/app_list_service_win.h"
|
| +#include "extensions/common/extension.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
|
|
| AppListControllerDelegateWin::AppListControllerDelegateWin(
|
| - AppListServiceViews* service)
|
| - : AppListControllerDelegateViews(service) {}
|
| + AppListServiceWin* service)
|
| + : AppListControllerDelegateImpl(service),
|
| + service_(service) {}
|
|
|
| AppListControllerDelegateWin::~AppListControllerDelegateWin() {}
|
|
|
| @@ -23,12 +25,28 @@
|
| return true;
|
| }
|
|
|
| +void AppListControllerDelegateWin::ViewClosing() {
|
| + service_->OnViewBeingDestroyed();
|
| +}
|
| +
|
| gfx::ImageSkia AppListControllerDelegateWin::GetWindowIcon() {
|
| gfx::ImageSkia* resource = ResourceBundle::GetSharedInstance().
|
| GetImageSkiaNamed(GetAppListIconResourceId());
|
| return *resource;
|
| }
|
|
|
| +void AppListControllerDelegateWin::OnShowExtensionPrompt() {
|
| + service_->set_can_close(false);
|
| +}
|
| +
|
| +void AppListControllerDelegateWin::OnCloseExtensionPrompt() {
|
| + service_->set_can_close(true);
|
| +}
|
| +
|
| +bool AppListControllerDelegateWin::CanDoCreateShortcutsFlow() {
|
| + return true;
|
| +}
|
| +
|
| void AppListControllerDelegateWin::FillLaunchParams(AppLaunchParams* params) {
|
| params->desktop_type = chrome::HOST_DESKTOP_TYPE_NATIVE;
|
| apps::AppWindow* any_existing_window =
|
|
|