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 "chrome/browser/ui/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include "apps/shell_window.h" | 7 #include "apps/shell_window.h" |
8 #include "apps/shell_window_registry.h" | 8 #include "apps/shell_window_registry.h" |
| 9 #include "ash/content_support/gpu_support_impl.h" |
9 #include "ash/host/root_window_host_factory.h" | 10 #include "ash/host/root_window_host_factory.h" |
10 #include "ash/magnifier/magnifier_constants.h" | 11 #include "ash/magnifier/magnifier_constants.h" |
11 #include "ash/wm/window_state.h" | 12 #include "ash/wm/window_state.h" |
12 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
13 #include "base/command_line.h" | 14 #include "base/command_line.h" |
14 #include "chrome/browser/app_mode/app_mode_utils.h" | 15 #include "chrome/browser/app_mode/app_mode_utils.h" |
15 #include "chrome/browser/lifetime/application_lifetime.h" | 16 #include "chrome/browser/lifetime/application_lifetime.h" |
16 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
17 #include "chrome/browser/ui/app_list/app_list_service.h" | 18 #include "chrome/browser/ui/app_list/app_list_service.h" |
18 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" | 19 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 if (item_delegate && item) | 141 if (item_delegate && item) |
141 return new LauncherContextMenu(shelf_delegate_, item_delegate, item, root); | 142 return new LauncherContextMenu(shelf_delegate_, item_delegate, item, root); |
142 | 143 |
143 return new LauncherContextMenu(shelf_delegate_, root); | 144 return new LauncherContextMenu(shelf_delegate_, root); |
144 } | 145 } |
145 | 146 |
146 ash::WindowTreeHostFactory* ChromeShellDelegate::CreateWindowTreeHostFactory() { | 147 ash::WindowTreeHostFactory* ChromeShellDelegate::CreateWindowTreeHostFactory() { |
147 return ash::WindowTreeHostFactory::Create(); | 148 return ash::WindowTreeHostFactory::Create(); |
148 } | 149 } |
149 | 150 |
| 151 ash::GPUSupport* ChromeShellDelegate::CreateGPUSupport() { |
| 152 // Chrome uses real GPU support. |
| 153 return new ash::GPUSupportImpl; |
| 154 } |
| 155 |
150 base::string16 ChromeShellDelegate::GetProductName() const { | 156 base::string16 ChromeShellDelegate::GetProductName() const { |
151 return l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); | 157 return l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
152 } | 158 } |
153 | 159 |
154 keyboard::KeyboardControllerProxy* | 160 keyboard::KeyboardControllerProxy* |
155 ChromeShellDelegate::CreateKeyboardControllerProxy() { | 161 ChromeShellDelegate::CreateKeyboardControllerProxy() { |
156 return new AshKeyboardControllerProxy(); | 162 return new AshKeyboardControllerProxy(); |
157 } | 163 } |
OLD | NEW |