blob: 7765a023adf6a8493f5431ae1f69cc6c881d338d [file] [log] [blame]
// Copyright 2022 The Fuchsia 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: [ "//src/ui/meta/ui_routes_base.shard.cml" ],
children: [
{
name: "ui",
url: "fuchsia-pkg://fuchsia.com/ui#meta/ui.cm",
environment: "#core-env",
},
],
offer: [
{
config: [ "fuchsia.power.SuspendEnabled" ],
from: "parent",
to: "#ui",
},
{
protocol: [ "fuchsia.scheduler.RoleManager" ],
from: "parent",
to: "#ui",
},
{
protocol: [
"fuchsia.lightsensor.Sensor",
"fuchsia.session.scene.Manager",
],
from: "#ui",
to: "self/toolbox",
target_availability: "unknown",
},
// Routes from optional shards.
// All of these routes should be marked `source_availability: "unknown"`
//
// PLEASE KEEP THESE ALPHABETICAL IN TERMS OF "FROM".
{
protocol: [ "fuchsia.ui.brightness.Control" ],
from: "#brightness_manager",
to: "#ui",
source_availability: "unknown",
availability: "optional",
},
{
protocol: [ "fuchsia.factory.MiscFactoryStoreProvider" ],
from: "#factory_store_providers",
to: "#ui",
source_availability: "unknown",
},
{
protocol: [
"fuchsia.settings.Keyboard",
"fuchsia.settings.Light",
],
from: "#setui_service",
to: "#ui",
source_availability: "unknown",
},
{
protocol: [ "fuchsia.media.sounds.Player" ],
from: "#soundplayer",
to: "#ui",
source_availability: "unknown",
},
{
protocol: [ "fuchsia.power.system.ActivityGovernor" ],
from: "parent",
to: "#ui",
source_availability: "unknown",
availability: "optional",
},
],
}