1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef WINDOW_ANIMATION_RS_WINDOW_ANIMATION_TARGET_H
17 #define WINDOW_ANIMATION_RS_WINDOW_ANIMATION_TARGET_H
18 
19 #include <memory>
20 #include <string>
21 
22 #include <common/rs_rect.h>
23 #include <iremote_broker.h>
24 #include <parcel.h>
25 #include <ui/rs_node.h>
26 
27 namespace OHOS {
28 namespace Rosen {
29 struct RSWindowAnimationTarget : Parcelable {
30     [[nodiscard]] static RSWindowAnimationTarget* Unmarshalling(Parcel& parcel);
31 
32     bool Marshalling(Parcel& parcel) const override;
33 
34     bool ReadFromParcel(Parcel& parcel);
35 
36     std::string bundleName_;
37     std::string abilityName_;
38     RRect windowBounds_;
39     std::shared_ptr<RSNode> surfaceNode_;
40     uint32_t windowId_ { 0 };
41     uint64_t displayId_ { 0 };
42     int32_t missionId_ { 0 };
43 };
44 } // namespace Rosen
45 } // namespace OHOS
46 
47 #endif // WINDOW_ANIMATION_RS_WINDOW_ANIMATION_TARGET_H
48