Change-Id: I152abc4c15c3cb30dc6c6da63eba95f04c0144ce
DALI_TYPE_REGISTRATION_END()
DALI_TYPE_REGISTRATION_END()
-static void OnSurfaceUpdate( struct tizen_remote_surface* surface, wl_buffer* buffer, uint32_t time, void* data )
+static void OnBufferUpdate( struct tizen_remote_surface* surface, wl_buffer* buffer, uint32_t time, void* data )
{
Dali::WidgetView::Internal::WidgetView* widgetView = static_cast< Dali::WidgetView::Internal::WidgetView* >( data );
{
Dali::WidgetView::Internal::WidgetView* widgetView = static_cast< Dali::WidgetView::Internal::WidgetView* >( data );
static void OnSurfaceMissing( struct tizen_remote_surface* surface, void* data )
{
static void OnSurfaceMissing( struct tizen_remote_surface* surface, void* data )
{
- //ToDo: WidgetDeletedSignal
+ Dali::WidgetView::Internal::WidgetView* widgetView = static_cast< Dali::WidgetView::Internal::WidgetView* >( data );
+
+ if( widgetView )
+ {
+ widgetView->CloseRemoteSurface();
+ }
}
static struct aul_rsm_handler_s remoteSurfaceHandler = {
}
static struct aul_rsm_handler_s remoteSurfaceHandler = {
mInstanceId(),
mContentInfo(),
mTitle(),
mInstanceId(),
mContentInfo(),
mTitle(),
mWidth( 0 ),
mHeight( 0 ),
mPid( 0 ),
mUpdatePeriod( 0.0 ),
mPreviewVisible( true ),
mStateTextVisible( true ),
mWidth( 0 ),
mHeight( 0 ),
mPid( 0 ),
mUpdatePeriod( 0.0 ),
mPreviewVisible( true ),
mStateTextVisible( true ),
- mPermanentDelete( true ),
+ mPermanentDelete( false ),
mRemoteSurface( NULL )
{
}
mRemoteSurface( NULL )
{
}
mInstanceId(),
mContentInfo( contentInfo ),
mTitle(),
mInstanceId(),
mContentInfo( contentInfo ),
mTitle(),
mWidth( width ),
mHeight( height ),
mPid( 0 ),
mUpdatePeriod( updatePeriod ),
mPreviewVisible( true ),
mStateTextVisible( true ),
mWidth( width ),
mHeight( height ),
mPid( 0 ),
mUpdatePeriod( updatePeriod ),
mPreviewVisible( true ),
mStateTextVisible( true ),
- mPermanentDelete( true ),
+ mPermanentDelete( false ),
mRemoteSurface( NULL )
{
}
mRemoteSurface( NULL )
{
}
widget_instance_destroy( mInstanceId.c_str() );
}
}
widget_instance_destroy( mInstanceId.c_str() );
}
}
-
- if( mBundle )
- {
- bundle_free( mBundle );
- }
}
bool WidgetView::PauseWidget()
}
bool WidgetView::PauseWidget()
void WidgetView::ConnectSignal( tizen_remote_surface* surface )
{
void WidgetView::ConnectSignal( tizen_remote_surface* surface )
{
+ if( mWidgetImageView && surface )
{
mRemoteSurface = surface;
{
mRemoteSurface = surface;
{
tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE;
{
tizen_remote_surface_event_type type = TIZEN_REMOTE_SURFACE_EVENT_TYPE_NONE;
- if( event.GetPointCount() == 0 )
+ if( event.GetPointCount() == 0 || mRemoteSurface == NULL )
bool WidgetView::OnWheelEvent( Dali::Actor actor, const Dali::WheelEvent& event )
{
bool WidgetView::OnWheelEvent( Dali::Actor actor, const Dali::WheelEvent& event )
{
+ if( mRemoteSurface == NULL )
+ {
+ return false;
+ }
//ToDo: We should check TIZEN_INPUT_DEVICE_CLAS_MOUSE
tizen_remote_surface_transfer_mouse_wheel( mRemoteSurface,
event.direction,
//ToDo: We should check TIZEN_INPUT_DEVICE_CLAS_MOUSE
tizen_remote_surface_transfer_mouse_wheel( mRemoteSurface,
event.direction,
+void WidgetView::CloseRemoteSurface()
+{
+ aul_rsm_viewer_unset_surface_handler( mInstanceId.c_str() );
+ mRemoteSurface = NULL;
+}
+
} // namespace Internal
} // namespace WidgetView
} // namespace Internal
} // namespace WidgetView
#include <dali-toolkit/public-api/controls/image-view/image-view.h>
#include <wayland-extension/tizen-remote-surface-client-protocol.h>
#include <tbm_surface.h>
#include <dali-toolkit/public-api/controls/image-view/image-view.h>
#include <wayland-extension/tizen-remote-surface-client-protocol.h>
#include <tbm_surface.h>
bool OnWheelEvent( Dali::Actor actor, const Dali::WheelEvent& event );
bool OnWheelEvent( Dali::Actor actor, const Dali::WheelEvent& event );
+ void CloseRemoteSurface();
+
std::string mContentInfo;
std::string mTitle;
std::string mContentInfo;
std::string mTitle;
int mWidth;
int mHeight;
int mPid;
int mWidth;
int mHeight;
int mPid;