1// Copyright 2021 The Fuchsia 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.
45use crate::animation::{KeyedObject, KeyedProperty};
6use crate::core::Object;
7use crate::importers::ImportStackObject;
89#[derive(Debug)]
10pub struct KeyedObjectImporter {
11 keyed_object: Object<KeyedObject>,
12}
1314impl KeyedObjectImporter {
15pub fn new(keyed_object: Object<KeyedObject>) -> Self {
16Self { keyed_object }
17 }
1819pub fn push_keyed_property(&self, keyed_property: Object<KeyedProperty>) {
20self.keyed_object.as_ref().push_keyed_property(keyed_property);
21 }
22}
2324impl ImportStackObject for KeyedObjectImporter {}