mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-08-27 13:47:18 -04:00
Merge branch 'master' of gitee.com:openharmony/windowmanager
Change-Id: I07ab471efda8ec57f16f338d5bcecf82efa11af7 Signed-off-by: xingyanan <xingyanan2@huawei.com>
This commit is contained in:
@@ -240,14 +240,16 @@ WMError WindowController::SetSystemBarProperty(uint32_t windowId, WindowType typ
|
||||
return res;
|
||||
}
|
||||
|
||||
void WindowController::RegisterFocusChangedListener(const sptr<IWindowManagerAgent>& windowManagerAgent)
|
||||
void WindowController::RegisterWindowManagerAgent(WindowManagerAgentType type,
|
||||
const sptr<IWindowManagerAgent>& windowManagerAgent)
|
||||
{
|
||||
windowRoot_->RegisterFocusChangedListener(windowManagerAgent);
|
||||
windowRoot_->RegisterWindowManagerAgent(type, windowManagerAgent);
|
||||
}
|
||||
|
||||
void WindowController::UnregisterFocusChangedListener(const sptr<IWindowManagerAgent>& windowManagerAgent)
|
||||
void WindowController::UnregisterWindowManagerAgent(WindowManagerAgentType type,
|
||||
const sptr<IWindowManagerAgent>& windowManagerAgent)
|
||||
{
|
||||
windowRoot_->UnregisterFocusChangedListener(windowManagerAgent);
|
||||
windowRoot_->UnregisterWindowManagerAgent(type, windowManagerAgent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user