Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / ash / app_list / app_list_controller_ash.h
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.
4
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_
7
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"
12
13 class AppListControllerDelegateAsh : public AppListControllerDelegate {
14  public:
15   AppListControllerDelegateAsh();
16   ~AppListControllerDelegateAsh() override;
17
18  private:
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,
35                const GURL& url,
36                ui::PageTransition transition,
37                WindowOpenDisposition disposition) override;
38   void ActivateApp(Profile* profile,
39                    const extensions::Extension* extension,
40                    AppListSource source,
41                    int event_flags) override;
42   void LaunchApp(Profile* profile,
43                  const extensions::Extension* extension,
44                  AppListSource source,
45                  int event_flags) override;
46   void ShowForProfileByPath(const base::FilePath& profile_path) override;
47   bool ShouldShowUserIcon() override;
48
49   ash::LaunchSource AppListSourceToLaunchSource(AppListSource source);
50
51   DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh);
52 };
53
54 #endif  // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_