| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void ShowForProfileByPath(const base::FilePath& profile_path) override; | 105 void ShowForProfileByPath(const base::FilePath& profile_path) override; |
| 106 #if defined(TOOLKIT_VIEWS) | 106 #if defined(TOOLKIT_VIEWS) |
| 107 views::View* CreateStartPageWebView(const gfx::Size& size) override; | 107 views::View* CreateStartPageWebView(const gfx::Size& size) override; |
| 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; | |
| 116 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; | 115 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; |
| 117 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; | 116 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; |
| 118 | 117 |
| 119 // Overridden from TemplateURLServiceObserver: | 118 // Overridden from TemplateURLServiceObserver: |
| 120 void OnTemplateURLServiceChanged() override; | 119 void OnTemplateURLServiceChanged() override; |
| 121 | 120 |
| 122 private: | 121 private: |
| 123 // Updates the speech webview and start page for the current |profile_|. | 122 // Updates the speech webview and start page for the current |profile_|. |
| 124 void SetUpSearchUI(); | 123 void SetUpSearchUI(); |
| 125 | 124 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Window contents of additional custom launcher pages. | 204 // Window contents of additional custom launcher pages. |
| 206 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; | 205 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; |
| 207 | 206 |
| 208 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. | 207 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. |
| 209 content::NotificationRegistrar registrar_; | 208 content::NotificationRegistrar registrar_; |
| 210 | 209 |
| 211 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 210 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 213 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |