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

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

Issue 2279533002: ash: Convert ShelfDelegate to use WmShelf* instead of Shelf* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: curlies Created 4 years, 3 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
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/test/test_shelf_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/app_list/app_list_presenter_delegate_factory.h" 7 #include "ash/app_list/app_list_presenter_delegate_factory.h"
8 #include "ash/common/accessibility_delegate.h" 8 #include "ash/common/accessibility_delegate.h"
9 #include "ash/common/default_accessibility_delegate.h" 9 #include "ash/common/default_accessibility_delegate.h"
10 #include "ash/common/gpu_support_stub.h" 10 #include "ash/common/gpu_support_stub.h"
11 #include "ash/common/media_delegate.h" 11 #include "ash/common/media_delegate.h"
12 #include "ash/common/new_window_delegate.h" 12 #include "ash/common/new_window_delegate.h"
13 #include "ash/common/palette_delegate.h" 13 #include "ash/common/palette_delegate.h"
14 #include "ash/common/session/session_state_delegate.h" 14 #include "ash/common/session/session_state_delegate.h"
15 #include "ash/common/shell_window_ids.h" 15 #include "ash/common/shell_window_ids.h"
16 #include "ash/common/system/tray/default_system_tray_delegate.h" 16 #include "ash/common/system/tray/default_system_tray_delegate.h"
17 #include "ash/common/wm/window_state.h" 17 #include "ash/common/wm/window_state.h"
18 #include "ash/default_user_wallpaper_delegate.h" 18 #include "ash/default_user_wallpaper_delegate.h"
19 #include "ash/shell.h" 19 #include "ash/shell.h"
20 #include "ash/shell/context_menu.h" 20 #include "ash/shell/context_menu.h"
21 #include "ash/shell/example_factory.h" 21 #include "ash/shell/example_factory.h"
22 #include "ash/shell/shelf_delegate_impl.h"
23 #include "ash/shell/toplevel_window.h" 22 #include "ash/shell/toplevel_window.h"
24 #include "ash/test/test_keyboard_ui.h" 23 #include "ash/test/test_keyboard_ui.h"
24 #include "ash/test/test_shelf_delegate.h"
25 #include "base/memory/ptr_util.h" 25 #include "base/memory/ptr_util.h"
26 #include "base/message_loop/message_loop.h" 26 #include "base/message_loop/message_loop.h"
27 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
28 #include "components/user_manager/user_info_impl.h" 28 #include "components/user_manager/user_info_impl.h"
29 #include "ui/app_list/app_list_view_delegate.h" 29 #include "ui/app_list/app_list_view_delegate.h"
30 #include "ui/app_list/presenter/app_list_presenter_impl.h" 30 #include "ui/app_list/presenter/app_list_presenter_impl.h"
31 #include "ui/app_list/presenter/app_list_view_delegate_factory.h" 31 #include "ui/app_list/presenter/app_list_view_delegate_factory.h"
32 #include "ui/aura/window.h" 32 #include "ui/aura/window.h"
33 #include "ui/gfx/image/image.h" 33 #include "ui/gfx/image/image.h"
34 #include "ui/gfx/image/image_skia.h" 34 #include "ui/gfx/image/image_skia.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 app_list::AppListPresenter* ShellDelegateImpl::GetAppListPresenter() { 224 app_list::AppListPresenter* ShellDelegateImpl::GetAppListPresenter() {
225 if (!app_list_presenter_) { 225 if (!app_list_presenter_) {
226 app_list_presenter_.reset(new app_list::AppListPresenterImpl( 226 app_list_presenter_.reset(new app_list::AppListPresenterImpl(
227 app_list_presenter_delegate_factory_.get())); 227 app_list_presenter_delegate_factory_.get()));
228 } 228 }
229 return app_list_presenter_.get(); 229 return app_list_presenter_.get();
230 } 230 }
231 231
232 ShelfDelegate* ShellDelegateImpl::CreateShelfDelegate(ShelfModel* model) { 232 ShelfDelegate* ShellDelegateImpl::CreateShelfDelegate(ShelfModel* model) {
233 shelf_delegate_ = new ShelfDelegateImpl(); 233 shelf_delegate_ = new test::TestShelfDelegate(model);
234 return shelf_delegate_; 234 return shelf_delegate_;
235 } 235 }
236 236
237 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate() { 237 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate() {
238 return new DefaultSystemTrayDelegate; 238 return new DefaultSystemTrayDelegate;
239 } 239 }
240 240
241 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { 241 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() {
242 return new DefaultUserWallpaperDelegate(); 242 return new DefaultUserWallpaperDelegate();
243 } 243 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 base::string16 ShellDelegateImpl::GetProductName() const { 275 base::string16 ShellDelegateImpl::GetProductName() const {
276 return base::string16(); 276 return base::string16();
277 } 277 }
278 278
279 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const { 279 gfx::Image ShellDelegateImpl::GetDeprecatedAcceleratorImage() const {
280 return gfx::Image(); 280 return gfx::Image();
281 } 281 }
282 282
283 } // namespace shell 283 } // namespace shell
284 } // namespace ash 284 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.h ('k') | ash/test/test_shelf_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698