X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Faccessibility%2Fbridge%2Fbridge-impl.cpp;h=0ee2aaa8942ea5a0577050b905d3ecd18ec2899b;hb=a78d1de2e24442a9211693443d77850af825a67b;hp=f76a0eae3bb57a260a9dfa8574fc54d7a9a35588;hpb=edb53ec85dea32015b1b9ed317bb522e3e3a014f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/accessibility/bridge/bridge-impl.cpp b/dali/internal/accessibility/bridge/bridge-impl.cpp index f76a0ea..0ee2aaa 100644 --- a/dali/internal/accessibility/bridge/bridge-impl.cpp +++ b/dali/internal/accessibility/bridge/bridge-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,8 +39,8 @@ #include #include #include -#include #include +#include #include #include #include @@ -123,14 +123,7 @@ public: } } - auto methodObject = mRegistryClient.method)>("NotifyListenersSync"); - auto result = methodObject.call(std::tuple{keyType, 0, static_cast(keyCode), 0, static_cast(timeStamp), keyName, isText ? 1 : 0}); - if(!result) - { - LOG() << result.getError().message; - return Consumed::NO; - } - return std::get<0>(result) ? Consumed::YES : Consumed::NO; + return Consumed::NO; } /** @@ -368,6 +361,21 @@ public: } /** + * @brief Sends a signal to dbus that the window is created. + * + * @param[in] window The window to be created + * @see BridgeObject::Emit() + */ + void EmitCreated(Dali::Window window) + { + auto windowAccessible = mApplication.GetWindowAccessible(window); + if(windowAccessible) + { + windowAccessible->Emit(WindowEvent::CREATE, 0); + } + } + + /** * @brief Sends a signal to dbus that the window is shown. * * @param[in] window The window to be shown @@ -474,6 +482,17 @@ public: } /** + * @copydoc Dali::Accessibility::Bridge::WindowCreated() + */ + void WindowCreated(Dali::Window window) override + { + if(IsUp()) + { + EmitCreated(window); + } + } + + /** * @copydoc Dali::Accessibility::Bridge::WindowShown() */ void WindowShown(Dali::Window window) override @@ -750,7 +769,11 @@ public: if(NULL == mIdleCallback) { mIdleCallback = MakeCallback(this, &BridgeImpl::OnIdleSignal); - adaptor.AddIdle(mIdleCallback, true); + if(DALI_UNLIKELY(!adaptor.AddIdle(mIdleCallback, true))) + { + DALI_LOG_ERROR("Fail to add idle callback for bridge initialize. Call it synchronously.\n"); + OnIdleSignal(); + } } } }