• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022-2023 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 OHOS_ROSEN_DISPLAY_CHANGFE_INFO_H
17 #define OHOS_ROSEN_DISPLAY_CHANGFE_INFO_H
18 
19 #include <parcel.h>
20 
21 #include "dm_common.h"
22 
23 namespace OHOS {
24 namespace Rosen {
25 
26 enum class ActionType : uint32_t {
27     SINGLE_START,
28     SINGLE_CLOSE,
29     MOVE_DISPLAY,
30     STACK_EMPTY,
31     SINGLE_BACKGROUND,
32 };
33 
34 class DisplayChangeInfo : public Parcelable {
35 public:
36     DisplayChangeInfo() = default;
37     ~DisplayChangeInfo() = default;
38     virtual bool Marshalling(Parcel& parcel) const override;
39     static DisplayChangeInfo* Unmarshalling(Parcel& parcel);
40 
41     ActionType action_;
42     ScreenId toScreenId_ = SCREEN_ID_INVALID;
43     ScreenId fromScreenId_ = SCREEN_ID_INVALID;
44     std::string abilityName_;
45     std::string bundleName_;
46 };
47 }
48 }
49 #endif // OHOS_ROSEN_DISPLAY_CHANGFE_INFO_H