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

Unified Diff: ash/common/mojo_interface_factory.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/mojo_interface_factory.h ('k') | ash/common/multi_profile_uma.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/mojo_interface_factory.cc
diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc
deleted file mode 100644
index f8a6b0fb157e872cb73e8de676deb48577fd84b1..0000000000000000000000000000000000000000
--- a/ash/common/mojo_interface_factory.cc
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/mojo_interface_factory.h"
-
-#include <utility>
-
-#include "ash/common/accelerators/accelerator_controller.h"
-#include "ash/common/cast_config_controller.h"
-#include "ash/common/media_controller.h"
-#include "ash/common/new_window_controller.h"
-#include "ash/common/session/session_controller.h"
-#include "ash/common/shelf/shelf_controller.h"
-#include "ash/common/shell_delegate.h"
-#include "ash/common/shutdown_controller.h"
-#include "ash/common/wallpaper/wallpaper_controller.h"
-#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
-#include "ash/common/wm_shell.h"
-#include "ash/system/locale/locale_notification_controller.h"
-#include "ash/system/network/vpn_list.h"
-#include "ash/system/tray/system_tray_controller.h"
-#include "base/bind.h"
-#include "services/service_manager/public/cpp/interface_registry.h"
-#include "ui/app_list/presenter/app_list.h"
-
-namespace ash {
-
-namespace {
-
-void BindAcceleratorControllerRequestOnMainThread(
- mojom::AcceleratorControllerRequest request) {
- WmShell::Get()->accelerator_controller()->BindRequest(std::move(request));
-}
-
-void BindAppListRequestOnMainThread(app_list::mojom::AppListRequest request) {
- WmShell::Get()->app_list()->BindRequest(std::move(request));
-}
-
-void BindCastConfigOnMainThread(mojom::CastConfigRequest request) {
- WmShell::Get()->cast_config()->BindRequest(std::move(request));
-}
-
-void BindLocaleNotificationControllerOnMainThread(
- mojom::LocaleNotificationControllerRequest request) {
- WmShell::Get()->locale_notification_controller()->BindRequest(
- std::move(request));
-}
-
-void BindMediaControllerRequestOnMainThread(
- mojom::MediaControllerRequest request) {
- WmShell::Get()->media_controller()->BindRequest(std::move(request));
-}
-
-void BindNewWindowControllerRequestOnMainThread(
- mojom::NewWindowControllerRequest request) {
- WmShell::Get()->new_window_controller()->BindRequest(std::move(request));
-}
-
-void BindSessionControllerRequestOnMainThread(
- mojom::SessionControllerRequest request) {
- WmShell::Get()->session_controller()->BindRequest(std::move(request));
-}
-
-void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) {
- WmShell::Get()->shelf_controller()->BindRequest(std::move(request));
-}
-
-void BindShutdownControllerRequestOnMainThread(
- mojom::ShutdownControllerRequest request) {
- WmShell::Get()->shutdown_controller()->BindRequest(std::move(request));
-}
-
-void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) {
- WmShell::Get()->system_tray_controller()->BindRequest(std::move(request));
-}
-
-void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
- WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
-}
-
-void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
- WmShell::Get()->vpn_list()->BindRequest(std::move(request));
-}
-
-void BindWallpaperRequestOnMainThread(
- mojom::WallpaperControllerRequest request) {
- WmShell::Get()->wallpaper_controller()->BindRequest(std::move(request));
-}
-
-} // namespace
-
-namespace mojo_interface_factory {
-
-void RegisterInterfaces(
- service_manager::InterfaceRegistry* registry,
- scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
- registry->AddInterface(
- base::Bind(&BindAcceleratorControllerRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindAppListRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindCastConfigOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(
- base::Bind(&BindLocaleNotificationControllerOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindMediaControllerRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(
- base::Bind(&BindNewWindowControllerRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindSessionControllerRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
- main_thread_task_runner);
- registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),
- main_thread_task_runner);
-}
-
-} // namespace mojo_interface_factory
-
-} // namespace ash
« no previous file with comments | « ash/common/mojo_interface_factory.h ('k') | ash/common/multi_profile_uma.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698