fixup! Fix support for navigating page contents using arrow keys.
authorPiotr Tworek <p.tworek@samsung.com>
Tue, 24 Mar 2015 10:36:56 +0000 (11:36 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
NaviFrame content part in elementary 1.9 has different name than 1.12
and 1.13. Make sure we take this into account.

Change-Id: I59444a880aab265f99d8939dc5aef9883a557873
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/chromium_impl/content/browser/web_contents/web_contents_view_efl.cc

index f2c35ae..9c36d44 100644 (file)
 
 namespace content {
 
+namespace {
+#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR <= 9)
+const char kNaviFrameContentPart[] = "elm.swallow.content";
+#else
+const char kNaviFrameContentPart[] = "default";
+#endif
+}
+
 WebContentsView* CreateWebContentsView(
     WebContentsImpl* web_contents,
     WebContentsViewDelegate* delegate,
@@ -67,7 +75,7 @@ void WebContentsViewEfl::CreateView(const gfx::Size& initial_size,
   native_view_ = elm_conformant_add(root_window);
   naviframe_ = elm_naviframe_add(native_view_);
   elm_naviframe_content_preserve_on_pop_set(naviframe_, EINA_TRUE);
-  elm_object_part_content_set(native_view_, "default", naviframe_);
+  elm_object_part_content_set(native_view_, kNaviFrameContentPart, naviframe_);
 
   if (!initial_size.IsEmpty())
     evas_object_resize(native_view_,