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/gpu_support_stub.h" | 10 #include "ash/common/gpu_support_stub.h" |
11 #include "ash/common/media_delegate.h" | 11 #include "ash/common/media_delegate.h" |
12 #include "ash/common/session/session_state_delegate.h" | 12 #include "ash/common/session/session_state_delegate.h" |
13 #include "ash/common/shell_window_ids.h" | 13 #include "ash/common/shell_window_ids.h" |
14 #include "ash/common/system/tray/default_system_tray_delegate.h" | 14 #include "ash/common/system/tray/default_system_tray_delegate.h" |
15 #include "ash/common/wm/window_state.h" | 15 #include "ash/common/wm/window_state.h" |
16 #include "ash/default_user_wallpaper_delegate.h" | 16 #include "ash/default_user_wallpaper_delegate.h" |
17 #include "ash/new_window_delegate.h" | 17 #include "ash/new_window_delegate.h" |
18 #include "ash/pointer_down_watcher_delegate_aura.h" | 18 #include "ash/pointer_watcher_delegate_aura.h" |
19 #include "ash/shell.h" | 19 #include "ash/shell.h" |
20 #include "ash/shell/context_menu.h" | 20 #include "ash/shell/context_menu.h" |
21 #include "ash/shell/example_factory.h" | 21 #include "ash/shell/example_factory.h" |
22 #include "ash/shell/shelf_delegate_impl.h" | 22 #include "ash/shell/shelf_delegate_impl.h" |
23 #include "ash/shell/toplevel_window.h" | 23 #include "ash/shell/toplevel_window.h" |
24 #include "ash/test/test_keyboard_ui.h" | 24 #include "ash/test/test_keyboard_ui.h" |
25 #include "base/memory/ptr_util.h" | 25 #include "base/memory/ptr_util.h" |
26 #include "base/message_loop/message_loop.h" | 26 #include "base/message_loop/message_loop.h" |
27 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
28 #include "components/user_manager/user_info_impl.h" | 28 #include "components/user_manager/user_info_impl.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 236 } |
237 | 237 |
238 ash::NewWindowDelegate* ShellDelegateImpl::CreateNewWindowDelegate() { | 238 ash::NewWindowDelegate* ShellDelegateImpl::CreateNewWindowDelegate() { |
239 return new NewWindowDelegateImpl; | 239 return new NewWindowDelegateImpl; |
240 } | 240 } |
241 | 241 |
242 ash::MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() { | 242 ash::MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() { |
243 return new MediaDelegateImpl; | 243 return new MediaDelegateImpl; |
244 } | 244 } |
245 | 245 |
246 std::unique_ptr<ash::PointerDownWatcherDelegate> | 246 std::unique_ptr<ash::PointerWatcherDelegate> |
247 ShellDelegateImpl::CreatePointerDownWatcherDelegate() { | 247 ShellDelegateImpl::CreatePointerWatcherDelegate() { |
248 return base::WrapUnique(new PointerDownWatcherDelegateAura); | 248 return base::WrapUnique(new PointerWatcherDelegateAura); |
249 } | 249 } |
250 | 250 |
251 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(WmShelf* wm_shelf, | 251 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(WmShelf* wm_shelf, |
252 const ShelfItem* item) { | 252 const ShelfItem* item) { |
253 return new ContextMenu(wm_shelf); | 253 return new ContextMenu(wm_shelf); |
254 } | 254 } |
255 | 255 |
256 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { | 256 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { |
257 // Real GPU support depends on src/content, so just use a stub. | 257 // Real GPU support depends on src/content, so just use a stub. |
258 return new GPUSupportStub; | 258 return new GPUSupportStub; |
259 } | 259 } |
260 | 260 |
261 base::string16 ShellDelegateImpl::GetProductName() const { | 261 base::string16 ShellDelegateImpl::GetProductName() const { |
262 return base::string16(); | 262 return base::string16(); |
263 } | 263 } |
264 | 264 |
265 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { | 265 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { |
266 return gfx::Image(); | 266 return gfx::Image(); |
267 } | 267 } |
268 | 268 |
269 } // namespace shell | 269 } // namespace shell |
270 } // namespace ash | 270 } // namespace ash |
OLD | NEW |