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