summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-14 16:25:18 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-14 16:25:18 -0700
commit4e06031b9c428ba3360ef4a5c1929d23b3ef65ae (patch)
tree5b46cd3b5e8c2ffc755e80e9fe70c811bc515d9a
parent0cef757bf6e7984b490c6b3af0c74475d25b03fe (diff)
web: provide a direct access to the configured web engine class.
-rw-r--r--src/lib/elm_web.h6
-rw-r--r--src/lib/elm_web2.c13
-rw-r--r--src/modules/web/none/elm_web_none.c3
-rw-r--r--src/modules/web/webkit2/elm_web_webkit2.c3
4 files changed, 24 insertions, 1 deletions
diff --git a/src/lib/elm_web.h b/src/lib/elm_web.h
index a64001a1e..07afb92ff 100644
--- a/src/lib/elm_web.h
+++ b/src/lib/elm_web.h
@@ -95,6 +95,12 @@
95#include "elm_web_common.h" 95#include "elm_web_common.h"
96#ifdef EFL_EO_API_SUPPORT 96#ifdef EFL_EO_API_SUPPORT
97#include "elm_web_eo.h" 97#include "elm_web_eo.h"
98
99#undef ELM_WEB_CLASS
100#define ELM_WEB_CLASS elm_web_real_class_get()
101
102EAPI const Eo_Class *elm_web_real_class_get(void);
103
98#endif 104#endif
99#ifndef EFL_NOLEGACY_API_SUPPORT 105#ifndef EFL_NOLEGACY_API_SUPPORT
100#include "elm_web_legacy.h" 106#include "elm_web_legacy.h"
diff --git a/src/lib/elm_web2.c b/src/lib/elm_web2.c
index 3f6e59831..89db9d596 100644
--- a/src/lib/elm_web2.c
+++ b/src/lib/elm_web2.c
@@ -9,7 +9,7 @@
9#include "elm_priv.h" 9#include "elm_priv.h"
10#include "elm_widget_web.h" 10#include "elm_widget_web.h"
11 11
12#define MY_CLASS ELM_WEB_CLASS 12#define MY_CLASS elm_web_class_get()
13 13
14#define MY_CLASS_NAME "Elm_Web" 14#define MY_CLASS_NAME "Elm_Web"
15#define MY_CLASS_NAME_LEGACY "elm_web" 15#define MY_CLASS_NAME_LEGACY "elm_web"
@@ -81,6 +81,14 @@ elm_web_add(Evas_Object *parent)
81 return eo_add(ewm.class_get(), parent); 81 return eo_add(ewm.class_get(), parent);
82} 82}
83 83
84EAPI const Eo_Class *
85elm_web_real_class_get(void)
86{
87 if (!ewm.class_get) return NULL;
88
89 return ewm.class_get();
90}
91
84EOLIAN static Eo * 92EOLIAN static Eo *
85_elm_web_eo_base_constructor(Eo *obj, Elm_Web_Data *sd) 93_elm_web_eo_base_constructor(Eo *obj, Elm_Web_Data *sd)
86{ 94{
@@ -213,4 +221,7 @@ _elm_web_init(const char *engine)
213 return EINA_TRUE; 221 return EINA_TRUE;
214} 222}
215 223
224#undef ELM_WEB_CLASS
225#define ELM_WEB_CLASS elm_web_class_get()
226
216#include "elm_web.eo.c" 227#include "elm_web.eo.c"
diff --git a/src/modules/web/none/elm_web_none.c b/src/modules/web/none/elm_web_none.c
index 74959eb36..e98cfe877 100644
--- a/src/modules/web/none/elm_web_none.c
+++ b/src/modules/web/none/elm_web_none.c
@@ -353,4 +353,7 @@ ewm_class_get(void)
353 return elm_web_none_class_get(); 353 return elm_web_none_class_get();
354} 354}
355 355
356#undef ELM_WEB_CLASS
357#define ELM_WEB_CLASS elm_web_class_get()
358
356#include "elm_web_none.eo.c" 359#include "elm_web_none.eo.c"
diff --git a/src/modules/web/webkit2/elm_web_webkit2.c b/src/modules/web/webkit2/elm_web_webkit2.c
index 43478440a..3c898343f 100644
--- a/src/modules/web/webkit2/elm_web_webkit2.c
+++ b/src/modules/web/webkit2/elm_web_webkit2.c
@@ -1151,4 +1151,7 @@ ewm_class_get(void)
1151 return elm_web_webkit2_class_get(); 1151 return elm_web_webkit2_class_get();
1152} 1152}
1153 1153
1154#undef ELM_WEB_CLASS
1155#define ELM_WEB_CLASS elm_web_class_get()
1156
1154#include "elm_web_webkit2.eo.c" 1157#include "elm_web_webkit2.eo.c"