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" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/scoped_vector.h" |
14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
15 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
16 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 17 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
17 #include "chrome/browser/search/hotword_client.h" | 18 #include "chrome/browser/search/hotword_client.h" |
18 #include "chrome/browser/signin/signin_manager_factory.h" | 19 #include "chrome/browser/signin/signin_manager_factory.h" |
19 #include "chrome/browser/ui/app_list/start_page_observer.h" | 20 #include "chrome/browser/ui/app_list/start_page_observer.h" |
20 #include "components/signin/core/browser/signin_manager_base.h" | 21 #include "components/signin/core/browser/signin_manager_base.h" |
21 #include "ui/app_list/app_list_view_delegate.h" | 22 #include "ui/app_list/app_list_view_delegate.h" |
22 | 23 |
23 class AppListControllerDelegate; | 24 class AppListControllerDelegate; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual void ViewClosing() OVERRIDE; | 83 virtual void ViewClosing() OVERRIDE; |
83 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 84 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
84 virtual void OpenSettings() OVERRIDE; | 85 virtual void OpenSettings() OVERRIDE; |
85 virtual void OpenHelp() OVERRIDE; | 86 virtual void OpenHelp() OVERRIDE; |
86 virtual void OpenFeedback() OVERRIDE; | 87 virtual void OpenFeedback() OVERRIDE; |
87 virtual void ToggleSpeechRecognition() OVERRIDE; | 88 virtual void ToggleSpeechRecognition() OVERRIDE; |
88 virtual void ShowForProfileByPath( | 89 virtual void ShowForProfileByPath( |
89 const base::FilePath& profile_path) OVERRIDE; | 90 const base::FilePath& profile_path) OVERRIDE; |
90 #if defined(TOOLKIT_VIEWS) | 91 #if defined(TOOLKIT_VIEWS) |
91 virtual views::View* CreateStartPageWebView(const gfx::Size& size) OVERRIDE; | 92 virtual views::View* CreateStartPageWebView(const gfx::Size& size) OVERRIDE; |
92 virtual views::View* CreateCustomPageWebView(const gfx::Size& size) OVERRIDE; | 93 virtual std::vector<views::View*> CreateCustomPageWebViews( |
| 94 const gfx::Size& size) OVERRIDE; |
93 #endif | 95 #endif |
94 virtual bool IsSpeechRecognitionEnabled() OVERRIDE; | 96 virtual bool IsSpeechRecognitionEnabled() OVERRIDE; |
95 virtual const Users& GetUsers() const OVERRIDE; | 97 virtual const Users& GetUsers() const OVERRIDE; |
96 virtual bool ShouldCenterWindow() const OVERRIDE; | 98 virtual bool ShouldCenterWindow() const OVERRIDE; |
97 virtual void AddObserver( | 99 virtual void AddObserver( |
98 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 100 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
99 virtual void RemoveObserver( | 101 virtual void RemoveObserver( |
100 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 102 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
101 | 103 |
102 // Overridden from app_list::StartPageObserver: | 104 // Overridden from app_list::StartPageObserver: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 #if defined(USE_ASH) | 149 #if defined(USE_ASH) |
148 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; | 150 scoped_ptr<AppSyncUIStateWatcher> app_sync_ui_state_watcher_; |
149 #endif | 151 #endif |
150 | 152 |
151 ObserverList<app_list::AppListViewDelegateObserver> observers_; | 153 ObserverList<app_list::AppListViewDelegateObserver> observers_; |
152 | 154 |
153 // Used to track the SigninManagers that this instance is observing so that | 155 // Used to track the SigninManagers that this instance is observing so that |
154 // this instance can be removed as an observer on its destruction. | 156 // this instance can be removed as an observer on its destruction. |
155 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; | 157 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; |
156 | 158 |
157 // Window contents of the additional custom launcher page. May be NULL. | 159 // Window contents of additional custom launcher pages. |
158 scoped_ptr<apps::CustomLauncherPageContents> custom_page_contents_; | 160 ScopedVector<apps::CustomLauncherPageContents> custom_page_contents_; |
159 | 161 |
160 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 162 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
161 }; | 163 }; |
162 | 164 |
163 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 165 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |