[M108 Migration] Support standard build for armv7hl architecture
[platform/framework/web/chromium-efl.git] / ash / ash_interfaces.cc
1 // Copyright 2019 The Chromium Authors
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<crosapi::mojom::CrosDisplayConfigController>
17         receiver) {
18   if (Shell::HasInstance())
19     Shell::Get()->cros_display_config()->BindReceiver(std::move(receiver));
20 }
21
22 void BindTrayAction(mojo::PendingReceiver<mojom::TrayAction> receiver) {
23   if (Shell::HasInstance())
24     Shell::Get()->tray_action()->BindReceiver(std::move(receiver));
25 }
26
27 }  // namespace ash