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

Unified Diff: ui/app_list/app_list_view_delegate.h

Issue 2127713005: Purge AppListMenu, and the app list profile switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160707-Apps-RemoveSettings
Patch Set: Created 4 years, 5 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
« no previous file with comments | « ui/app_list/app_list_menu.cc ('k') | ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_view_delegate.h
diff --git a/ui/app_list/app_list_view_delegate.h b/ui/app_list/app_list_view_delegate.h
index 51f9033c64c209a52af6070887c4cd79d1baf82e..29a8590c09a254144820433d77af96a40190a4aa 100644
--- a/ui/app_list/app_list_view_delegate.h
+++ b/ui/app_list/app_list_view_delegate.h
@@ -32,40 +32,18 @@ class View;
namespace app_list {
class AppListModel;
-class AppListViewDelegateObserver;
class SearchResult;
class SpeechUIModel;
class APP_LIST_EXPORT AppListViewDelegate {
public:
- // A user of the app list.
- struct APP_LIST_EXPORT User {
- User();
- User(const User& other);
- ~User();
-
- // Whether or not this user is the current user of the app list.
- bool active;
-
- // The name of this user.
- base::string16 name;
-
- // The email address of this user.
- base::string16 email;
-
- // The path to this user's profile directory.
- base::FilePath profile_path;
- };
- typedef std::vector<User> Users;
-
virtual ~AppListViewDelegate() {}
// Whether to force the use of a native desktop widget when the app list
// window is first created.
virtual bool ForceNativeDesktop() const = 0;
- // Sets the delegate to use the profile at |profile_path|. This is currently
- // only used by non-Ash Windows.
+ // Sets the delegate to use the profile at |profile_path|.
virtual void SetProfileByPath(const base::FilePath& profile_path) = 0;
// Gets the model associated with the view delegate. The model may be owned
@@ -117,19 +95,10 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Invoked when the app list is closing.
virtual void ViewClosing() = 0;
- // Open the help UI.
- virtual void OpenHelp() = 0;
-
- // Open the feedback UI.
- virtual void OpenFeedback() = 0;
-
// Invoked to toggle the status of speech recognition.
virtual void StartSpeechRecognition() = 0;
virtual void StopSpeechRecognition() = 0;
- // Shows the app list for the profile specified by |profile_path|.
- virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0;
-
#if defined(TOOLKIT_VIEWS)
// Creates the web view for the start page. The caller takes the ownership of
// the returned view.
@@ -150,16 +119,9 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Returns true if the delegate supports speech recognition.
virtual bool IsSpeechRecognitionEnabled() = 0;
- // Returns the list of users (for AppListMenu).
- virtual const Users& GetUsers() const = 0;
-
// Returns true if the app list should be centered and in landscape mode.
virtual bool ShouldCenterWindow() const = 0;
- // Adds/removes an observer for profile changes.
- virtual void AddObserver(AppListViewDelegateObserver* observer) {}
- virtual void RemoveObserver(AppListViewDelegateObserver* observer) {}
-
#if !defined(OS_CHROMEOS)
// Methods to retrieve properties of the message displayed on the app launcher
// above the apps grid.
« no previous file with comments | « ui/app_list/app_list_menu.cc ('k') | ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698