mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 15:00:12 +00:00
ArkTS Card UIContent Update
Signed-off-by: keerecles <lee_shao@126.com> Change-Id: I1992afa22e46b9457191481ea3526e8acae3528d
This commit is contained in:
parent
888419561a
commit
87991c3062
@ -16,6 +16,7 @@
|
||||
#ifndef FOUNDATION_ACE_INTERFACE_INNERKITS_ACE_UI_CONTENT_H
|
||||
#define FOUNDATION_ACE_INTERFACE_INNERKITS_ACE_UI_CONTENT_H
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
@ -27,6 +28,7 @@ class Context;
|
||||
namespace AppExecFwk {
|
||||
class Configuration;
|
||||
class Ability;
|
||||
class FormAshmem;
|
||||
}
|
||||
|
||||
namespace Rosen {
|
||||
@ -104,19 +106,19 @@ public:
|
||||
virtual void SetAppWindowIcon(const std::shared_ptr<OHOS::Media::PixelMap>& pixelMap) = 0;
|
||||
|
||||
// ArkTS Form
|
||||
virtual std::shared_ptr<Rosen::RSSurfaceNode> GetCardRootNode()
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
virtual std::shared_ptr<Rosen::RSSurfaceNode> GetFormRootNode() = 0;
|
||||
|
||||
virtual void UpdateFormDate(const std::string& data) = 0;
|
||||
|
||||
virtual void ProcessFormUpdate(const std::string& data) = 0;
|
||||
virtual void SetFormWidth(const float width) = 0;
|
||||
virtual void SetFormHeight(const float height) = 0;
|
||||
virtual float GetFormWidth() = 0;
|
||||
virtual float GetFormHeight() = 0;
|
||||
|
||||
virtual void SetActionEventHandler(
|
||||
std::function<void(const std::string& action)>&& actionCallback) = 0;
|
||||
std::function<void(const std::string&)>&& actionCallback) = 0;
|
||||
virtual void SetErrorEventHandler(
|
||||
std::function<void(const std::string&, const std::string&)>&& errorCallback) = 0;
|
||||
};
|
||||
} // namespace OHOS::Ace
|
||||
|
||||
|
@ -24,6 +24,7 @@ namespace OHOS {
|
||||
namespace AppExecFwk {
|
||||
class Ability;
|
||||
class Configuration;
|
||||
class FormAshmem;
|
||||
} // namespace AppExecFwk
|
||||
namespace AAFwk {
|
||||
class Want;
|
||||
@ -66,13 +67,15 @@ public:
|
||||
MOCK_METHOD1(NotifyMemoryLevel, void(int32_t level));
|
||||
MOCK_METHOD1(SetAppWindowTitle, void(const std::string& title));
|
||||
MOCK_METHOD1(SetAppWindowIcon, void(const std::shared_ptr<Media::PixelMap>& pixelMap));
|
||||
MOCK_METHOD0(GetCardRootNode, std::shared_ptr<Rosen::RSSurfaceNode>());
|
||||
MOCK_METHOD1(ProcessFormUpdate, void(const std::string& data));
|
||||
MOCK_METHOD0(GetFormRootNode, std::shared_ptr<Rosen::RSSurfaceNode>());
|
||||
MOCK_METHOD1(UpdateFormDate, void(const std::string& data));
|
||||
MOCK_METHOD1(SetFormWidth, void(const float width));
|
||||
MOCK_METHOD1(SetFormHeight, void(const float height));
|
||||
MOCK_METHOD0(GetFormWidth, float());
|
||||
MOCK_METHOD0(GetFormHeight, float());
|
||||
MOCK_METHOD1(SetActionEventHandler, void(std::function<void(const std::string& action)>&& actionCallback));
|
||||
MOCK_METHOD1(SetErrorEventHandler,
|
||||
void(std::function<void(const std::string& code, const std::string& msg)>&& actionCallback));
|
||||
};
|
||||
} // namespace Ace
|
||||
} // namespace OHOS
|
||||
|
Loading…
Reference in New Issue
Block a user