X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-adaptor-impl.h;h=dd7f469256f45b84126253c7cfd7e82643745942;hp=902167c0a72dd7b245e6b92faa6ea7887c325c4c;hb=0e8dfa9c961af84b18edf2e3307840b0d94fb430;hpb=87a9019904ab49c42f1e32e7ebb6a1512b0dc28c diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h index 902167c..dd7f469 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_ADAPTOR_IMPL_H__ -#define __DALI_TOOLKIT_ADAPTOR_IMPL_H__ +#ifndef DALI_TOOLKIT_ADAPTOR_IMPL_H +#define DALI_TOOLKIT_ADAPTOR_IMPL_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -25,6 +25,14 @@ namespace Dali class EglInterface; class DisplayConnection; class ThreadSynchronizationInterface; +class Window; + +namespace Integration +{ +class Scene; +} + +using WindowContainer = std::vector; namespace Internal { @@ -50,22 +58,43 @@ namespace Internal namespace Adaptor { -class Adaptor: public BaseObject +class Adaptor { public: + static Dali::Adaptor& New(); static Dali::Adaptor& Get(); Adaptor(); ~Adaptor(); -public: - static Dali::RenderSurfaceInterface& GetSurface(); - static Dali::Adaptor::AdaptorSignalType& AdaptorSignal(); - static bool mAvailable; - static Vector mCallbacks; + void Start( Dali::Window window ); + + bool AddIdle( CallbackBase* callback, bool hasReturnValue ); + void RemoveIdle( CallbackBase* callback ); + void RunIdles(); + + static Integration::Scene GetScene( Dali::Window window ); + + Dali::RenderSurfaceInterface& GetSurface(); + Dali::WindowContainer GetWindows(); + + Dali::Adaptor::AdaptorSignalType& ResizedSignal(); + Dali::Adaptor::AdaptorSignalType& LanguageChangedSignal(); + Dali::Adaptor::WindowCreatedSignalType& WindowCreatedSignal(); + + static Adaptor& GetImpl( Dali::Adaptor& adaptor ) { return *adaptor.mImpl; } + static const Adaptor& GetImpl( const Dali::Adaptor& adaptor ) { return *adaptor.mImpl; } + +private: + + Vector mCallbacks; + Dali::WindowContainer mWindows; + Dali::Adaptor::AdaptorSignalType mResizedSignal; + Dali::Adaptor::AdaptorSignalType mLanguageChangedSignal; + Dali::Adaptor::WindowCreatedSignalType mWindowCreatedSignal; }; } // namespace Adaptor } // namespace Internal } // namespace Dali -#endif // __DALI_TOOLKIT_ADAPTOR_IMPL_H__ +#endif // DALI_TOOLKIT_ADAPTOR_IMPL_H