!1170 显示放大功能接口文件提交

Merge pull request !1170 from Mupceet/release_0712_zoom
This commit is contained in:
openharmony_ci
2022-07-21 12:27:53 +00:00
committed by Gitee
4 changed files with 71 additions and 0 deletions
+1
View File
@@ -84,6 +84,7 @@
"header": {
"header_files": [
"window.h",
"window_accessibility_controller.h",
"window_manager.h",
"window_option.h",
"window_scene.h",
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_ROSEN_WINDOW_ACCESSIBILITY_CONTROLLER_H
#define OHOS_ROSEN_WINDOW_ACCESSIBILITY_CONTROLLER_H
#include <cstdint>
#include "wm_single_instance.h"
namespace OHOS::Rosen {
class WindowAccessibilityController {
WM_DECLARE_SINGLE_INSTANCE_BASE(WindowAccessibilityController);
public:
void SetAnchorAndScale(int32_t x, int32_t y, float scale);
void SetAnchorOffset(int32_t deltaX, int32_t deltaY);
void OffWindowZoom();
private:
WindowAccessibilityController();
~WindowAccessibilityController() = default;
};
} // namespace OHOS::Rosen
#endif // OHOS_ROSEN_WINDOW_ACCESSIBILITY_CONTROLLER_H
+1
View File
@@ -42,6 +42,7 @@ ohos_shared_library("libwm") {
"src/static_call.cpp",
"src/vsync_station.cpp",
"src/window.cpp",
"src/window_accessibility_controller.cpp",
"src/window_adapter.cpp",
"src/window_agent.cpp",
"src/window_impl.cpp",
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "window_accessibility_controller.h"
namespace OHOS::Rosen {
WM_IMPLEMENT_SINGLE_INSTANCE(WindowAccessibilityController)
WindowAccessibilityController::WindowAccessibilityController()
{
}
void WindowAccessibilityController::SetAnchorAndScale(int32_t x, int32_t y, float scale)
{
}
void WindowAccessibilityController::SetAnchorOffset(int32_t deltaX, int32_t deltaY)
{
}
void WindowAccessibilityController::OffWindowZoom()
{
}
} // namespace OHOS::Rosen