| 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_wallpaper_delegate.h" | 9 #include "ash/default_wallpaper_delegate.h" |
| 10 #include "ash/gpu_support_stub.h" | 10 #include "ash/gpu_support_stub.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 AccessibilityDelegate* ShellDelegateImpl::CreateAccessibilityDelegate() { | 144 AccessibilityDelegate* ShellDelegateImpl::CreateAccessibilityDelegate() { |
| 145 return new DefaultAccessibilityDelegate; | 145 return new DefaultAccessibilityDelegate; |
| 146 } | 146 } |
| 147 | 147 |
| 148 std::unique_ptr<PaletteDelegate> ShellDelegateImpl::CreatePaletteDelegate() { | 148 std::unique_ptr<PaletteDelegate> ShellDelegateImpl::CreatePaletteDelegate() { |
| 149 return base::MakeUnique<PaletteDelegateImpl>(); | 149 return base::MakeUnique<PaletteDelegateImpl>(); |
| 150 } | 150 } |
| 151 | 151 |
| 152 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(WmShelf* wm_shelf, | 152 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(Shelf* shelf, |
| 153 const ShelfItem* item) { | 153 const ShelfItem* item) { |
| 154 return new ContextMenu(wm_shelf); | 154 return new ContextMenu(shelf); |
| 155 } | 155 } |
| 156 | 156 |
| 157 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { | 157 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { |
| 158 // Real GPU support depends on src/content, so just use a stub. | 158 // Real GPU support depends on src/content, so just use a stub. |
| 159 return new GPUSupportStub; | 159 return new GPUSupportStub; |
| 160 } | 160 } |
| 161 | 161 |
| 162 base::string16 ShellDelegateImpl::GetProductName() const { | 162 base::string16 ShellDelegateImpl::GetProductName() const { |
| 163 return base::string16(); | 163 return base::string16(); |
| 164 } | 164 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 176 return true; | 176 return true; |
| 177 } | 177 } |
| 178 | 178 |
| 179 void ShellDelegateImpl::SetTouchscreenEnabledInPrefs(bool enabled, | 179 void ShellDelegateImpl::SetTouchscreenEnabledInPrefs(bool enabled, |
| 180 bool use_local_state) {} | 180 bool use_local_state) {} |
| 181 | 181 |
| 182 void ShellDelegateImpl::UpdateTouchscreenStatusFromPrefs() {} | 182 void ShellDelegateImpl::UpdateTouchscreenStatusFromPrefs() {} |
| 183 | 183 |
| 184 } // namespace shell | 184 } // namespace shell |
| 185 } // namespace ash | 185 } // namespace ash |
| OLD | NEW |