}
case WIDGET_INSTANCE_EVENT_CREATE_ABORTED:
{
+ // Set RetryState
+ DALI_LOG_ERROR("widget aborted. please re-run widget.");
+ ShowLoadingState( false );
+ ShowRetryState( true );
+ CloseRemoteSurface();
mWidgetCreationAbortedSignal.Emit( handle );
break;
}
ops.added_cb = OnBufferAdded;
mWatcherHandle = screen_connector_toolkit_add(&ops, (char *)instanceId, SCREEN_CONNECTOR_SCREEN_TYPE_WIDGET, this);
DALI_LOG_INFO( gWidgetViewLogging, Debug::Verbose, "WidgetView::OnInitialize: widget_instance_launch is called. [%s, mPid = %d]\n", mWidgetId.c_str(), mPid );
+
+ Self().TouchedSignal().Connect( this, &WidgetView::OnTouch );
+ Self().WheelEventSignal().Connect( this, &WidgetView::OnWheelEvent );
}
void WidgetView::OnSceneConnection( int depth )
return false;
}
- if( mRemoteSurface == NULL )
- {
- return false;
- }
-
Device::Class::Type deviceType = event.GetDeviceClass( 0 );
if( deviceType == Device::Class::MOUSE )
{
{
if( mRemoteSurface == NULL )
{
+ DALI_LOG_ERROR("There is no RemoteSurface so it can not use WheelEvent");
return false;
}
//ToDo: We should check TIZEN_INPUT_DEVICE_CLAS_MOUSE
{
if( mRemoteSurface == NULL )
{
+ DALI_LOG_ERROR("There is no RemoteSurface so it can not use KeyEvent");
return false;
}
void WidgetView::MouseIn( const Dali::TouchEvent& event )
{
Vector2 localPos = event.GetLocalPosition( 0 );
-
- tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
+ if( mRemoteSurface )
+ {
+ tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_IN,
0,
0,
"",
event.GetTime()
);
+ }
}
void WidgetView::MouseOut( const Dali::TouchEvent& event )
{
- tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
+ if( mRemoteSurface )
+ {
+ tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
TIZEN_REMOTE_SURFACE_EVENT_TYPE_MOUSE_OUT,
0,
0,
"",
event.GetTime()
);
+ }
}
bool WidgetView::MouseEvent( const Dali::TouchEvent& event )
}
}
+ if( mRemoteSurface == NULL )
+ {
+ DALI_LOG_ERROR("There is no RemoteSurface so it can not use MouseEvent");
+ return false;
+ }
+
Vector2 localPos = event.GetLocalPosition( 0 );
tizen_remote_surface_transfer_mouse_event( mRemoteSurface,
}
}
+ if( mRemoteSurface == NULL )
+ {
+ DALI_LOG_ERROR("There is no RemoteSurface so it can not use TouchEvent");
+ return false;
+ }
+
Vector2 localPos = event.GetLocalPosition( 0 );
tizen_remote_surface_transfer_touch_event( mRemoteSurface,
tizen_remote_surface_transfer_visibility( surface, TIZEN_REMOTE_SURFACE_VISIBILITY_TYPE_VISIBLE);
CreateWidgetRenderer();
- ConnectSignal( surface );
}
if( !buffer )