summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghoon Park <jh9216.park@samsung.com>2017-03-20 15:46:08 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2017-03-20 02:19:49 -0700
commit34ea33bd98de00ba9520595febadea97233fb345 (patch)
tree92bf10ae03e5443727a7eaa85282932bb9f6f742
parent4de07f0d7e4bf70d5462c03702fbca460674b148 (diff)
downloadapplication-34ea33bd98de00ba9520595febadea97233fb345.tar.gz
application-34ea33bd98de00ba9520595febadea97233fb345.tar.bz2
application-34ea33bd98de00ba9520595febadea97233fb345.zip
Support legacy APIs for internal TC
Change-Id: I527bfb417536d8ffb87a40132fc186b9afe02972 Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
-rw-r--r--src/app_resource.c50
1 files changed, 46 insertions, 4 deletions
diff --git a/src/app_resource.c b/src/app_resource.c
index c78c223..5ab9a16 100644
--- a/src/app_resource.c
+++ b/src/app_resource.c
@@ -14,20 +14,62 @@
* limitations under the License.
*/
-#include <aul.h>
+#include <Elementary.h>
+#include "app_extension.h"
+
+static void __set_preinit_window_name(const char *win_name, void *win)
+{
+ const Evas *e;
+ Ecore_Evas *ee;
+
+ if (!win_name || !win)
+ return;
+
+ e = evas_object_evas_get((const Evas_Object *)win);
+ if (e) {
+ ee = ecore_evas_ecore_evas_get(e);
+ if (ee)
+ ecore_evas_name_class_set(ee, win_name, win_name);
+ }
+}
void *app_get_preinitialized_window(const char *win_name)
{
- return NULL;
+ void *win;
+
+ win = elm_win_precreated_object_get();
+ if (win == NULL)
+ return NULL;
+
+ __set_preinit_window_name(win_name, win);
+ elm_win_precreated_object_set(NULL);
+
+ return win;
}
void *app_get_preinitialized_background(void)
{
- return NULL;
+ void *background;
+
+ background = elm_bg_precreated_object_get();
+ if (background == NULL)
+ return NULL;
+
+ elm_bg_precreated_object_set(NULL);
+
+ return background;
}
void *app_get_preinitialized_conformant(void)
{
- return NULL;
+ void *conformant;
+
+ conformant = elm_conformant_precreated_object_get();
+ if (conformant == NULL)
+ return NULL;
+
+ elm_conformant_precreated_object_set(NULL);
+
+ return conformant;
}