OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ | 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_ | 6 #define CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 10 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" | 11 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" |
12 | 12 |
13 namespace app_list { | |
14 class AppListShowerImpl; | |
15 } | |
16 | |
17 class AppListControllerDelegateAsh : public AppListControllerDelegate { | 13 class AppListControllerDelegateAsh : public AppListControllerDelegate { |
18 public: | 14 public: |
19 explicit AppListControllerDelegateAsh(app_list::AppListShowerImpl*); | 15 AppListControllerDelegateAsh(); |
20 ~AppListControllerDelegateAsh() override; | 16 ~AppListControllerDelegateAsh() override; |
21 | 17 |
22 private: | 18 private: |
23 // AppListControllerDelegate overrides: | 19 // AppListControllerDelegate overrides: |
24 void DismissView() override; | 20 void DismissView() override; |
25 gfx::NativeWindow GetAppListWindow() override; | 21 gfx::NativeWindow GetAppListWindow() override; |
26 gfx::Rect GetAppListBounds() override; | 22 gfx::Rect GetAppListBounds() override; |
27 gfx::ImageSkia GetWindowIcon() override; | 23 gfx::ImageSkia GetWindowIcon() override; |
28 bool IsAppPinned(const std::string& extension_id) override; | 24 bool IsAppPinned(const std::string& extension_id) override; |
29 void PinApp(const std::string& extension_id) override; | 25 void PinApp(const std::string& extension_id) override; |
(...skipping 15 matching lines...) Expand all Loading... |
45 int event_flags) override; | 41 int event_flags) override; |
46 void LaunchApp(Profile* profile, | 42 void LaunchApp(Profile* profile, |
47 const extensions::Extension* extension, | 43 const extensions::Extension* extension, |
48 AppListSource source, | 44 AppListSource source, |
49 int event_flags) override; | 45 int event_flags) override; |
50 void ShowForProfileByPath(const base::FilePath& profile_path) override; | 46 void ShowForProfileByPath(const base::FilePath& profile_path) override; |
51 bool ShouldShowUserIcon() override; | 47 bool ShouldShowUserIcon() override; |
52 | 48 |
53 ash::LaunchSource AppListSourceToLaunchSource(AppListSource source); | 49 ash::LaunchSource AppListSourceToLaunchSource(AppListSource source); |
54 | 50 |
55 // Not owned. | |
56 app_list::AppListShowerImpl* app_list_shower_; | |
57 | |
58 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh); | 51 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh); |
59 }; | 52 }; |
60 | 53 |
61 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ | 54 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ |
OLD | NEW |