mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-27 00:51:35 +00:00
Fix typo
Signed-off-by: kaicui <cuikai34@huawei.com>
This commit is contained in:
parent
19e6498984
commit
6544717e2d
@ -71,7 +71,7 @@ void JsExtensionWindowListener::OnSizeChange(Rect rect, WindowSizeChangeReason r
|
||||
{
|
||||
TLOGI(WmsLogTag::WMS_UIEXT, "[NAPI]OnSizeChange, [%{public}u, %{public}u], reason=%{public}u",
|
||||
rect.width_, rect.height_, reason);
|
||||
if (currentRect_.width_ == rect.width_ && currentRect_.height_ == rect.height_ &&
|
||||
if (currRect_.width_ == rect.width_ && currRect_.height_ == rect.height_ &&
|
||||
reason != WindowSizeChangeReason::DRAG_END) {
|
||||
TLOGD(WmsLogTag::WMS_UIEXT, "[NAPI]no need to change size");
|
||||
return;
|
||||
@ -158,7 +158,7 @@ void JsExtensionWindowListener::OnRectChange(Rect rect, WindowSizeChangeReason r
|
||||
napi_close_handle_scope(env, scope);
|
||||
};
|
||||
if (!eventHandler_) {
|
||||
TLOGE(WmsLogTag::WMS_UIEXTJsExtensionWindowListener, "Get main event handler failed!");
|
||||
TLOGE(WmsLogTag::WMS_UIEXT, "Get main event handler failed!");
|
||||
return;
|
||||
}
|
||||
eventHandler_->PostTask(jsCallback, "wms:JsExtensionWindowListener::OnRectChange", 0,
|
||||
|
@ -63,7 +63,7 @@ WmErrorCode JsExtensionWindowRegisterManager::ProcessWindowChangeRegister(sptr<J
|
||||
return ret;
|
||||
}
|
||||
|
||||
WmErrorCode JsExtensionWindowRegisterManager::ProcessWindowRectChangeRegister(sptr<JsWindowListener> listener,
|
||||
WmErrorCode JsExtensionWindowRegisterManager::ProcessWindowRectChangeRegister(sptr<JsExtensionWindowListener> listener,
|
||||
sptr<Window> window, bool isRegister)
|
||||
{
|
||||
if (window == nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user