X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fapplication-devel.cpp;h=b9ef5dd65bdb1e1a69af2b01391608b4ace8b69d;hb=34aec01c5e704ac218b08d007426da6f941b801e;hp=cfdd55d9b068c93aa38bd592028e5fc6e9353486;hpb=1358738cac811e1cb86fdfb326bec1db3aeca77e;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/application-devel.cpp b/dali/devel-api/adaptor-framework/application-devel.cpp index cfdd55d..b9ef5dd 100644 --- a/dali/devel-api/adaptor-framework/application-devel.cpp +++ b/dali/devel-api/adaptor-framework/application-devel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 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. @@ -19,6 +19,12 @@ #include #include +#ifdef DALI_ADAPTOR_COMPILATION +#include +#else +#include +#endif + namespace Dali { @@ -31,29 +37,6 @@ bool AddIdleWithReturnValue( Application application, CallbackBase* callback ) return Internal::Adaptor::GetImplementation( application ).AddIdle( callback, true ); } -Dali::Window CreateWindow( Application application, PositionSize childPosSize, const std::string& childWindowName, const std::string& childWindowClassName, bool childWindowMode ) -{ - auto& adaptor = Internal::Adaptor::GetImplementation( application ).GetAdaptor(); - - Dali::Window childWindow = Dali::Window::New( childPosSize, childWindowName, childWindowClassName, childWindowMode ); - Internal::Adaptor::Adaptor::GetImplementation( adaptor ).AddWindow( &childWindow, childWindowName, childWindowClassName, childWindowMode ); - return childWindow; -} - -bool DestroyWindow( Application application, Dali::Window* childWindow ) -{ - auto& adaptor = Internal::Adaptor::GetImplementation( application ).GetAdaptor(); - - return Internal::Adaptor::Adaptor::GetImplementation( adaptor ).RemoveWindow( childWindow ); -} - -bool DestroyWindow( Application application, const std::string& childWindowName ) -{ - auto& adaptor = Internal::Adaptor::GetImplementation( application ).GetAdaptor(); - - return Internal::Adaptor::Adaptor::GetImplementation( adaptor ).RemoveWindow( childWindowName ); -} - std::string GetDataPath() { return Internal::Adaptor::Application::GetDataPath();