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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 79 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
80 virtual void OpenSettings() OVERRIDE; | 80 virtual void OpenSettings() OVERRIDE; |
81 virtual void OpenHelp() OVERRIDE; | 81 virtual void OpenHelp() OVERRIDE; |
82 virtual void OpenFeedback() OVERRIDE; | 82 virtual void OpenFeedback() OVERRIDE; |
83 virtual void ToggleSpeechRecognition() OVERRIDE; | 83 virtual void ToggleSpeechRecognition() OVERRIDE; |
84 virtual void ShowForProfileByPath( | 84 virtual void ShowForProfileByPath( |
85 const base::FilePath& profile_path) OVERRIDE; | 85 const base::FilePath& profile_path) OVERRIDE; |
86 virtual content::WebContents* GetStartPageContents() OVERRIDE; | 86 virtual content::WebContents* GetStartPageContents() OVERRIDE; |
87 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; | 87 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; |
88 virtual const Users& GetUsers() const OVERRIDE; | 88 virtual const Users& GetUsers() const OVERRIDE; |
| 89 virtual bool ShouldCenterWindow() const OVERRIDE; |
89 virtual void AddObserver( | 90 virtual void AddObserver( |
90 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 91 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
91 virtual void RemoveObserver( | 92 virtual void RemoveObserver( |
92 app_list::AppListViewDelegateObserver* observer) OVERRIDE; | 93 app_list::AppListViewDelegateObserver* observer) OVERRIDE; |
93 | 94 |
94 // Overridden from app_list::StartPageObserver: | 95 // Overridden from app_list::StartPageObserver: |
95 virtual void OnSpeechResult(const base::string16& result, | 96 virtual void OnSpeechResult(const base::string16& result, |
96 bool is_final) OVERRIDE; | 97 bool is_final) OVERRIDE; |
97 virtual void OnSpeechSoundLevelChanged(int16 level) OVERRIDE; | 98 virtual void OnSpeechSoundLevelChanged(int16 level) OVERRIDE; |
98 virtual void OnSpeechRecognitionStateChanged( | 99 virtual void OnSpeechRecognitionStateChanged( |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ObserverList<app_list::AppListViewDelegateObserver> observers_; | 141 ObserverList<app_list::AppListViewDelegateObserver> observers_; |
141 | 142 |
142 // Used to track the SigninManagers that this instance is observing so that | 143 // Used to track the SigninManagers that this instance is observing so that |
143 // this instance can be removed as an observer on its destruction. | 144 // this instance can be removed as an observer on its destruction. |
144 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; | 145 ScopedObserver<SigninManagerBase, AppListViewDelegate> scoped_observer_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); | 147 DISALLOW_COPY_AND_ASSIGN(AppListViewDelegate); |
147 }; | 148 }; |
148 | 149 |
149 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 150 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |