mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
修改AI检视意见
Signed-off-by: huangweichen <huangweichen6@huawei.com> Change-Id: I6c2304b4c56424b3e59d8c847e3546fd3ebd2edd
This commit is contained in:
parent
5e7555b52d
commit
ba3e286781
@ -76,7 +76,9 @@ napi_value UdmfClientImpl::TransformUdmfUnifiedData(RefPtr<UnifiedData>& Unified
|
||||
CHECK_NULL_RETURN(engine, nullptr);
|
||||
NativeEngine* nativeEngine = engine->GetNativeEngine();
|
||||
napi_env env = reinterpret_cast<napi_env>(nativeEngine);
|
||||
auto unifiedData = AceType::DynamicCast<UnifiedDataImpl>(UnifiedData)->GetUnifiedData();
|
||||
auto unifiedDataImpl = AceType::DynamicCast<UnifiedDataImpl>(UnifiedData);
|
||||
CHECK_NULL_RETURN(unifiedDataImpl, nullptr);
|
||||
auto unifiedData = unifiedDataImpl->GetUnifiedData();
|
||||
CHECK_NULL_RETURN(unifiedData, nullptr);
|
||||
napi_value dataVal = nullptr;
|
||||
UDMF::UnifiedDataNapi::NewInstance(env, unifiedData, dataVal);
|
||||
|
@ -151,6 +151,7 @@ void UpdateMouseEventForPen(const MMI::PointerEvent::PointerItem& pointerItem, M
|
||||
|
||||
TouchEvent ConvertTouchEvent(const std::shared_ptr<MMI::PointerEvent>& pointerEvent)
|
||||
{
|
||||
CHECK_NULL_RETURN(pointerEvent, TouchEvent());
|
||||
int32_t pointerID = pointerEvent->GetPointerId();
|
||||
MMI::PointerEvent::PointerItem item;
|
||||
bool ret = pointerEvent->GetPointerItem(pointerID, item);
|
||||
|
@ -27,6 +27,7 @@ void DomGridRow::SetParentGridInfo(const RefPtr<GridContainerInfo>& parent)
|
||||
{
|
||||
if (columnType_ != GridColumnType::NONE) {
|
||||
auto info = GridSystemManager::GetInstance().GetInfoByType(columnType_);
|
||||
CHECK_NULL_VOID(info);
|
||||
gridContainerInfo_ = info->GetParent();
|
||||
boxComponent_->SetGridLayoutInfo(gridContainerInfo_);
|
||||
} else {
|
||||
|
@ -37,6 +37,8 @@ float GetMoveOffset(const RefPtr<FrameNode>& parentFrameNode, const RefPtr<Frame
|
||||
float contentStartOffset, float contentEndOffset)
|
||||
{
|
||||
constexpr float notMove = 0.0f;
|
||||
CHECK_NULL_RETURN(parentFrameNode, notMove);
|
||||
CHECK_NULL_RETURN(curFrameNode, notMove);
|
||||
auto parentGeometryNode = parentFrameNode->GetGeometryNode();
|
||||
CHECK_NULL_RETURN(parentGeometryNode, notMove);
|
||||
auto parentFrameSize = parentGeometryNode->GetFrameSize();
|
||||
|
@ -357,7 +357,9 @@ void AtomicServicePattern::UpdateIconLayout(RefPtr<AppBarTheme>& theme, RefPtr<F
|
||||
margin.left = CalcLength(theme->GetIconInsideMargin());
|
||||
margin.right = CalcLength(theme->GetIconOutsideMargin());
|
||||
}
|
||||
icon->GetLayoutProperty<ImageLayoutProperty>()->UpdateMargin(margin);
|
||||
auto layoutProperty = icon->GetLayoutProperty<ImageLayoutProperty>();
|
||||
CHECK_NULL_VOID(layoutProperty);
|
||||
layoutProperty->UpdateMargin(margin);
|
||||
|
||||
icon->MarkModifyDone();
|
||||
icon->MarkDirtyNode();
|
||||
|
@ -468,7 +468,9 @@ bool PagePattern::AvoidKeyboard() const
|
||||
{
|
||||
auto pipeline = PipelineContext::GetCurrentContext();
|
||||
CHECK_NULL_RETURN(pipeline, false);
|
||||
return pipeline->GetSafeAreaManager()->KeyboardSafeAreaEnabled();
|
||||
auto safeAreaManager = pipeline->GetSafeAreaManager();
|
||||
CHECK_NULL_RETURN(safeAreaManager, false);
|
||||
return safeAreaManager->KeyboardSafeAreaEnabled();
|
||||
}
|
||||
|
||||
bool PagePattern::RemoveOverlay()
|
||||
|
Loading…
Reference in New Issue
Block a user