blob: 58f54088788a0a2aa3a503168fdf1f600e1608bd [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_minimal.cm",
environment: "#core-env",
},
],
// Protocols used from a child are routed to the v1 sys realm.
// See also //src/sys/appmgr/meta/appmgr.core_shard.cml
use: [
{
protocol: [ "fuchsia.session.scene.Manager" ],
from: "#ui",
dependency: "weak_for_migration",
},
{
protocol: [ "fuchsia.lightsensor.Sensor" ],
from: "#ui",
dependency: "weak_for_migration",
},
],
offer: [
// Routes to session-manager.
{
protocol: [ "fuchsia.session.scene.Manager" ],
from: "#ui",
to: "#session-manager",
},
{
protocol: [ "fuchsia.ui.policy.Presenter" ],
from: "void",
to: "#session-manager",
availability: "optional",
},
// 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",
},
{
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",
},
],
}