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 #ifndef ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_
6 #define ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
14 class AppListControllerDelegateAthena
: public AppListControllerDelegate
{
16 AppListControllerDelegateAthena();
17 ~AppListControllerDelegateAthena() override
;
20 // AppListControllerDelegate overrides:
21 void DismissView() override
;
22 gfx::NativeWindow
GetAppListWindow() override
;
23 gfx::Rect
GetAppListBounds() override
;
24 gfx::ImageSkia
GetWindowIcon() override
;
25 bool IsAppPinned(const std::string
& extension_id
) override
;
26 void PinApp(const std::string
& extension_id
) override
;
27 void UnpinApp(const std::string
& extension_id
) override
;
28 Pinnable
GetPinnable() override
;
29 void OnShowChildDialog() override
;
30 void OnCloseChildDialog() override
;
31 bool CanDoCreateShortcutsFlow() override
;
32 void DoCreateShortcutsFlow(Profile
* profile
,
33 const std::string
& extension_id
) override
;
34 void CreateNewWindow(Profile
* profile
, bool incognito
) override
;
35 void OpenURL(Profile
* profile
,
37 ui::PageTransition transition
,
38 WindowOpenDisposition disposition
) override
;
39 void ActivateApp(Profile
* profile
,
40 const extensions::Extension
* extension
,
42 int event_flags
) override
;
43 void LaunchApp(Profile
* profile
,
44 const extensions::Extension
* extension
,
46 int event_flags
) override
;
47 void ShowForProfileByPath(const base::FilePath
& profile_path
) override
;
48 bool ShouldShowUserIcon() override
;
50 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAthena
);
55 #endif // ATHENA_EXTENSIONS_CHROME_APP_LIST_CONTROLLER_DELEGATE_ATHENA_H_