OLD | NEW |
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 UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Returns the list of users (for AppListMenu). | 147 // Returns the list of users (for AppListMenu). |
148 virtual const Users& GetUsers() const = 0; | 148 virtual const Users& GetUsers() const = 0; |
149 | 149 |
150 // Returns true if the app list should be centered and in landscape mode. | 150 // Returns true if the app list should be centered and in landscape mode. |
151 virtual bool ShouldCenterWindow() const = 0; | 151 virtual bool ShouldCenterWindow() const = 0; |
152 | 152 |
153 // Adds/removes an observer for profile changes. | 153 // Adds/removes an observer for profile changes. |
154 virtual void AddObserver(AppListViewDelegateObserver* observer) {} | 154 virtual void AddObserver(AppListViewDelegateObserver* observer) {} |
155 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} | 155 virtual void RemoveObserver(AppListViewDelegateObserver* observer) {} |
156 | |
157 #if !defined(OS_CHROMEOS) | |
158 // Methods to retrieve properties of the message displayed on the app launcher | |
159 // above the apps grid. | |
160 virtual base::string16 GetMessageTitle() const; | |
161 // Returns the message text (with the placeholder symbol removed). | |
162 // |message_break| is set to the index where the placeholder was in the | |
163 // string. | |
164 virtual base::string16 GetMessageText(size_t* message_break) const; | |
165 virtual base::string16 GetAppsShortcutName() const; | |
166 virtual base::string16 GetLearnMoreText() const; | |
167 virtual base::string16 GetLearnMoreLink() const; | |
168 virtual gfx::ImageSkia* GetAppsIcon() const; | |
169 virtual void OpenLearnMoreLink(); | |
170 #endif | |
171 }; | 156 }; |
172 | 157 |
173 } // namespace app_list | 158 } // namespace app_list |
174 | 159 |
175 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 160 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |