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

Side by Side Diff: chrome/browser/ui/app_list/app_list_controller.h

Issue 10900018: Introduce App Launcher for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First round of feedback Created 8 years, 3 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 | Annotate | Revision Log
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_APP_LIST_APP_LIST_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace gfx {
11 class ImageSkia;
12 }
13
10 class Profile; 14 class Profile;
11 15
12 // Interface to allow the view delegate to call out to whatever is controlling 16 // Interface to allow the view delegate to call out to whatever is controlling
13 // the app list. This will have different implementations for different 17 // the app list. This will have different implementations for different
14 // platforms. 18 // platforms.
15 class AppListController { 19 class AppListController {
16 public: 20 public:
17 virtual ~AppListController() {} 21 virtual ~AppListController() {}
18 22
19 // Handle the controller being closed. 23 // Handle the controller being closed.
20 virtual void CloseView() = 0; 24 virtual void CloseView() = 0;
21 25
22 // Control of pinning apps. 26 // Control of pinning apps.
23 virtual bool IsAppPinned(const std::string& extension_id) = 0; 27 virtual bool IsAppPinned(const std::string& extension_id) = 0;
24 virtual void PinApp(const std::string& extension_id) = 0; 28 virtual void PinApp(const std::string& extension_id) = 0;
25 virtual void UnpinApp(const std::string& extension_id) = 0; 29 virtual void UnpinApp(const std::string& extension_id) = 0;
26 virtual bool CanPin() = 0; 30 virtual bool CanPin() = 0;
27 31
28 // App has been clicked on in the app list. 32 // App has been clicked on in the app list.
29 virtual void ActivateApp(Profile* profile, 33 virtual void ActivateApp(Profile* profile,
30 const std::string& extension_id, 34 const std::string& extension_id,
31 int event_flags) = 0; 35 int event_flags) = 0;
36
37 // Get the window icon to show, if any.
38 virtual gfx::ImageSkia GetWindowAppIcon() = 0;
32 }; 39 };
33 40
41 namespace app_list_controller {
42
43 void ShowAppList();
msw 2012/08/31 09:16:58 nit: add comment.
benwells 2012/09/04 04:47:59 Done.
44
45 }
46
34 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_ 47 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698