ash_interfaces.cc 764 B

1234567891011121314151617181920212223242526
  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. #include "ash/public/ash_interfaces.h"
  5. #include <utility>
  6. #include "ash/display/cros_display_config.h"
  7. #include "ash/shell.h"
  8. #include "ash/tray_action/tray_action.h"
  9. namespace ash {
  10. void BindCrosDisplayConfigController(
  11. mojo::PendingReceiver<mojom::CrosDisplayConfigController> receiver) {
  12. if (Shell::HasInstance())
  13. Shell::Get()->cros_display_config()->BindReceiver(std::move(receiver));
  14. }
  15. void BindTrayAction(mojo::PendingReceiver<mojom::TrayAction> receiver) {
  16. if (Shell::HasInstance())
  17. Shell::Get()->tray_action()->BindReceiver(std::move(receiver));
  18. }
  19. } // namespace ash