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 #include "ash/shell/shell_delegate_impl.h" | 5 #include "ash/shell/shell_delegate_impl.h" |
6 | 6 |
7 #include "ash/app_list/app_list_presenter_delegate_factory.h" | 7 #include "ash/app_list/app_list_presenter_delegate_factory.h" |
8 #include "ash/common/accessibility_delegate.h" | 8 #include "ash/common/accessibility_delegate.h" |
9 #include "ash/common/default_accessibility_delegate.h" | 9 #include "ash/common/default_accessibility_delegate.h" |
10 #include "ash/common/session/session_state_delegate.h" | 10 #include "ash/common/session/session_state_delegate.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 185 } |
186 | 186 |
187 bool ShellDelegateImpl::CanShowWindowForUser(WmWindow* window) const { | 187 bool ShellDelegateImpl::CanShowWindowForUser(WmWindow* window) const { |
188 return true; | 188 return true; |
189 } | 189 } |
190 | 190 |
191 bool ShellDelegateImpl::IsForceMaximizeOnFirstRun() const { | 191 bool ShellDelegateImpl::IsForceMaximizeOnFirstRun() const { |
192 return false; | 192 return false; |
193 } | 193 } |
194 | 194 |
195 void ShellDelegateImpl::PreInit() { | 195 void ShellDelegateImpl::PreInit() {} |
196 } | |
197 | 196 |
198 void ShellDelegateImpl::PreShutdown() { | 197 void ShellDelegateImpl::PreShutdown() {} |
199 } | |
200 | 198 |
201 void ShellDelegateImpl::Exit() { | 199 void ShellDelegateImpl::Exit() { |
202 base::MessageLoop::current()->QuitWhenIdle(); | 200 base::MessageLoop::current()->QuitWhenIdle(); |
203 } | 201 } |
204 | 202 |
205 keyboard::KeyboardUI* ShellDelegateImpl::CreateKeyboardUI() { | 203 keyboard::KeyboardUI* ShellDelegateImpl::CreateKeyboardUI() { |
206 return new TestKeyboardUI; | 204 return new TestKeyboardUI; |
207 } | 205 } |
208 | 206 |
209 void ShellDelegateImpl::VirtualKeyboardActivated(bool activated) { | 207 void ShellDelegateImpl::VirtualKeyboardActivated(bool activated) {} |
210 } | |
211 | 208 |
212 void ShellDelegateImpl::AddVirtualKeyboardStateObserver( | 209 void ShellDelegateImpl::AddVirtualKeyboardStateObserver( |
213 VirtualKeyboardStateObserver* observer) { | 210 VirtualKeyboardStateObserver* observer) {} |
214 } | |
215 | 211 |
216 void ShellDelegateImpl::RemoveVirtualKeyboardStateObserver( | 212 void ShellDelegateImpl::RemoveVirtualKeyboardStateObserver( |
217 VirtualKeyboardStateObserver* observer) { | 213 VirtualKeyboardStateObserver* observer) {} |
218 } | |
219 | 214 |
220 void ShellDelegateImpl::OpenUrl(const GURL& url) {} | 215 void ShellDelegateImpl::OpenUrl(const GURL& url) {} |
221 | 216 |
222 app_list::AppListPresenter* ShellDelegateImpl::GetAppListPresenter() { | 217 app_list::AppListPresenter* ShellDelegateImpl::GetAppListPresenter() { |
223 if (!app_list_presenter_) { | 218 if (!app_list_presenter_) { |
224 app_list_presenter_.reset(new app_list::AppListPresenterImpl( | 219 app_list_presenter_.reset(new app_list::AppListPresenterImpl( |
225 app_list_presenter_delegate_factory_.get())); | 220 app_list_presenter_delegate_factory_.get())); |
226 } | 221 } |
227 return app_list_presenter_.get(); | 222 return app_list_presenter_.get(); |
228 } | 223 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 base::string16 ShellDelegateImpl::GetProductName() const { | 269 base::string16 ShellDelegateImpl::GetProductName() const { |
275 return base::string16(); | 270 return base::string16(); |
276 } | 271 } |
277 | 272 |
278 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { | 273 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { |
279 return gfx::Image(); | 274 return gfx::Image(); |
280 } | 275 } |
281 | 276 |
282 } // namespace shell | 277 } // namespace shell |
283 } // namespace ash | 278 } // namespace ash |
OLD | NEW |