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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void ViewInitialized() override; | 86 void ViewInitialized() override; |
87 void Dismiss() override; | 87 void Dismiss() override; |
88 void ViewClosing() override; | 88 void ViewClosing() override; |
89 gfx::ImageSkia GetWindowIcon() override; | 89 gfx::ImageSkia GetWindowIcon() override; |
90 void OpenSettings() override; | 90 void OpenSettings() override; |
91 void OpenHelp() override; | 91 void OpenHelp() override; |
92 void OpenFeedback() override; | 92 void OpenFeedback() override; |
93 void ToggleSpeechRecognition() override; | 93 void ToggleSpeechRecognition() override; |
94 void ShowForProfileByPath(const base::FilePath& profile_path) override; | 94 void ShowForProfileByPath(const base::FilePath& profile_path) override; |
95 #if defined(TOOLKIT_VIEWS) | 95 #if defined(TOOLKIT_VIEWS) |
96 virtual views::View* CreateStartPageWebView(const gfx::Size& size) override; | 96 views::View* CreateStartPageWebView(const gfx::Size& size) override; |
97 virtual std::vector<views::View*> CreateCustomPageWebViews( | 97 std::vector<views::View*> CreateCustomPageWebViews( |
98 const gfx::Size& size) override; | 98 const gfx::Size& size) override; |
99 #endif | 99 #endif |
100 bool IsSpeechRecognitionEnabled() override; | 100 bool IsSpeechRecognitionEnabled() override; |
101 const Users& GetUsers() const override; | 101 const Users& GetUsers() const override; |
102 bool ShouldCenterWindow() const override; | 102 bool ShouldCenterWindow() const override; |
103 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; | 103 void AddObserver(app_list::AppListViewDelegateObserver* observer) override; |
104 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; | 104 void RemoveObserver(app_list::AppListViewDelegateObserver* observer) override; |
105 | 105 |
106 private: | 106 private: |
107 // Updates the speech webview and start page for the current |profile_|. | 107 // Updates the speech webview and start page for the current |profile_|. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Window contents of additional custom launcher pages. | 179 // Window contents of additional custom launcher pages. |
180 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; | 180 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; |
181 | 181 |
182 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. | 182 // Registers for NOTIFICATION_APP_TERMINATING to unload custom launcher pages. |
183 content::NotificationRegistrar registrar_; | 183 content::NotificationRegistrar registrar_; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 185 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 188 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |