app_list_controller_delegate.cc revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
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
3// found in the LICENSE file.
4
5#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
6
7#include "base/logging.h"
8#include "chrome/browser/browser_process.h"
9#include "chrome/browser/profiles/profile_manager.h"
10#include "ui/gfx/image/image_skia.h"
11
12AppListControllerDelegate::~AppListControllerDelegate() {}
13
14void AppListControllerDelegate::ViewClosing() {}
15
16void AppListControllerDelegate::ViewActivationChanged(bool active) {}
17
18gfx::ImageSkia AppListControllerDelegate::GetWindowIcon() {
19  return gfx::ImageSkia();
20}
21
22bool AppListControllerDelegate::IsAppPinned(const std::string& extension_id) {
23  return false;
24}
25
26void AppListControllerDelegate::PinApp(const std::string& extension_id) {}
27
28void AppListControllerDelegate::UnpinApp(const std::string& extension_id) {}
29
30void AppListControllerDelegate::DoCreateShortcutsFlow(
31    Profile* profile,
32    const std::string& extension_id) {}
33
34void AppListControllerDelegate::CreateNewWindow(Profile* profile,
35                                                bool incognito) {
36  NOTREACHED();
37}
38
39bool AppListControllerDelegate::ShouldShowUserIcon() {
40  return g_browser_process->profile_manager()->GetNumberOfProfiles() > 1;
41}
42