OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "athena/extensions/chrome/app_list_controller_delegate_athena.h" | |
6 | |
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" | |
12 | |
13 namespace athena { | |
14 | |
15 AppListControllerDelegateAthena::AppListControllerDelegateAthena() { | |
16 } | |
17 | |
18 AppListControllerDelegateAthena::~AppListControllerDelegateAthena() { | |
19 } | |
20 | |
21 void AppListControllerDelegateAthena::DismissView() { | |
22 } | |
23 | |
24 gfx::NativeWindow AppListControllerDelegateAthena::GetAppListWindow() { | |
25 NOTIMPLEMENTED(); | |
26 return nullptr; | |
27 } | |
28 | |
29 gfx::Rect AppListControllerDelegateAthena::GetAppListBounds() { | |
30 NOTIMPLEMENTED(); | |
31 return gfx::Rect(); | |
32 } | |
33 | |
34 gfx::ImageSkia AppListControllerDelegateAthena::GetWindowIcon() { | |
35 return gfx::ImageSkia(); | |
36 } | |
37 | |
38 bool AppListControllerDelegateAthena::IsAppPinned( | |
39 const std::string& extension_id) { | |
40 return false; | |
41 } | |
42 | |
43 void AppListControllerDelegateAthena::PinApp(const std::string& extension_id) { | |
44 NOTREACHED(); | |
45 } | |
46 | |
47 void AppListControllerDelegateAthena::UnpinApp( | |
48 const std::string& extension_id) { | |
49 NOTREACHED(); | |
50 } | |
51 | |
52 AppListControllerDelegate::Pinnable | |
53 AppListControllerDelegateAthena::GetPinnable() { | |
54 return NO_PIN; | |
55 } | |
56 | |
57 void AppListControllerDelegateAthena::OnShowChildDialog() { | |
58 NOTIMPLEMENTED(); | |
59 } | |
60 | |
61 void AppListControllerDelegateAthena::OnCloseChildDialog() { | |
62 NOTIMPLEMENTED(); | |
63 } | |
64 | |
65 bool AppListControllerDelegateAthena::CanDoCreateShortcutsFlow() { | |
66 return false; | |
67 } | |
68 | |
69 void AppListControllerDelegateAthena::DoCreateShortcutsFlow( | |
70 Profile* profile, | |
71 const std::string& extension_id) { | |
72 NOTREACHED(); | |
73 } | |
74 | |
75 void AppListControllerDelegateAthena::CreateNewWindow(Profile* profile, | |
76 bool incognito) { | |
77 // Nothing needs to be done. | |
78 } | |
79 | |
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); | |
86 } | |
87 | |
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); | |
94 } | |
95 | |
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()); | |
102 } | |
103 | |
104 void AppListControllerDelegateAthena::ShowForProfileByPath( | |
105 const base::FilePath& profile_path) { | |
106 // Ash doesn't have profile switching. | |
107 NOTREACHED(); | |
108 } | |
109 | |
110 bool AppListControllerDelegateAthena::ShouldShowUserIcon() { | |
111 return false; | |
112 } | |
113 | |
114 } // namespace athena | |
OLD | NEW |