Upload upstream chromium 85.0.4183.84
[platform/framework/web/chromium-efl.git] / ash / ash_interfaces.cc
1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/public/ash_interfaces.h"
6
7 #include <utility>
8
9 #include "ash/display/cros_display_config.h"
10 #include "ash/shell.h"
11 #include "ash/tray_action/tray_action.h"
12
13 namespace ash {
14
15 void BindCrosDisplayConfigController(
16     mojo::PendingReceiver<mojom::CrosDisplayConfigController> receiver) {
17   if (Shell::HasInstance())
18     Shell::Get()->cros_display_config()->BindReceiver(std::move(receiver));
19 }
20
21 void BindTrayAction(mojo::PendingReceiver<mojom::TrayAction> receiver) {
22   if (Shell::HasInstance())
23     Shell::Get()->tray_action()->BindReceiver(std::move(receiver));
24 }
25
26 }  // namespace ash