Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.h

Issue 1770993002: wip: Refactoring Ash's AppListController, moving the bulk of the logic to chrome/browser/ui/ash/app… Base URL: https://chromium.googlesource.com/chromium/src.git@small_5_apps
Patch Set: Added a comment for PostTask in AppListServiceAsh. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 class AppListShowerAsh;
14
13 class AppListControllerDelegateAsh : public AppListControllerDelegate { 15 class AppListControllerDelegateAsh : public AppListControllerDelegate {
14 public: 16 public:
15 AppListControllerDelegateAsh(); 17 explicit AppListControllerDelegateAsh(AppListShowerAsh* app_list_shower);
16 ~AppListControllerDelegateAsh() override; 18 ~AppListControllerDelegateAsh() override;
17 19
18 private: 20 private:
19 // AppListControllerDelegate overrides: 21 // AppListControllerDelegate overrides:
20 void DismissView() override; 22 void DismissView() override;
21 gfx::NativeWindow GetAppListWindow() override; 23 gfx::NativeWindow GetAppListWindow() override;
22 gfx::Rect GetAppListBounds() override; 24 gfx::Rect GetAppListBounds() override;
23 gfx::ImageSkia GetWindowIcon() override; 25 gfx::ImageSkia GetWindowIcon() override;
24 bool IsAppPinned(const std::string& extension_id) override; 26 bool IsAppPinned(const std::string& extension_id) override;
25 void PinApp(const std::string& extension_id) override; 27 void PinApp(const std::string& extension_id) override;
(...skipping 15 matching lines...) Expand all
41 int event_flags) override; 43 int event_flags) override;
42 void LaunchApp(Profile* profile, 44 void LaunchApp(Profile* profile,
43 const extensions::Extension* extension, 45 const extensions::Extension* extension,
44 AppListSource source, 46 AppListSource source,
45 int event_flags) override; 47 int event_flags) override;
46 void ShowForProfileByPath(const base::FilePath& profile_path) override; 48 void ShowForProfileByPath(const base::FilePath& profile_path) override;
47 bool ShouldShowUserIcon() override; 49 bool ShouldShowUserIcon() override;
48 50
49 ash::LaunchSource AppListSourceToLaunchSource(AppListSource source); 51 ash::LaunchSource AppListSourceToLaunchSource(AppListSource source);
50 52
53 // Not owned.
54 AppListShowerAsh* app_list_shower_;
55
51 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh); 56 DISALLOW_COPY_AND_ASSIGN(AppListControllerDelegateAsh);
52 }; 57 };
53 58
54 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_ 59 #endif // CHROME_BROWSER_UI_ASH_APP_LIST_APP_LIST_CONTROLLER_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698