Adds full-functional search results for Athena on Chrome.
[chromium-blink-merge.git] / athena / extensions / chrome / app_list_controller_delegate_athena.cc
blob5dcef0596691b6c37b21a04815d474b269a5b1e0
1 // Copyright 2014 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.
5 #include "athena/extensions/chrome/app_list_controller_delegate_athena.h"
7 #include "athena/activity/public/activity_factory.h"
8 #include "athena/extensions/public/extensions_delegate.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "extensions/common/extension.h"
11 #include "ui/app_list/views/app_list_view.h"
13 namespace athena {
15 AppListControllerDelegateAthena::AppListControllerDelegateAthena() {
18 AppListControllerDelegateAthena::~AppListControllerDelegateAthena() {
21 void AppListControllerDelegateAthena::DismissView() {
24 gfx::NativeWindow AppListControllerDelegateAthena::GetAppListWindow() {
25 NOTIMPLEMENTED();
26 return NULL;
29 gfx::Rect AppListControllerDelegateAthena::GetAppListBounds() {
30 NOTIMPLEMENTED();
31 return gfx::Rect();
34 gfx::ImageSkia AppListControllerDelegateAthena::GetWindowIcon() {
35 return gfx::ImageSkia();
38 bool AppListControllerDelegateAthena::IsAppPinned(
39 const std::string& extension_id) {
40 return false;
43 void AppListControllerDelegateAthena::PinApp(const std::string& extension_id) {
44 NOTREACHED();
47 void AppListControllerDelegateAthena::UnpinApp(
48 const std::string& extension_id) {
49 NOTREACHED();
52 AppListControllerDelegate::Pinnable
53 AppListControllerDelegateAthena::GetPinnable() {
54 return NO_PIN;
57 void AppListControllerDelegateAthena::OnShowChildDialog() {
58 NOTIMPLEMENTED();
61 void AppListControllerDelegateAthena::OnCloseChildDialog() {
62 NOTIMPLEMENTED();
65 bool AppListControllerDelegateAthena::CanDoCreateShortcutsFlow() {
66 return false;
69 void AppListControllerDelegateAthena::DoCreateShortcutsFlow(
70 Profile* profile,
71 const std::string& extension_id) {
72 NOTREACHED();
75 void AppListControllerDelegateAthena::CreateNewWindow(Profile* profile,
76 bool incognito) {
77 // Nothing needs to be done.
80 void AppListControllerDelegateAthena::OpenURL(
81 Profile* profile,
82 const GURL& url,
83 ui::PageTransition transition,
84 WindowOpenDisposition disposition) {
85 ActivityFactory::Get()->CreateWebActivity(profile, base::string16(), url);
88 void AppListControllerDelegateAthena::ActivateApp(
89 Profile* profile,
90 const extensions::Extension* extension,
91 AppListSource source,
92 int event_flags) {
93 LaunchApp(profile, extension, source, event_flags);
96 void AppListControllerDelegateAthena::LaunchApp(
97 Profile* profile,
98 const extensions::Extension* extension,
99 AppListSource source,
100 int event_flags) {
101 ExtensionsDelegate::Get(profile)->LaunchApp(extension->id());
104 void AppListControllerDelegateAthena::ShowForProfileByPath(
105 const base::FilePath& profile_path) {
106 // Ash doesn't have profile switching.
107 NOTREACHED();
110 bool AppListControllerDelegateAthena::ShouldShowUserIcon() {
111 return false;
114 } // namespace athena