Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: ash/shell/shell_delegate_impl.cc

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return new MediaDelegateImpl; 149 return new MediaDelegateImpl;
151 } 150 }
152 151
153 ui::MenuModel* ShellDelegateImpl::CreateContextMenu( 152 ui::MenuModel* ShellDelegateImpl::CreateContextMenu(
154 aura::Window* root, 153 aura::Window* root,
155 ash::ShelfItemDelegate* item_delegate, 154 ash::ShelfItemDelegate* item_delegate,
156 ash::ShelfItem* item) { 155 ash::ShelfItem* item) {
157 return new ContextMenu(root); 156 return new ContextMenu(root);
158 } 157 }
159 158
160 WindowTreeHostFactory* ShellDelegateImpl::CreateWindowTreeHostFactory() {
161 return WindowTreeHostFactory::Create();
162 }
163
164 GPUSupport* ShellDelegateImpl::CreateGPUSupport() { 159 GPUSupport* ShellDelegateImpl::CreateGPUSupport() {
165 // Real GPU support depends on src/content, so just use a stub. 160 // Real GPU support depends on src/content, so just use a stub.
166 return new GPUSupportStub; 161 return new GPUSupportStub;
167 } 162 }
168 163
169 base::string16 ShellDelegateImpl::GetProductName() const { 164 base::string16 ShellDelegateImpl::GetProductName() const {
170 return base::string16(); 165 return base::string16();
171 } 166 }
172 167
173 } // namespace shell 168 } // namespace shell
174 } // namespace ash 169 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698