| 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/dbus_thread_manager_ash.h" |
| 12 #include "ash/common/login_status.h" | 13 #include "ash/common/login_status.h" |
| 13 #include "ash/common/material_design/material_design_controller.h" | 14 #include "ash/common/material_design/material_design_controller.h" |
| 14 #include "ash/common/shell_window_ids.h" | 15 #include "ash/common/shell_window_ids.h" |
| 15 #include "ash/common/wm_shell.h" | 16 #include "ash/common/wm_shell.h" |
| 16 #include "ash/display/display_manager.h" | 17 #include "ash/display/display_manager.h" |
| 17 #include "ash/host/ash_window_tree_host_init_params.h" | 18 #include "ash/host/ash_window_tree_host_init_params.h" |
| 18 #include "ash/host/ash_window_tree_host_platform.h" | 19 #include "ash/host/ash_window_tree_host_platform.h" |
| 19 #include "ash/public/interfaces/ash_window_type.mojom.h" | 20 #include "ash/public/interfaces/ash_window_type.mojom.h" |
| 20 #include "ash/public/interfaces/container.mojom.h" | 21 #include "ash/public/interfaces/container.mojom.h" |
| 21 #include "ash/root_window_settings.h" | 22 #include "ash/root_window_settings.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 #include "ui/display/screen.h" | 42 #include "ui/display/screen.h" |
| 42 #include "ui/message_center/message_center.h" | 43 #include "ui/message_center/message_center.h" |
| 43 #include "ui/platform_window/stub/stub_window.h" | 44 #include "ui/platform_window/stub/stub_window.h" |
| 44 #include "ui/views/mus/aura_init.h" | 45 #include "ui/views/mus/aura_init.h" |
| 45 #include "ui/views/mus/native_widget_mus.h" | 46 #include "ui/views/mus/native_widget_mus.h" |
| 46 #include "ui/views/mus/window_manager_connection.h" | 47 #include "ui/views/mus/window_manager_connection.h" |
| 47 #include "ui/views/views_delegate.h" | 48 #include "ui/views/views_delegate.h" |
| 48 | 49 |
| 49 #if defined(OS_CHROMEOS) | 50 #if defined(OS_CHROMEOS) |
| 50 #include "chromeos/audio/cras_audio_handler.h" | 51 #include "chromeos/audio/cras_audio_handler.h" |
| 51 #include "chromeos/dbus/dbus_thread_manager.h" | 52 // #include "chromeos/dbus/dbus_thread_manager.h" |
| 52 #include "device/bluetooth/dbus/bluez_dbus_manager.h" | 53 #include "device/bluetooth/dbus/bluez_dbus_manager.h" |
| 53 #endif | 54 #endif |
| 54 | 55 |
| 55 using views::ViewsDelegate; | 56 using views::ViewsDelegate; |
| 56 | 57 |
| 57 namespace ash { | 58 namespace ash { |
| 58 namespace sysui { | 59 namespace sysui { |
| 59 | 60 |
| 60 namespace { | 61 namespace { |
| 61 | 62 |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 ui::SCALE_FACTOR_200P); | 285 ui::SCALE_FACTOR_200P); |
| 285 } | 286 } |
| 286 } | 287 } |
| 287 | 288 |
| 288 void InitializeComponents() { | 289 void InitializeComponents() { |
| 289 message_center::MessageCenter::Initialize(); | 290 message_center::MessageCenter::Initialize(); |
| 290 | 291 |
| 291 #if defined(OS_CHROMEOS) | 292 #if defined(OS_CHROMEOS) |
| 292 chromeos::DBusThreadManager::Initialize(); | 293 chromeos::DBusThreadManager::Initialize(); |
| 293 bluez::BluezDBusManager::Initialize( | 294 bluez::BluezDBusManager::Initialize( |
| 294 chromeos::DBusThreadManager::Get()->GetSystemBus(), | 295 DBusThreadManagerAsh::Get()->GetSystemBus(), |
| 295 chromeos::DBusThreadManager::Get()->IsUsingStub( | 296 DBusThreadManagerAsh::Get()->IsUsingStub( |
| 296 chromeos::DBusClientBundle::BLUETOOTH)); | 297 chromeos::DBusClientBundle::BLUETOOTH)); |
| 297 chromeos::CrasAudioHandler::InitializeForTesting(); | 298 chromeos::CrasAudioHandler::InitializeForTesting(); |
| 298 #endif | 299 #endif |
| 299 } | 300 } |
| 300 | 301 |
| 301 private: | 302 private: |
| 302 scoped_refptr<base::SequencedWorkerPool> worker_pool_; | 303 scoped_refptr<base::SequencedWorkerPool> worker_pool_; |
| 303 std::unique_ptr<views::AuraInit> aura_init_; | 304 std::unique_ptr<views::AuraInit> aura_init_; |
| 304 ShellDelegateMus* ash_delegate_ = nullptr; | 305 ShellDelegateMus* ash_delegate_ = nullptr; |
| 305 std::unique_ptr<NativeWidgetFactory> native_widget_factory_; | 306 std::unique_ptr<NativeWidgetFactory> native_widget_factory_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 330 void SysUIApplication::Create(const ::shell::Identity& remote_identity, | 331 void SysUIApplication::Create(const ::shell::Identity& remote_identity, |
| 331 mojom::WallpaperControllerRequest request) { | 332 mojom::WallpaperControllerRequest request) { |
| 332 mojom::WallpaperController* wallpaper_controller = | 333 mojom::WallpaperController* wallpaper_controller = |
| 333 static_cast<WallpaperDelegateMus*>(WmShell::Get()->wallpaper_delegate()); | 334 static_cast<WallpaperDelegateMus*>(WmShell::Get()->wallpaper_delegate()); |
| 334 wallpaper_controller_bindings_.AddBinding(wallpaper_controller, | 335 wallpaper_controller_bindings_.AddBinding(wallpaper_controller, |
| 335 std::move(request)); | 336 std::move(request)); |
| 336 } | 337 } |
| 337 | 338 |
| 338 } // namespace sysui | 339 } // namespace sysui |
| 339 } // namespace ash | 340 } // namespace ash |
| OLD | NEW |