auto cbce = static_cast<content::ContentBrowserClientEfl*>(cbc);
cbce->SetBrowserContext(browser_context_.release());
#endif
- cookieManager()->EWebContextShutDown();
+ if (cookieManager())
+ cookieManager()->EWebContextShutDown();
}
void EWebContext::ClearNetworkCache() {
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(callback, EINA_FALSE);
+#if !defined(EWK_BRINGUP) // FIXME::M94 Bringup IPC to MOJO conversion in
+ // WebAppCapableGet
return impl->WebAppCapableGet(callback, userData) ? EINA_TRUE : EINA_FALSE;
+#else
+ return EINA_FALSE;
+#endif
}
Eina_Bool ewk_view_web_application_icon_url_get(Evas_Object* ewkView, Ewk_Web_App_Icon_URL_Get_Callback callback, void* userData)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(callback, EINA_FALSE);
+#if !defined(EWK_BRINGUP) // FIXME::M94 Bringup IPC to MOJO conversion in
+ // WebAppIconUrlGet
return impl->WebAppIconUrlGet(callback, userData) ? EINA_TRUE : EINA_FALSE;
+#else
+ return EINA_FALSE;
+#endif
}
Eina_Bool ewk_view_web_application_icon_urls_get(Evas_Object* ewkView, Ewk_Web_App_Icon_URLs_Get_Callback callback, void* userData)
{
EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(callback, EINA_FALSE);
+#if !defined(EWK_BRINGUP) // FIXME::M94 Bringup IPC to MOJO conversion in
+ // WebAppIconUrlsGet
return impl->WebAppIconUrlsGet(callback, userData) ? EINA_TRUE : EINA_FALSE;
+#else
+ return EINA_FALSE;
+#endif
}
Eina_Bool ewk_view_command_execute(Evas_Object* view, const char* command, const char* value)
should_notify = true;
}
- gfx::Point position_in_root_frame =
- plugin()->Container()->LocalToRootFramePoint(unobscured_rect.origin());
-
- if (local_position_in_root_frame_ != position_in_root_frame) {
- LOG(INFO) << "PluginPlaceholderHole: position changed!!! before:"
- << local_position_in_root_frame_.ToString()
- << " after:" << position_in_root_frame.ToString();
- local_position_in_root_frame_ = position_in_root_frame;
- should_notify = true;
+ if (plugin() && plugin()->Container()) {
+ gfx::Point position_in_root_frame =
+ plugin()->Container()->LocalToRootFramePoint(unobscured_rect.origin());
+
+ if (local_position_in_root_frame_ != position_in_root_frame) {
+ LOG(INFO) << "PluginPlaceholderHole: position changed!!! before:"
+ << local_position_in_root_frame_.ToString()
+ << " after:" << position_in_root_frame.ToString();
+ local_position_in_root_frame_ = position_in_root_frame;
+ should_notify = true;
+ }
}
if (!should_notify)
web_view_->ResetContextMenuController();
auto rwhva = static_cast<RenderWidgetHostViewAura*>(
web_contents_.GetRenderWidgetHostView());
- if (rwhva && rwhva->offscreen_helper() &&
- rwhva->offscreen_helper()->GetSelectionController()) {
- auto selection_controller =
- rwhva->offscreen_helper()->GetSelectionController();
- selection_controller->ClearSelection();
+ if (rwhva && rwhva->offscreen_helper()) {
+ if (auto selection_controller =
+ rwhva->offscreen_helper()->GetSelectionController()) {
+ selection_controller->ClearSelection();
+ }
}
}
}