blob: dd747c679c3065077025864e49abc46d1a12a5ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
#include "base/logging.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "ui/gfx/image/image_skia.h"
AppListControllerDelegate::~AppListControllerDelegate() {}
void AppListControllerDelegate::ViewClosing() {}
void AppListControllerDelegate::ViewActivationChanged(bool active) {}
gfx::ImageSkia AppListControllerDelegate::GetWindowIcon() {
return gfx::ImageSkia();
}
bool AppListControllerDelegate::IsAppPinned(const std::string& extension_id) {
return false;
}
void AppListControllerDelegate::PinApp(const std::string& extension_id) {}
void AppListControllerDelegate::UnpinApp(const std::string& extension_id) {}
void AppListControllerDelegate::ShowCreateShortcutsDialog(
Profile* profile,
const std::string& extension_id) {}
void AppListControllerDelegate::CreateNewWindow(Profile* profile,
bool incognito) {
NOTREACHED();
}
bool AppListControllerDelegate::ShouldShowUserIcon() {
return g_browser_process->profile_manager()->GetNumberOfProfiles() > 1;
}
|