return m_mode & mode;
}
+#ifdef X11
static Eina_Bool destoryCallback(void* data, int /*type*/, void* event)
{
_D("called");
}
return ECORE_CALLBACK_CANCEL;
}
+#endif
public:
SubmodeSupportImplementation() :
return false;
}
+#ifdef X11
bool transientWindow(Ecore_X_Window calleeId)
{
_D("called");
return true;
}
+#endif // X11
};
SubmodeSupport::SubmodeSupport() :
return m_impl->isNeedTerminateOnSuspend();
}
+#ifdef X11
bool SubmodeSupport::transientWindow(Ecore_X_Window calleeId)
{
return m_impl->transientWindow(calleeId);
}
+#endif // X11
} // namespace ClientModule
#define CLIENT_SUBMODE_SUPPORT_H_
#include <memory>
+#ifdef X11
#include <Ecore_X.h>
+#endif
#include <dpl/wrt-dao-ro/common_dao_types.h>
void deinitialize(void);
bool isInlineMode(void);
bool isNeedTerminateOnSuspend(void);
+#ifdef X11
bool transientWindow(Ecore_X_Window win);
-
+#endif
private:
std::unique_ptr<SubmodeSupportImplementation> m_impl;
};
} // namespace ClientModule
-#endif // CLIENT_SUBMODE_SUPPORT_H_
\ No newline at end of file
+#endif // CLIENT_SUBMODE_SUPPORT_H_
m_windowData->init();
m_windowData->postInit();
+#if X11
// sub-mode support
if (m_submodeSupport->isInlineMode()) {
if (m_submodeSupport->transientWindow(
LogWarning("Fail to set submode");
}
}
+#endif
m_windowData->smartCallbackAdd(Layer::FOCUS,
"focused",
focusedCallback,
void WrtClient::ctxpopupShare(void)
{
LogDebug("share");
+#ifdef X11
const char* url = ewk_view_url_get(m_widget->GetCurrentWebview());
if (!url) {
LogError("url is empty");
"delete,request",
&WrtClient::ExitCallback,
this);
+#endif
}
void WrtClient::ctxpopupReload(void)
void WrtClient::ctxpopupLaunchBrowser(void)
{
LogDebug("launchBrowser");
+#ifdef X11
const char* url = ewk_view_url_get(m_widget->GetCurrentWebview());
if (!url) {
LogError("url is empty");
} else {
LogDebug("fail");
}
+#endif
}
void WrtClient::hwkeyCallback(const std::string& key)