extern int ITcimerDowncast(void);
extern int ITcWindowConstructorNewAssignmentOperator(void);
extern int ITcWindowSetGetPreferredOrientation(void);
-extern int ITcWindowGetDragandDropDetectorNativeHandle(void);
+extern int ITcWindowGetNativeHandle(void);
extern int ITcWindowAddRemoveAvailableOrientation(void);
extern int ITcWindowLowerRaiseActivate(void);
extern int ITcWindowSetClass(void);
{"ITcimerDowncast",ITcimerDowncast,ITs_timer_startup,ITs_timer_cleanup},
{"ITcWindowConstructorNewAssignmentOperator",ITcWindowConstructorNewAssignmentOperator,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetGetPreferredOrientation",ITcWindowSetGetPreferredOrientation,ITs_window_startup,ITs_window_cleanup},
- {"ITcWindowGetDragandDropDetectorNativeHandle",ITcWindowGetDragandDropDetectorNativeHandle,ITs_window_startup,ITs_window_cleanup},
+ {"ITcWindowGetNativeHandle",ITcWindowGetNativeHandle,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowAddRemoveAvailableOrientation",ITcWindowAddRemoveAvailableOrientation,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowLowerRaiseActivate",ITcWindowLowerRaiseActivate,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetClass",ITcWindowSetClass,ITs_window_startup,ITs_window_cleanup},
extern int ITcimerDowncast(void);
extern int ITcWindowConstructorNewAssignmentOperator(void);
extern int ITcWindowSetGetPreferredOrientation(void);
-extern int ITcWindowGetDragandDropDetectorNativeHandle(void);
+extern int ITcWindowGetNativeHandle(void);
extern int ITcWindowAddRemoveAvailableOrientation(void);
extern int ITcWindowLowerRaiseActivate(void);
extern int ITcWindowSetClass(void);
{"ITcimerDowncast",ITcimerDowncast,ITs_timer_startup,ITs_timer_cleanup},
{"ITcWindowConstructorNewAssignmentOperator",ITcWindowConstructorNewAssignmentOperator,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetGetPreferredOrientation",ITcWindowSetGetPreferredOrientation,ITs_window_startup,ITs_window_cleanup},
- {"ITcWindowGetDragandDropDetectorNativeHandle",ITcWindowGetDragandDropDetectorNativeHandle,ITs_window_startup,ITs_window_cleanup},
+ {"ITcWindowGetNativeHandle",ITcWindowGetNativeHandle,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowAddRemoveAvailableOrientation",ITcWindowAddRemoveAvailableOrientation,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowLowerRaiseActivate",ITcWindowLowerRaiseActivate,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetClass",ITcWindowSetClass,ITs_window_startup,ITs_window_cleanup},
extern int ITcimerDowncast(void);
extern int ITcWindowConstructorNewAssignmentOperator(void);
extern int ITcWindowSetGetPreferredOrientation(void);
-extern int ITcWindowGetDragandDropDetectorNativeHandle(void);
+extern int ITcWindowGetNativeHandle(void);
extern int ITcWindowAddRemoveAvailableOrientation(void);
extern int ITcWindowLowerRaiseActivate(void);
extern int ITcWindowSetClass(void);
{"ITcimerDowncast",ITcimerDowncast,ITs_timer_startup,ITs_timer_cleanup},
{"ITcWindowConstructorNewAssignmentOperator",ITcWindowConstructorNewAssignmentOperator,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetGetPreferredOrientation",ITcWindowSetGetPreferredOrientation,ITs_window_startup,ITs_window_cleanup},
- {"ITcWindowGetDragandDropDetectorNativeHandle",ITcWindowGetDragandDropDetectorNativeHandle,ITs_window_startup,ITs_window_cleanup},
+ {"ITcWindowGetNativeHandle",ITcWindowGetNativeHandle,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowAddRemoveAvailableOrientation",ITcWindowAddRemoveAvailableOrientation,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowLowerRaiseActivate",ITcWindowLowerRaiseActivate,ITs_window_startup,ITs_window_cleanup},
{"ITcWindowSetClass",ITcWindowSetClass,ITs_window_startup,ITs_window_cleanup},
void WindowConstructorNewAssignmentOperator(Application& mApplication);
void WindowSetGetPreferredOrientation(Application& mApplication);
-void WindowGetDragandDropDetectorNativeHandle(Application& mApplication);
+void WindowGetNativeHandle(Application& mApplication);
void WindowAddRemoveAvailableOrientation(Application& mApplication);
void WindowLowerRaiseActivate(Application& mApplication);
void WindowSetClass(Application& mApplication);
{
WINDOW_CONSTRUCTOR_NEW_ASSIGNMENT_OPERATOR,
WINDOW_SET_GET_PREFERRED_ORIENTATION,
- WINDOW_GET_DRAGAND_DROP_DETECTOR_NATIVE_HANDLE,
+ WINDOW_GET_NATIVE_HANDLE,
WINDOW_ADD_REMOVE_AVAILABLE_ORIENTATION,
WINDOW_LOWER_RAISE_ACTIVATE,
WINDOW_SET_CLASS,
case WINDOW_SET_GET_PREFERRED_ORIENTATION:
WindowSetGetPreferredOrientation(mApplication);
break;
- case WINDOW_GET_DRAGAND_DROP_DETECTOR_NATIVE_HANDLE:
- WindowGetDragandDropDetectorNativeHandle(mApplication);
+ case WINDOW_GET_NATIVE_HANDLE:
+ WindowGetNativeHandle(mApplication);
break;
case WINDOW_ADD_REMOVE_AVAILABLE_ORIENTATION:
WindowAddRemoveAvailableOrientation(mApplication);
DaliLog::PrintPass();
}
-void WindowGetDragandDropDetectorNativeHandle(Application& mApplication)
+void WindowGetNativeHandle(Application& mApplication)
{
-
- //~ PositionSize windowPosition(0, 0, 0, 0);
- //~ Window window = Window::New( windowPosition, "my-window", false );
- Window window = mApplication.GetWindow();
- DALI_CHECK_FAIL(!window,"Window::New constructor is failed to create initialized window object");
-
- Dali::Any handle = window.GetNativeHandle();
- bool bIsEmpty = handle.Empty();
- DALI_CHECK_FAIL(bIsEmpty," GetNativeHandle is failed" ); // as Any handle is not empty; window is initialized object
- handle = 50.0f;
- DALI_CHECK_FAIL( typeid( float ) != handle.GetType() , " GetNativeHandle could not create proper any-handle");
-
- //~ DragAndDropDetector detector = window.GetDragAndDropDetector();
- //~ DALI_CHECK_FAIL(!detector, "GetDragAndDropDetector is failed to get detector empty handle from window");
-
- DaliLog::PrintPass();
+ Window window = mApplication.GetWindow();
+ DALI_CHECK_FAIL(!window,"Window::New constructor is failed to create initialized window object");
+
+ Dali::Any handle = window.GetNativeHandle();
+ bool bIsEmpty = handle.Empty();
+ DALI_CHECK_FAIL(bIsEmpty," GetNativeHandle is failed" ); // as Any handle is not empty; window is initialized object
+ handle = 50.0f;
+ DALI_CHECK_FAIL( typeid( float ) != handle.GetType() , " GetNativeHandle could not create proper any-handle");
+
+ DaliLog::PrintPass();
}
void WindowAddRemoveAvailableOrientation(Application& mApplication)
{
return test_return_value;
}
-//& purpose: Check if GetDragAndDropDetector and GetNativeHandle works properly or not
+//& purpose: Check if Get and GetNativeHandle works properly or not
//& type: auto
/**
-* @testcase ITcWindowGetDragandDropDetectorNativeHandle
+* @testcase ITcWindowGetNativeHandle
* @since_tizen 2.4
* @type Positive
-* @description Check if GetDragAndDropDetector and GetNativeHandle works properly or not
+* @description Check if GetNativeHandle works properly or not
* @scenario Create an initialized window object \n
* Check if the window object is created or not \n
* Get Any handle from window object check if it is empty or not \n
* Assign float value to any handle and check if it matches or not \n
-* Get Detector handle from window and check if it is empty or not
-* @apicovered Window::New(), Window::GetDragAndDropDetector(), Window::GetNativeHandle(), Any::Empty, Any::GetType
-* @passcase if Draganddropdetector handle and nativehandle handle create and work properly
-* @failcase if Draganddropdetector handle and nativehandle handle do not create and work properly
+* Get Detector handle from window and check if it is empty or not
+* @apicovered Window::New(), Window::GetNativeHandle(), Any::Empty, Any::GetType
+* @passcase if nativehandle handle create and work properly
+* @failcase if nativehandle handle do not create and work properly
* @precondition NA
* @postcondition NA
*/
-int ITcWindowGetDragandDropDetectorNativeHandle(void)
-{
+int ITcWindowGetNativeHandle(void)
+{
DaliLog::PrintExecStarted(SUITE_NAME, __FUNCTION__);
Application application = Application::New( &gArgc, &gArgv );
CHECK_OPEN_GL(SUITE_NAME,__LINE__)
- Window_TestApp testApp( application, WINDOW_GET_DRAGAND_DROP_DETECTOR_NATIVE_HANDLE);
- application.MainLoop();
- return test_return_value;
+ Window_TestApp testApp( application, WINDOW_GET_NATIVE_HANDLE);
+ application.MainLoop();
+ return test_return_value;
}
//& purpose: Check AddAvailableOrientation and RemoveAvailableOrientation APIs works correctly or not