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

Side by Side Diff: ash/test/test_shell_delegate.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: rebased Created 6 years, 8 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/test/test_shell_delegate.h" 5 #include "ash/test/test_shell_delegate.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "ash/default_accessibility_delegate.h" 9 #include "ash/default_accessibility_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/shell.h" 14 #include "ash/shell.h"
16 #include "ash/shell/keyboard_controller_proxy_stub.h" 15 #include "ash/shell/keyboard_controller_proxy_stub.h"
17 #include "ash/shell_window_ids.h" 16 #include "ash/shell_window_ids.h"
18 #include "ash/test/test_session_state_delegate.h" 17 #include "ash/test/test_session_state_delegate.h"
19 #include "ash/test/test_shelf_delegate.h" 18 #include "ash/test/test_shelf_delegate.h"
20 #include "ash/test/test_system_tray_delegate.h" 19 #include "ash/test/test_system_tray_delegate.h"
21 #include "ash/test/test_user_wallpaper_delegate.h" 20 #include "ash/test/test_user_wallpaper_delegate.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return new MediaDelegateImpl; 141 return new MediaDelegateImpl;
143 } 142 }
144 143
145 ui::MenuModel* TestShellDelegate::CreateContextMenu( 144 ui::MenuModel* TestShellDelegate::CreateContextMenu(
146 aura::Window* root, 145 aura::Window* root,
147 ash::ShelfItemDelegate* item_delegate, 146 ash::ShelfItemDelegate* item_delegate,
148 ash::ShelfItem* item) { 147 ash::ShelfItem* item) {
149 return NULL; 148 return NULL;
150 } 149 }
151 150
152 WindowTreeHostFactory* TestShellDelegate::CreateWindowTreeHostFactory() {
153 return WindowTreeHostFactory::Create();
154 }
155
156 GPUSupport* TestShellDelegate::CreateGPUSupport() { 151 GPUSupport* TestShellDelegate::CreateGPUSupport() {
157 // Real GPU support depends on src/content, so just use a stub. 152 // Real GPU support depends on src/content, so just use a stub.
158 return new GPUSupportStub; 153 return new GPUSupportStub;
159 } 154 }
160 155
161 base::string16 TestShellDelegate::GetProductName() const { 156 base::string16 TestShellDelegate::GetProductName() const {
162 return base::string16(); 157 return base::string16();
163 } 158 }
164 159
165 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() { 160 TestSessionStateDelegate* TestShellDelegate::test_session_state_delegate() {
166 return test_session_state_delegate_; 161 return test_session_state_delegate_;
167 } 162 }
168 163
169 } // namespace test 164 } // namespace test
170 } // namespace ash 165 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698