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

Unified Diff: chrome/browser/ui/app_list/app_list_controller.h

Issue 11094019: Auto hide app list on Windows when it loses focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_controller.h
diff --git a/chrome/browser/ui/app_list/app_list_controller.h b/chrome/browser/ui/app_list/app_list_controller.h
index 846a932e2728b65d3cb08166925e99c123682dfc..fa41bad63ab008fb303c01338a0f8b09c4f22cb7 100644
--- a/chrome/browser/ui/app_list/app_list_controller.h
+++ b/chrome/browser/ui/app_list/app_list_controller.h
@@ -12,23 +12,29 @@ class Profile;
// Interface to allow the view delegate to call out to whatever is controlling
// the app list. This will have different implementations for different
// platforms.
-class AppListController {
+class AppListControllerDelegate {
public:
- virtual ~AppListController() {}
+ virtual ~AppListControllerDelegate();
- // Handle the controller being closed.
+ // Close the view.
virtual void CloseView() = 0;
+ // Handle the view being closed.
+ virtual void ViewClosing();
+
+ // Handle the view being activated or deactivated.
+ virtual void ViewActivationChanged(bool active);
+
// Control of pinning apps.
- virtual bool IsAppPinned(const std::string& extension_id) = 0;
- virtual void PinApp(const std::string& extension_id) = 0;
- virtual void UnpinApp(const std::string& extension_id) = 0;
+ virtual bool IsAppPinned(const std::string& extension_id);
+ virtual void PinApp(const std::string& extension_id);
+ virtual void UnpinApp(const std::string& extension_id);
virtual bool CanPin() = 0;
// Whether the controller supports showing the Create Shortcuts dialog.
virtual bool CanShowCreateShortcutsDialog() = 0;
virtual void ShowCreateShortcutsDialog(Profile* profile,
- const std::string& extension_id) = 0;
+ const std::string& extension_id);
// App has been clicked on in the app list.
virtual void ActivateApp(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698