1 /* 2 * Copyright (c) 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_WINDOW_SCENE_SESSION_STAGE_STUB_H 17 #define OHOS_WINDOW_SCENE_SESSION_STAGE_STUB_H 18 19 #include <map> 20 21 #include <iremote_stub.h> 22 #include <ui/rs_canvas_node.h> 23 24 #include "session/container/include/zidl/session_stage_interface.h" 25 26 namespace OHOS::Rosen { 27 class SessionStageStub; 28 29 class SessionStageStub : public IRemoteStub<ISessionStage> { 30 public: 31 SessionStageStub() = default; 32 ~SessionStageStub() = default; 33 34 int OnRemoteRequest(uint32_t code, MessageParcel& data, MessageParcel& reply, 35 MessageOption& option) override; 36 37 private: 38 int HandleSetActive(MessageParcel& data, MessageParcel& reply); 39 int HandleUpdateRect(MessageParcel& data, MessageParcel& reply); 40 int HandleUpdateGlobalDisplayRectFromServer(MessageParcel& data, MessageParcel& reply); 41 int HandleUpdateDensity(MessageParcel& data, MessageParcel& reply); 42 int HandleUpdateOrientation(MessageParcel& data, MessageParcel& reply); 43 int HandleUpdateSessionViewportConfig(MessageParcel& data, MessageParcel& reply); 44 int HandleBackEventInner(MessageParcel& data, MessageParcel& reply); 45 int HandleNotifyDestroy(MessageParcel& data, MessageParcel& reply); 46 int HandleUpdateFocus(MessageParcel& date, MessageParcel& reply); 47 int HandleNotifyTransferComponentData(MessageParcel& data, MessageParcel& reply); 48 int HandleNotifyTransferComponentDataSync(MessageParcel& data, MessageParcel& reply); 49 int HandleNotifyOccupiedAreaChange(MessageParcel& data, MessageParcel& reply); 50 int HandleUpdateAvoidArea(MessageParcel& data, MessageParcel& reply); 51 int HandleNotifyScreenshot(MessageParcel& data, MessageParcel& reply); 52 int HandleNotifyScreenshotAppEvent(MessageParcel& data, MessageParcel& reply); 53 int HandleDumpSessionElementInfo(MessageParcel& data, MessageParcel& reply); 54 int HandleNotifyTouchOutside(MessageParcel& data, MessageParcel& reply); 55 int HandleNotifySecureLimitChange(MessageParcel& data, MessageParcel& reply); 56 int HandleUpdateWindowMode(MessageParcel& data, MessageParcel& reply); 57 int HandleGetTopNavDestinationName(MessageParcel& data, MessageParcel& reply); 58 int HandleNotifyLayoutFinishAfterWindowModeChange(MessageParcel& data, MessageParcel& reply); 59 int HandleUpdateWindowModeForUITest(MessageParcel& data, MessageParcel& reply); 60 int HandleNotifyForegroundInteractiveStatus(MessageParcel& data, MessageParcel& reply); 61 int HandleNotifyPausedStatus(); 62 int HandleNotifyAppUseControlStatus(MessageParcel& data, MessageParcel& reply); 63 int HandleUpdateMaximizeMode(MessageParcel& data, MessageParcel& reply); 64 int HandleNotifyCloseExistPipWindow(MessageParcel& data, MessageParcel& reply); 65 int HandleNotifySessionForeground(MessageParcel& data, MessageParcel& reply); 66 int HandleNotifySessionBackground(MessageParcel& data, MessageParcel& reply); 67 int HandleUpdateTitleInTargetPos(MessageParcel& data, MessageParcel& reply); 68 int HandleNotifyDensityFollowHost(MessageParcel& data, MessageParcel& reply); 69 int HandleNotifyWindowVisibilityChange(MessageParcel& data, MessageParcel& reply); 70 int HandleNotifyTransformChange(MessageParcel& data, MessageParcel& reply); 71 int HandleNotifySingleHandTransformChange(MessageParcel& data, MessageParcel& reply); 72 int HandleNotifyDialogStateChange(MessageParcel& data, MessageParcel& reply); 73 int HandleSetPipActionEvent(MessageParcel& data, MessageParcel& reply); 74 int HandleSetPiPControlEvent(MessageParcel& data, MessageParcel& reply); 75 int HandleUpdateDisplayId(MessageParcel& data, MessageParcel& reply); 76 int HandleNotifyDisplayMove(MessageParcel& data, MessageParcel& reply); 77 int HandleSwitchFreeMultiWindow(MessageParcel& data, MessageParcel& reply); 78 int HandleGetUIContentRemoteObj(MessageParcel& data, MessageParcel& reply); 79 int HandleNotifyKeyboardPanelInfoChange(MessageParcel& data, MessageParcel& reply); 80 int HandlePcAppInPadNormalClose(MessageParcel& data, MessageParcel& reply); 81 int HandleNotifyCompatibleModePropertyChange(MessageParcel& data, MessageParcel& reply); 82 int HandleSetUniqueVirtualPixelRatio(MessageParcel& data, MessageParcel& reply); 83 int HandleNotifySessionFullScreen(MessageParcel& data, MessageParcel& reply); 84 int HandleNotifyDumpInfo(MessageParcel& data, MessageParcel& reply); 85 int HandleExtensionHostData(MessageParcel& data, MessageParcel& reply, MessageOption& option); 86 int HandleLinkKeyFrameCanvasNode(MessageParcel& data, MessageParcel& reply); 87 int HandleSetKeyFramePolicy(MessageParcel& data, MessageParcel& reply); 88 int HandleSetDragActivated(MessageParcel& data, MessageParcel& reply); 89 int HandleSetSplitButtonVisible(MessageParcel& data, MessageParcel& reply); 90 int HandleSetEnableDragBySystem(MessageParcel& data, MessageParcel& reply); 91 int HandleSetFullScreenWaterfallMode(MessageParcel& data, MessageParcel& reply); 92 int HandleSetSupportEnterWaterfallMode(MessageParcel& data, MessageParcel& reply); 93 int HandleSendContainerModalEvent(MessageParcel& data, MessageParcel& reply); 94 int HandleNotifyHighlightChange(MessageParcel& data, MessageParcel& reply); 95 int HandleNotifyWindowCrossAxisChange(MessageParcel& data, MessageParcel& reply); 96 int HandleNotifyPipSizeChange(MessageParcel& data, MessageParcel& reply); 97 int HandleNotifyRotationProperty(MessageParcel& data, MessageParcel& reply); 98 int HandleNotifyWindowAttachStateChange(MessageParcel& data, MessageParcel& reply); 99 int HandleNotifyKeyboardAnimationCompleted(MessageParcel& data, MessageParcel& reply); 100 int HandleNotifyKeyboardAnimationWillBegin(MessageParcel& data, MessageParcel& reply); 101 int HandleNotifyRotationChange(MessageParcel& data, MessageParcel& reply); 102 int HandleSetCurrentRotation(MessageParcel& data, MessageParcel& reply); 103 int HandleNotifyAppForceLandscapeConfigUpdated(MessageParcel& data, MessageParcel& reply); 104 int HandleNotifyAppHookWindowInfoUpdated(MessageParcel& data, MessageParcel& reply); 105 int HandleGetRouterStackInfo(MessageParcel& data, MessageParcel& reply); 106 int HandleCloseSpecificScene(MessageParcel& data, MessageParcel& reply); 107 int HandleSendFbActionEvent(MessageParcel& data, MessageParcel& reply); 108 }; 109 } // namespace OHOS::Rosen 110 #endif // OHOS_WINDOW_SCENE_SESSION_STAGE_STUB_H 111