• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_RPOXY_H
17 #define OHOS_WINDOW_SCENE_SESSION_STAGE_RPOXY_H
18 
19 #include <iremote_proxy.h>
20 
21 #include "interfaces/include/ws_common.h"
22 #include "session/container/include/zidl/session_stage_interface.h"
23 
24 namespace OHOS::Rosen {
25 class SessionStageProxy : public IRemoteProxy<ISessionStage> {
26 public:
SessionStageProxy(const sptr<IRemoteObject> & impl)27     explicit SessionStageProxy(const sptr<IRemoteObject>& impl) : IRemoteProxy<ISessionStage>(impl) {};
28 
~SessionStageProxy()29     ~SessionStageProxy() {};
30 
31     WSError SetActive(bool active) override;
32     WSError UpdateRect(const WSRect& rect, SizeChangeReason reason) override;
33     WSError HandleBackEvent() override;
34     WSError MarkProcessed(int32_t eventId) override;
35     WSError UpdateFocus(bool isFocused) override;
36     WSError NotifyDestroy() override;
37     void NotifyTouchDialogTarget() override;
38     WSError NotifyTransferComponentData(const AAFwk::WantParams& wantParams) override;
39     void NotifyOccupiedAreaChangeInfo(sptr<OccupiedAreaChangeInfo> info) override;
40     WSError UpdateAvoidArea(const sptr<AvoidArea>& avoidArea, AvoidAreaType type) override;
41     void NotifyScreenshot() override;
42     void DumpSessionElementInfo(const std::vector<std::string>& params)  override;
43     WSError NotifyTouchOutside() override;
44     WSError UpdateWindowMode(WindowMode mode) override;
45 
46 private:
47     static inline BrokerDelegator<SessionStageProxy> delegator_;
48 };
49 } // namespace OHOS::Rosen
50 #endif // OHOS_WINDOW_SCENE_SESSION_STAGE_RPOXY_H
51