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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 std::vector<views::View*> CreateCustomPageWebViews( | 113 std::vector<views::View*> CreateCustomPageWebViews( |
114 const gfx::Size& size) override; | 114 const gfx::Size& size) override; |
115 void CustomLauncherPageAnimationChanged(double progress) override; | 115 void CustomLauncherPageAnimationChanged(double progress) override; |
116 void CustomLauncherPagePopSubpage() override; | 116 void CustomLauncherPagePopSubpage() override; |
117 #endif | 117 #endif |
118 bool IsSpeechRecognitionEnabled() override; | 118 bool IsSpeechRecognitionEnabled() override; |
119 const Users& GetUsers() const override; | 119 const Users& GetUsers() const override; |
120 bool ShouldCenterWindow() const override; | 120 bool ShouldCenterWindow() const override; |
121 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; | 121 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; |
122 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; | 122 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; |
| 123 #if !defined(OS_CHROMEOS) |
| 124 base::string16 GetMessageTitle() const override; |
| 125 base::string16 GetMessageText(size_t* message_break) const override; |
| 126 base::string16 GetAppsShortcutName() const override; |
| 127 base::string16 GetLearnMoreText() const override; |
| 128 base::string16 GetLearnMoreLink() const override; |
| 129 gfx::ImageSkia* GetAppsIcon() const override; |
| 130 void OpenLearnMoreLink() override; |
| 131 #endif |
123 | 132 |
124 // Overridden from TemplateURLServiceObserver: | 133 // Overridden from TemplateURLServiceObserver: |
125 void OnTemplateURLServiceChanged() override; | 134 void OnTemplateURLServiceChanged() override; |
126 | 135 |
127 private: | 136 private: |
128 // Updates the speech webview and start page for the current |profile_|. | 137 // Updates the speech webview and start page for the current |profile_|. |
129 void SetUpSearchUI(); | 138 void SetUpSearchUI(); |
130 | 139 |
131 // Updates the app list's ProfileMenuItems for the current |profile_|. | 140 // Updates the app list's ProfileMenuItems for the current |profile_|. |
132 void SetUpProfileSwitcher(); | 141 void SetUpProfileSwitcher(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Window contents of additional custom launcher pages. | 219 // Window contents of additional custom launcher pages. |
211 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; | 220 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; |
212 | 221 |
213 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. | 222 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. |
214 content::NotificationRegistrar registrar_; | 223 content::NotificationRegistrar registrar_; |
215 | 224 |
216 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 225 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
217 }; | 226 }; |
218 | 227 |
219 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 228 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |