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.
5 #ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_
6 #define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
13 class AppListControllerDelegateAsh : public AppListControllerDelegate {
15 AppListControllerDelegateAsh();
16 ~AppListControllerDelegateAsh() override;
19 // AppListControllerDelegate overrides:
20 void DismissView() override;
21 gfx::NativeWindow GetAppListWindow() override;
22 gfx::Rect GetAppListBounds() override;
23 gfx::ImageSkia GetWindowIcon() override;
24 bool IsAppPinned(const std::string& extension_id) override;
25 void PinApp(const std::string& extension_id) override;
26 void UnpinApp(const std::string& extension_id) override;
27 Pinnable GetPinnable() override;
28 void OnShowChildDialog() override;
29 void OnCloseChildDialog() override;
30 bool CanDoCreateShortcutsFlow() override;
31 void DoCreateShortcutsFlow(Profile* profile,
32 const std::string& extension_id) override;
33 void CreateNewWindow(Profile* profile, bool incognito) override;
34 void OpenURL(Profile* profile,
36 ui::PageTransition transition,
37 WindowOpenDisposition disposition) override;
38 void ActivateApp(Profile* profile,
39 const extensions::Extension* extension,
41 int event_flags) override;
42 void LaunchApp(Profile* profile,
43 const extensions::Extension* extension,
45 int event_flags) override;
46 void ShowForProfileByPath(const base::FilePath& profile_path) override;
47 bool ShouldShowUserIcon() override;
49 ash::LaunchSource AppListSourceToLaunchSource(AppListSource source);
51 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh);
54 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_