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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace app_list { | 26 namespace app_list { |
27 class SearchController; | 27 class SearchController; |
28 class SpeechUIModel; | 28 class SpeechUIModel; |
29 } | 29 } |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 class FilePath; | 32 class FilePath; |
33 } | 33 } |
34 | 34 |
| 35 namespace content { |
| 36 class WebContents; |
| 37 } |
| 38 |
35 namespace gfx { | 39 namespace gfx { |
36 class ImageSkia; | 40 class ImageSkia; |
37 } | 41 } |
38 | 42 |
39 #if defined(USE_ASH) | 43 #if defined(USE_ASH) |
40 class AppSyncUIStateWatcher; | 44 class AppSyncUIStateWatcher; |
41 #endif | 45 #endif |
42 | 46 |
43 class AppListViewDelegate : public app_list::AppListViewDelegate, | 47 class AppListViewDelegate : public app_list::AppListViewDelegate, |
44 public app_list::StartPageObserver, | 48 public app_list::StartPageObserver, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void ViewClosing() OVERRIDE; | 82 virtual void ViewClosing() OVERRIDE; |
79 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 83 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
80 virtual void OpenSettings() OVERRIDE; | 84 virtual void OpenSettings() OVERRIDE; |
81 virtual void OpenHelp() OVERRIDE; | 85 virtual void OpenHelp() OVERRIDE; |
82 virtual void OpenFeedback() OVERRIDE; | 86 virtual void OpenFeedback() OVERRIDE; |
83 virtual void ToggleSpeechRecognition() OVERRIDE; | 87 virtual void ToggleSpeechRecognition() OVERRIDE; |
84 virtual void ShowForProfileByPath( | 88 virtual void ShowForProfileByPath( |
85 const base::FilePath& profile_path) OVERRIDE; | 89 const base::FilePath& profile_path) OVERRIDE; |
86 #if defined(TOOLKIT_VIEWS) | 90 #if defined(TOOLKIT_VIEWS) |
87 virtual views::View* CreateStartPageWebView(const gfx::Size& size) OVERRIDE; | 91 virtual views::View* CreateStartPageWebView(const gfx::Size& size) OVERRIDE; |
| 92 virtual views::View* CreateCustomPageWebView(const gfx::Size& size) OVERRIDE; |
88 #endif | 93 #endif |
89 virtual bool IsSpeechRecognitionEnabled() OVERRIDE; | 94 virtual bool IsSpeechRecognitionEnabled() OVERRIDE; |
90 virtual const Users& GetUsers() const OVERRIDE; | 95 virtual const Users& GetUsers() const OVERRIDE; |
91 virtual bool ShouldCenterWindow() const OVERRIDE; | 96 virtual bool ShouldCenterWindow() const OVERRIDE; |
92 virtual void AddObserver( | 97 virtual void AddObserver( |
93 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 98 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
94 virtual void RemoveObserver( | 99 virtual void RemoveObserver( |
95 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 100 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
96 | 101 |
97 // Overridden from app_list::StartPageObserver: | 102 // Overridden from app_list::StartPageObserver: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 #if defined(USE_ASH) | 147 #if defined(USE_ASH) |
143 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 148 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
144 #endif | 149 #endif |
145 | 150 |
146 ObserverList<app_list::AppListViewDelegateObserver> observers_; | 151 ObserverList<app_list::AppListViewDelegateObserver> observers_; |
147 | 152 |
148 // Used to track the SigninManagers that this instance is observing so that | 153 // Used to track the SigninManagers that this instance is observing so that |
149 // this instance can be removed as an observer on its destruction. | 154 // this instance can be removed as an observer on its destruction. |
150 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; | 155 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; |
151 | 156 |
| 157 // Contents of the additional custom launcher page. May be NULL. |
| 158 scoped_ptr<content::WebContents> custom_page_web_contents_; |
| 159 |
152 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 160 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
153 }; | 161 }; |
154 | 162 |
155 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 163 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |