| 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/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/default_accessibility_delegate.h" | 8 #include "ash/default_accessibility_delegate.h" |
| 9 #include "ash/default_user_wallpaper_delegate.h" | 9 #include "ash/default_user_wallpaper_delegate.h" |
| 10 #include "ash/gpu_support_stub.h" | 10 #include "ash/gpu_support_stub.h" |
| 11 #include "ash/host/window_tree_host_factory.h" | |
| 12 #include "ash/media_delegate.h" | 11 #include "ash/media_delegate.h" |
| 13 #include "ash/new_window_delegate.h" | 12 #include "ash/new_window_delegate.h" |
| 14 #include "ash/session_state_delegate.h" | 13 #include "ash/session_state_delegate.h" |
| 15 #include "ash/session_state_delegate_stub.h" | 14 #include "ash/session_state_delegate_stub.h" |
| 16 #include "ash/shell/context_menu.h" | 15 #include "ash/shell/context_menu.h" |
| 17 #include "ash/shell/example_factory.h" | 16 #include "ash/shell/example_factory.h" |
| 18 #include "ash/shell/keyboard_controller_proxy_stub.h" | 17 #include "ash/shell/keyboard_controller_proxy_stub.h" |
| 19 #include "ash/shell/shelf_delegate_impl.h" | 18 #include "ash/shell/shelf_delegate_impl.h" |
| 20 #include "ash/shell/toplevel_window.h" | 19 #include "ash/shell/toplevel_window.h" |
| 21 #include "ash/shell_window_ids.h" | 20 #include "ash/shell_window_ids.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return new MediaDelegateImpl; | 160 return new MediaDelegateImpl; |
| 162 } | 161 } |
| 163 | 162 |
| 164 ui::MenuModel* ShellDelegateImpl::CreateContextMenu( | 163 ui::MenuModel* ShellDelegateImpl::CreateContextMenu( |
| 165 aura::Window* root, | 164 aura::Window* root, |
| 166 ash::ShelfItemDelegate* item_delegate, | 165 ash::ShelfItemDelegate* item_delegate, |
| 167 ash::ShelfItem* item) { | 166 ash::ShelfItem* item) { |
| 168 return new ContextMenu(root); | 167 return new ContextMenu(root); |
| 169 } | 168 } |
| 170 | 169 |
| 171 WindowTreeHostFactory* ShellDelegateImpl::CreateWindowTreeHostFactory() { | |
| 172 return WindowTreeHostFactory::Create(); | |
| 173 } | |
| 174 | |
| 175 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { | 170 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { |
| 176 // Real GPU support depends on src/content, so just use a stub. | 171 // Real GPU support depends on src/content, so just use a stub. |
| 177 return new GPUSupportStub; | 172 return new GPUSupportStub; |
| 178 } | 173 } |
| 179 | 174 |
| 180 base::string16 ShellDelegateImpl::GetProductName() const { | 175 base::string16 ShellDelegateImpl::GetProductName() const { |
| 181 return base::string16(); | 176 return base::string16(); |
| 182 } | 177 } |
| 183 | 178 |
| 184 } // namespace shell | 179 } // namespace shell |
| 185 } // namespace ash | 180 } // namespace ash |
| OLD | NEW |