| 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/new_window_delegate.h" | 12 #include "ash/common/new_window_delegate.h" |
| 13 #include "ash/common/palette_delegate.h" | 13 #include "ash/common/palette_delegate.h" |
| 14 #include "ash/common/session/session_state_delegate.h" | 14 #include "ash/common/session/session_state_delegate.h" |
| 15 #include "ash/common/shell_window_ids.h" | 15 #include "ash/common/shell_window_ids.h" |
| 16 #include "ash/common/system/tray/default_system_tray_delegate.h" | 16 #include "ash/common/system/tray/default_system_tray_delegate.h" |
| 17 #include "ash/common/wm/window_state.h" | 17 #include "ash/common/wm/window_state.h" |
| 18 #include "ash/default_user_wallpaper_delegate.h" | 18 #include "ash/default_user_wallpaper_delegate.h" |
| 19 #include "ash/pointer_watcher_delegate_aura.h" | |
| 20 #include "ash/shell.h" | 19 #include "ash/shell.h" |
| 21 #include "ash/shell/context_menu.h" | 20 #include "ash/shell/context_menu.h" |
| 22 #include "ash/shell/example_factory.h" | 21 #include "ash/shell/example_factory.h" |
| 23 #include "ash/shell/shelf_delegate_impl.h" | 22 #include "ash/shell/shelf_delegate_impl.h" |
| 24 #include "ash/shell/toplevel_window.h" | 23 #include "ash/shell/toplevel_window.h" |
| 25 #include "ash/test/test_keyboard_ui.h" | 24 #include "ash/test/test_keyboard_ui.h" |
| 26 #include "base/memory/ptr_util.h" | 25 #include "base/memory/ptr_util.h" |
| 27 #include "base/message_loop/message_loop.h" | 26 #include "base/message_loop/message_loop.h" |
| 28 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
| 29 #include "components/user_manager/user_info_impl.h" | 28 #include "components/user_manager/user_info_impl.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 } | 249 } |
| 251 | 250 |
| 252 ash::MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() { | 251 ash::MediaDelegate* ShellDelegateImpl::CreateMediaDelegate() { |
| 253 return new MediaDelegateImpl; | 252 return new MediaDelegateImpl; |
| 254 } | 253 } |
| 255 | 254 |
| 256 std::unique_ptr<PaletteDelegate> ShellDelegateImpl::CreatePaletteDelegate() { | 255 std::unique_ptr<PaletteDelegate> ShellDelegateImpl::CreatePaletteDelegate() { |
| 257 return base::MakeUnique<PaletteDelegateImpl>(); | 256 return base::MakeUnique<PaletteDelegateImpl>(); |
| 258 } | 257 } |
| 259 | 258 |
| 260 std::unique_ptr<ash::PointerWatcherDelegate> | |
| 261 ShellDelegateImpl::CreatePointerWatcherDelegate() { | |
| 262 return base::WrapUnique(new PointerWatcherDelegateAura); | |
| 263 } | |
| 264 | |
| 265 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(WmShelf* wm_shelf, | 259 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(WmShelf* wm_shelf, |
| 266 const ShelfItem* item) { | 260 const ShelfItem* item) { |
| 267 return new ContextMenu(wm_shelf); | 261 return new ContextMenu(wm_shelf); |
| 268 } | 262 } |
| 269 | 263 |
| 270 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { | 264 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { |
| 271 // Real GPU support depends on src/content, so just use a stub. | 265 // Real GPU support depends on src/content, so just use a stub. |
| 272 return new GPUSupportStub; | 266 return new GPUSupportStub; |
| 273 } | 267 } |
| 274 | 268 |
| 275 base::string16 ShellDelegateImpl::GetProductName() const { | 269 base::string16 ShellDelegateImpl::GetProductName() const { |
| 276 return base::string16(); | 270 return base::string16(); |
| 277 } | 271 } |
| 278 | 272 |
| 279 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { | 273 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { |
| 280 return gfx::Image(); | 274 return gfx::Image(); |
| 281 } | 275 } |
| 282 | 276 |
| 283 } // namespace shell | 277 } // namespace shell |
| 284 } // namespace ash | 278 } // namespace ash |
| OLD | NEW |