diff --git a/adapter/preview/entrance/ace_preview_helper.h b/adapter/preview/entrance/ace_preview_helper.h index 496f77b687a4cdd70aac9478e377eef6d320ffbd..bb169714409481705fa924676ff127abf701e84b 100644 --- a/adapter/preview/entrance/ace_preview_helper.h +++ b/adapter/preview/entrance/ace_preview_helper.h @@ -24,7 +24,7 @@ namespace OHOS::Ace::Platform { using CallbackTypeIsCurrentRunnerThread = std::function; using CallbackTypePostTask = std::function&, int64_t)>; -using CallbackTypeHspBufferTracker = std::function; +using CallbackTypeHspBufferTracker = std::function; using CallbackTypeSetClipboardData = std::function; using CallbackTypeGetClipboardData = std::function; using CallbackFlushEmpty = std::function; diff --git a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp index fd0a9847aa0572660512f35ac9d24cd502f3e041..2a6976ee128cff64c584c0d295b32ff5d9ba563f 100644 --- a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp +++ b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp @@ -2136,7 +2136,7 @@ bool JsiDeclarativeEngine::ExecuteJsForFastPreview(const std::string& jsCode, co } void JsiDeclarativeEngine::SetHspBufferTrackerCallback( - std::function&& callback) + std::function&& callback) { CHECK_NULL_VOID(engineInstance_); auto runtime = std::static_pointer_cast(engineInstance_->GetJsRuntime()); diff --git a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.h b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.h index 6ec9998c05cc7a24dd1984f6f8ea1b608d7db5b3..f1bb54b835a44d071649468e54ab8eb5f6df3453 100644 --- a/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.h +++ b/frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.h @@ -455,7 +455,7 @@ public: } // Support the hsp on the previewer void SetHspBufferTrackerCallback( - std::function&& callback); + std::function&& callback); // Support to execute the ets code mocked by developer void SetMockModuleList(const std::map& mockJsonInfo); bool IsComponentPreview() override; diff --git a/interfaces/native/BUILD.gn b/interfaces/native/BUILD.gn index d51442db948e565d76841e0da15b6b26c9ddc652..37c7012f57b2c1f79af20a9ec57114fa17621316 100644 --- a/interfaces/native/BUILD.gn +++ b/interfaces/native/BUILD.gn @@ -57,6 +57,8 @@ ohos_shared_library("ace_ndk") { "//foundation/arkui/ace_engine/frameworks/core/components/common/properties/color.cpp", "//foundation/arkui/ace_engine/frameworks/core/components/xcomponent/native_interface_xcomponent_impl.cpp", "//foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/inspector_constants.cpp", + "build_check_for_c.c", + "build_check_for_cpp.cpp", "event/drag_and_drop_impl.cpp", "event/key_event_impl.cpp", "event/ui_input_event.cpp", diff --git a/interfaces/native/build_check_for_c.c b/interfaces/native/build_check_for_c.c new file mode 100644 index 0000000000000000000000000000000000000000..ef62c948ebaabca6ff624813fe202f9dc1b05bf8 --- /dev/null +++ b/interfaces/native/build_check_for_c.c @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2024 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 "drag_and_drop.h" +#include "drawable_descriptor.h" +#include "native_animate.h" +#include "native_dialog.h" +#include "native_gesture.h" +#include "native_interface.h" +#include "native_interface_accessibility.h" +#include "native_interface_xcomponent.h" +#include "native_key_event.h" +#include "native_node.h" +#include "native_node_napi.h" +#include "native_type.h" +#include "native_xcomponent_key_event.h" +#include "ui_input_event.h" diff --git a/interfaces/native/build_check_for_cpp.cpp b/interfaces/native/build_check_for_cpp.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ef62c948ebaabca6ff624813fe202f9dc1b05bf8 --- /dev/null +++ b/interfaces/native/build_check_for_cpp.cpp @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2024 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 "drag_and_drop.h" +#include "drawable_descriptor.h" +#include "native_animate.h" +#include "native_dialog.h" +#include "native_gesture.h" +#include "native_interface.h" +#include "native_interface_accessibility.h" +#include "native_interface_xcomponent.h" +#include "native_key_event.h" +#include "native_node.h" +#include "native_node_napi.h" +#include "native_type.h" +#include "native_xcomponent_key_event.h" +#include "ui_input_event.h" diff --git a/interfaces/native/drag_and_drop.h b/interfaces/native/drag_and_drop.h index 6d0f68f3b823145fc190f93d1894624980a7844f..319d56f9c7ae0e2e8f809a87ba391ae94659d98f 100644 --- a/interfaces/native/drag_and_drop.h +++ b/interfaces/native/drag_and_drop.h @@ -36,7 +36,7 @@ #define ARKUI_NATIVE_DRAG_AND_DROP_H #include - +#include #include "native_type.h" #include "ui_input_event.h" diff --git a/interfaces/native/ui_input_event.h b/interfaces/native/ui_input_event.h index 8181e74bbc235a28afd21c62c2b7f6263e46ffee..28c879bc16872e5e504c72bd76ec20a33589d21e 100644 --- a/interfaces/native/ui_input_event.h +++ b/interfaces/native/ui_input_event.h @@ -40,6 +40,7 @@ #include #else #include +#include #endif #ifdef __cplusplus