X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fcommon%2Fadaptor-impl.h;h=f48f29e47dfb9207de8c61e81437ea6408c35cf7;hb=refs%2Fchanges%2F18%2F148918%2F1;hp=40b9bb206a964a80f2a34f0aec71d19d1b56017a;hpb=fd068ee647a4f30c60e2fa83cddcc2a9287200b1;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/common/adaptor-impl.h b/adaptors/common/adaptor-impl.h index 40b9bb2..f48f29e 100644 --- a/adaptors/common/adaptor-impl.h +++ b/adaptors/common/adaptor-impl.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_ADAPTOR_IMPL_H__ /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -184,16 +184,6 @@ public: // AdaptorInternalServices implementation virtual void FeedKeyEvent( KeyEvent& keyEvent ); /** - * @copydoc AdaptorInterface::MoveResize() - */ - virtual bool MoveResize( const PositionSize& positionSize ); - - /** - * @copydoc AdaptorInterface::SurfaceResized() - */ - virtual void SurfaceResized( const PositionSize& positionSize ); - - /** * @copydoc AdaptorInterface::ReplaceSurface() */ virtual void ReplaceSurface( Any nativeWindow, RenderSurface& surface ); @@ -220,6 +210,11 @@ public: // AdaptorInternalServices implementation */ virtual bool AddIdle( CallbackBase* callback ); + /** + * @copydoc Dali::Adaptor::RemoveIdle() + */ + virtual void RemoveIdle( CallbackBase* callback ); + public: /** @@ -288,6 +283,12 @@ public: */ Any GetNativeWindowHandle(); + /** + * Sets use remote surface for eglSurface output + * @param[in] useRemoteSurface True if the remote surface is used + */ + void SetUseRemoteSurface(bool useRemoteSurface); + public: /** @@ -315,6 +316,11 @@ public: void RequestUpdateOnce(); /** + * Request adaptor to update indicator's height + */ + void IndicatorSizeChanged(int height); + + /** * @copydoc Dali::Adaptor::NotifySceneCreated() */ void NotifySceneCreated(); @@ -329,6 +335,16 @@ public: */ void GetAppId( std::string& appId ); + /** + * Informs core the surface size has changed + */ + void SurfaceResizePrepare( Dali::Adaptor::SurfaceSize surfaceSize ); + + /** + * Informs ThreadController the surface size has changed + */ + void SurfaceResizeComplete( Dali::Adaptor::SurfaceSize surfaceSize ); + public: //AdaptorInternalServices /** @@ -479,17 +495,17 @@ private: private: /** - * Informs core the surface size has changed - */ - void SurfaceSizeChanged(const PositionSize& positionSize); - - /** * Assigns the render surface to the adaptor * */ void SetSurface(RenderSurface *surface); /** + * called after surface is created + */ + void SurfaceInitialized(); + + /** * Sends an notification message from main loop idle handler */ void ProcessCoreEventsFromIdle(); @@ -542,7 +558,7 @@ private: // Data Any mNativeWindow; ///< window identifier RenderSurface* mSurface; ///< Current surface - TizenPlatform::TizenPlatformAbstraction* mPlatformAbstraction; ///< Platform abstraction + TizenPlatform::TizenPlatformAbstraction* mPlatformAbstraction; ///< Platform abstraction EventHandler* mEventHandler; ///< event handler CallbackManager* mCallbackManager; ///< Used to install callbacks @@ -563,6 +579,7 @@ private: // Data ObjectProfiler* mObjectProfiler; ///< Tracks object lifetime for profiling SocketFactory mSocketFactory; ///< Socket factory const bool mEnvironmentOptionsOwned:1; ///< Whether we own the EnvironmentOptions (and thus, need to delete it) + bool mUseRemoteSurface; ///< whether the remoteSurface is used or not public: inline static Adaptor& GetImplementation(Dali::Adaptor& adaptor) {return *adaptor.mImpl;} };