| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/sysui/sysui_application.h" | 5 #include "ash/sysui/sysui_application.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/common/material_design/material_design_controller.h" | 12 #include "ash/common/material_design/material_design_controller.h" |
| 13 #include "ash/common/shell_window_ids.h" | 13 #include "ash/common/shell_window_ids.h" |
| 14 #include "ash/common/wm_shell.h" |
| 14 #include "ash/desktop_background/desktop_background_controller.h" | 15 #include "ash/desktop_background/desktop_background_controller.h" |
| 15 #include "ash/display/display_manager.h" | 16 #include "ash/display/display_manager.h" |
| 16 #include "ash/host/ash_window_tree_host_init_params.h" | 17 #include "ash/host/ash_window_tree_host_init_params.h" |
| 17 #include "ash/host/ash_window_tree_host_platform.h" | 18 #include "ash/host/ash_window_tree_host_platform.h" |
| 18 #include "ash/public/interfaces/ash_window_type.mojom.h" | 19 #include "ash/public/interfaces/ash_window_type.mojom.h" |
| 19 #include "ash/public/interfaces/container.mojom.h" | 20 #include "ash/public/interfaces/container.mojom.h" |
| 20 #include "ash/root_window_settings.h" | 21 #include "ash/root_window_settings.h" |
| 21 #include "ash/shell.h" | 22 #include "ash/shell.h" |
| 22 #include "ash/shell_init_params.h" | 23 #include "ash/shell_init_params.h" |
| 23 #include "ash/sysui/app_list_presenter_mus.h" | 24 #include "ash/sysui/app_list_presenter_mus.h" |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 bool SysUIApplication::OnConnect(::shell::Connection* connection) { | 327 bool SysUIApplication::OnConnect(::shell::Connection* connection) { |
| 327 connection->AddInterface<mash::shelf::mojom::ShelfController>(this); | 328 connection->AddInterface<mash::shelf::mojom::ShelfController>(this); |
| 328 connection->AddInterface<mojom::WallpaperController>(this); | 329 connection->AddInterface<mojom::WallpaperController>(this); |
| 329 return true; | 330 return true; |
| 330 } | 331 } |
| 331 | 332 |
| 332 void SysUIApplication::Create( | 333 void SysUIApplication::Create( |
| 333 ::shell::Connection* connection, | 334 ::shell::Connection* connection, |
| 334 mash::shelf::mojom::ShelfControllerRequest request) { | 335 mash::shelf::mojom::ShelfControllerRequest request) { |
| 335 mash::shelf::mojom::ShelfController* shelf_controller = | 336 mash::shelf::mojom::ShelfController* shelf_controller = |
| 336 static_cast<ShelfDelegateMus*>(Shell::GetInstance()->GetShelfDelegate()); | 337 static_cast<ShelfDelegateMus*>(WmShell::Get()->shelf_delegate()); |
| 337 shelf_controller_bindings_.AddBinding(shelf_controller, std::move(request)); | 338 shelf_controller_bindings_.AddBinding(shelf_controller, std::move(request)); |
| 338 } | 339 } |
| 339 | 340 |
| 340 void SysUIApplication::Create(::shell::Connection* connection, | 341 void SysUIApplication::Create(::shell::Connection* connection, |
| 341 mojom::WallpaperControllerRequest request) { | 342 mojom::WallpaperControllerRequest request) { |
| 342 mojom::WallpaperController* wallpaper_controller = | 343 mojom::WallpaperController* wallpaper_controller = |
| 343 static_cast<UserWallpaperDelegateMus*>( | 344 static_cast<UserWallpaperDelegateMus*>( |
| 344 Shell::GetInstance()->user_wallpaper_delegate()); | 345 Shell::GetInstance()->user_wallpaper_delegate()); |
| 345 wallpaper_controller_bindings_.AddBinding(wallpaper_controller, | 346 wallpaper_controller_bindings_.AddBinding(wallpaper_controller, |
| 346 std::move(request)); | 347 std::move(request)); |
| 347 } | 348 } |
| 348 | 349 |
| 349 } // namespace sysui | 350 } // namespace sysui |
| 350 } // namespace ash | 351 } // namespace ash |
| OLD | NEW |