X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fvideo-view%2Fvideo-view-impl.h;h=5f85a3fc97503e5de8208a085137ccdda2b6f571;hp=309a237036b09aa44143049304160592d9453c78;hb=980465121df29a1b429b52adf4df109603f9a6da;hpb=f4f74e774495b9c798c86e5697fe84db6decc327 diff --git a/dali-toolkit/internal/controls/video-view/video-view-impl.h b/dali-toolkit/internal/controls/video-view/video-view-impl.h index 309a237..5f85a3f 100644 --- a/dali-toolkit/internal/controls/video-view/video-view-impl.h +++ b/dali-toolkit/internal/controls/video-view/video-view-impl.h @@ -1,5 +1,5 @@ -#ifndef __DALI_TOOLKIT_INTERNAL_VIDEO_VIEW_H__ -#define __DALI_TOOLKIT_INTERNAL_VIDEO_VIEW_H__ +#ifndef DALI_TOOLKIT_INTERNAL_VIDEO_VIEW_H +#define DALI_TOOLKIT_INTERNAL_VIDEO_VIEW_H /* * Copyright (c) 2016 Samsung Electronics Co., Ltd. @@ -22,9 +22,12 @@ #include #include #include +#include +#include +#include // INTERNAL INCLUDES -#include +#include #include #include @@ -179,13 +182,12 @@ public: /** * @brief Set the depth index of this image renderer * - * Renderer with higher depth indices are rendered in front of other renderers with smaller values + * Renderer with higher depth indices are rendered in front of other visuals with smaller values * @SINCE_1_1.38 * @param[in] depthIndex The depth index of this renderer */ void SetDepthIndex( int depthIndex ); - /** * @brief Performs actions as requested using the action name. * @SINCE_1_1.38 @@ -196,11 +198,40 @@ public: */ static bool DoAction( BaseObject* object, const std::string& actionName, const Property::Map& attributes ); + /** + * Connects a callback function with the object's signals. + * @param[in] object The object providing the signal. + * @param[in] tracker Used to disconnect the signal. + * @param[in] signalName The signal to connect to. + * @param[in] functor A newly allocated FunctorDelegate. + * @return True if the signal was connected. + * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the c + */ static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ); + /** + * @brief Updates video display area for window rendering target + */ + void UpdateDisplayArea( Dali::PropertyNotification& source ); + + /** + * @brief Sets underlay flag and initializes new rendering target by flag. + */ + void SetUnderlay( bool set ); + + /** + * @brief Checks underlay flag. + */ + bool IsUnderlay(); + private: // From Control /** + * @copydoc Toolkit::Control::OnInitialize() + */ + virtual void OnInitialize(); + + /** * @copydoc Toolkit::Control::OnStageConnect() */ virtual void OnStageConnection( int depth ); @@ -240,15 +271,20 @@ private: Dali::VideoPlayer mVideoPlayer; Dali::ImageDimensions mVideoSize; - Toolkit::ControlRenderer mRenderer; + Toolkit::Visual::Base mVisual; Dali::Property::Map mPropertyMap; Dali::NativeImage mNativeImage; ///< Native image handle for video rendering by texture streaming Dali::Toolkit::VideoView::VideoViewSignalType mFinishedSignal; std::string mUrl; + Dali::DisplayArea mDisplayArea; + Dali::Renderer mRenderer; + Dali::PropertyNotification mPositionUpdateNotification; + Dali::PropertyNotification mSizeUpdateNotification; + Dali::PropertyNotification mScaleUpdateNotification; + int mCurrentVideoPlayPosition; - bool mSetRenderingTarget; bool mIsPlay; - bool mIsPause; + bool mIsUnderlay; }; } // namespace Internal @@ -271,4 +307,4 @@ inline const Toolkit::Internal::VideoView& GetImpl( const Toolkit::VideoView& ha } // namespace Dali -#endif // __DALI_TOOLKIT_VIDEO_VIEW_H__ +#endif // DALI_TOOLKIT_VIDEO_VIEW_H