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

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

Issue 1137503005: Add launcherPage.hide() API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mobile Created 5 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // they begin or complete installing. If |start_discovery_tracking| is set, 93 // they begin or complete installing. If |start_discovery_tracking| is set,
94 // the app launcher will not actually be shown, but will start tracking UMA 94 // the app launcher will not actually be shown, but will start tracking UMA
95 // for app launcher discovery. 95 // for app launcher discovery.
96 virtual void ShowForAppInstall(Profile* profile, 96 virtual void ShowForAppInstall(Profile* profile,
97 const std::string& extension_id, 97 const std::string& extension_id,
98 bool start_discovery_tracking) = 0; 98 bool start_discovery_tracking) = 0;
99 99
100 // Shows the app list, and switches to the custom launcher page. 100 // Shows the app list, and switches to the custom launcher page.
101 virtual void ShowForCustomLauncherPage(Profile* profile) = 0; 101 virtual void ShowForCustomLauncherPage(Profile* profile) = 0;
102 102
103 // Hides the custom launcher page if it is currently being shown. Does nothing
104 // otherwise.
105 virtual void HideCustomLauncherPage() = 0;
106
103 // Dismiss the app list. 107 // Dismiss the app list.
104 virtual void DismissAppList() = 0; 108 virtual void DismissAppList() = 0;
105 109
106 // Get the profile the app list is currently showing. 110 // Get the profile the app list is currently showing.
107 virtual Profile* GetCurrentAppListProfile() = 0; 111 virtual Profile* GetCurrentAppListProfile() = 0;
108 112
109 // Returns true if the app list is visible. 113 // Returns true if the app list is visible.
110 virtual bool IsAppListVisible() const = 0; 114 virtual bool IsAppListVisible() const = 0;
111 115
112 // Enable the app list. What this does specifically will depend on the host 116 // Enable the app list. What this does specifically will depend on the host
(...skipping 15 matching lines...) Expand all
128 virtual ~AppListService() {} 132 virtual ~AppListService() {}
129 133
130 // Do any once off initialization needed for the app list. 134 // Do any once off initialization needed for the app list.
131 virtual void Init(Profile* initial_profile) = 0; 135 virtual void Init(Profile* initial_profile) = 0;
132 136
133 private: 137 private:
134 DISALLOW_COPY_AND_ASSIGN(AppListService); 138 DISALLOW_COPY_AND_ASSIGN(AppListService);
135 }; 139 };
136 140
137 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_ 141 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698