[evince] browser-plugin: Remove browser-plugin support



commit f620476809ec6157b312b2f787bbed4d95850b53
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Fri Aug 24 15:48:18 2018 -0300

    browser-plugin: Remove browser-plugin support
    
    Epiphany deprecated support for NPAPI for 3.30, and when enabled
    manually it will not download the PDF document from the network.
    Therefore, it does not make sense to keep the browser-plugin
    anymore.
    
    Fixes #968

 Makefile.am                                  |   4 -
 browser-plugin/EvBrowserPlugin.cpp           | 746 ----------------------
 browser-plugin/EvBrowserPlugin.gresource.xml |  23 -
 browser-plugin/EvBrowserPlugin.h             | 109 ----
 browser-plugin/EvBrowserPluginMain.cpp       | 362 -----------
 browser-plugin/EvBrowserPluginToolbar.cpp    | 495 ---------------
 browser-plugin/EvBrowserPluginToolbar.h      |  54 --
 browser-plugin/EvMemoryUtils.h               |  33 -
 browser-plugin/Makefile.am                   |  67 --
 browser-plugin/evince-browser.css            |  19 -
 browser-plugin/meson.build                   |  55 --
 browser-plugin/npapi/npapi.h                 | 914 ---------------------------
 browser-plugin/npapi/npfunctions.h           | 307 ---------
 browser-plugin/npapi/npruntime.h             | 393 ------------
 browser-plugin/npapi/nptypes.h               |  88 ---
 browser-plugin/plugin.symbols                |   4 -
 browser-plugin/tests/data-uri.html           |  12 -
 browser-plugin/tests/iframe.html             |  15 -
 browser-plugin/tests/initvalues.html         |  32 -
 browser-plugin/tests/local.html              |  12 -
 browser-plugin/tests/multiple.html           |  17 -
 browser-plugin/tests/remote.html             |  12 -
 browser-plugin/tests/script.html             |  59 --
 browser-plugin/tests/test.pdf                | Bin 9030 -> 0 bytes
 configure.ac                                 |  27 -
 meson.build                                  |  12 -
 po/POTFILES.in                               |   1 -
 27 files changed, 3872 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 2bfe61bd..f857f6b1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,10 +25,6 @@ if ENABLE_PREVIEWER
 SUBDIRS += previewer
 endif
 
-if ENABLE_BROWSER_PLUGIN
-SUBDIRS += browser-plugin
-endif
-
 NULL =
 
 pkgconfigdir = $(libdir)/pkgconfig
diff --git a/configure.ac b/configure.ac
index 9b507068..c1722946 100644
--- a/configure.ac
+++ b/configure.ac
@@ -500,31 +500,6 @@ PREVIEWER_LIBS="$PREVIEWER_LIBS $GTKUNIXPRINT_LIBS -lz"
 AC_SUBST(PREVIEWER_CFLAGS)
 AC_SUBST(PREVIEWER_LIBS)
 
-
-# **************
-# Browser Plugin
-# **************
-
-AC_ARG_ENABLE([browser-plugin],
-  [AS_HELP_STRING([--disable-browser-plugin],
-                  [Disable the Browser Plugin])],
-  [],
-  [enable_browser_plugin=no])
-
-if test x$enable_browser_plugin = "xyes" ; then
-  PKG_CHECK_MODULES([BROWSER_PLUGIN],[gtk+-3.0 >= $GTK_REQUIRED gthread-2.0 gio-2.0 >= $GLIB_REQUIRED])
-
-  if test -z "${BROWSER_PLUGIN_DIR}"; then
-    BROWSER_PLUGIN_DIR="\${libdir}/mozilla/plugins"
-  fi
-  AC_ARG_VAR([BROWSER_PLUGIN_DIR],[Where to install the plugin to])
-fi
-
-AM_CONDITIONAL([ENABLE_BROWSER_PLUGIN],[test "$enable_browser_plugin" = "yes"])
-BROWSER_PLUGIN_CFLAGS="$BROWSER_PLUGIN_CFLAGS $DEBUG_FLAGS"
-AC_SUBST(BROWSER_PLUGIN_CFLAGS)
-AC_SUBST(BROWSER_PLUGIN_LIBS)
-
 # ***
 # GIR
 # ***
@@ -944,7 +919,6 @@ backend/tiff/Makefile
 backend/xps/evince-xpsdocument.metainfo.xml.in
 backend/xps/xpsdocument.evince-backend.desktop.in
 backend/xps/Makefile
-browser-plugin/Makefile
 cut-n-paste/Makefile
 cut-n-paste/gimpcellrenderertoggle/Makefile
 cut-n-paste/synctex/Makefile
@@ -1022,7 +996,6 @@ Viewer ...................:  $enable_viewer
 Previewer ................:  $enable_previewer
 Thumbnailer ..............:  $enable_thumbnailer
 Nautilus Extensions.......:  $enable_nautilus
-Browser Plugin............:  $enable_browser_plugin
 
 
 BACKENDS
diff --git a/meson.build b/meson.build
index 4ddd0937..b64415ef 100644
--- a/meson.build
+++ b/meson.build
@@ -460,17 +460,6 @@ if enable_previewer
   subdir('previewer')
 endif
 
-# *** Browser Plugin ***
-enable_browser_plugin = get_option('browser_plugin')
-if enable_browser_plugin
-  browser_plugin_dir = get_option('browser_plugin_dir')
-  if not browser_plugin_dir.startswith('/')
-    browser_plugin_dir = join_paths(ev_libdir, browser_plugin_dir)
-  endif
-
-  subdir('browser-plugin')
-endif
-
 subdir('data')
 
 headers = files(
@@ -519,7 +508,6 @@ output += 'Viewer ...................:  ' + enable_viewer.to_string() + '\n'
 output += 'Previewer ................:  ' + enable_previewer.to_string() + '\n'
 output += 'Thumbnailer ..............:  ' + enable_thumbnailer.to_string() + '\n'
 output += 'Nautilus Extensions ......:  ' + enable_nautilus.to_string() + '\n'
-output += 'Browser Plugin ...........:  ' + enable_browser_plugin.to_string() + '\n\n\n'
 output += 'BACKENDS\n\n'
 output += 'Comics ...................:  ' + enable_comics.to_string() + '\n'
 output += 'DJVU .....................:  ' + enable_djvu.to_string() + '\n'
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8abbc23a..19ad11ba 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -20,7 +20,6 @@ backend/tiff/tiff-document.c
 backend/tiff/tiffdocument.evince-backend.desktop.in.in
 backend/xps/evince-xpsdocument.metainfo.xml.in.in
 backend/xps/xpsdocument.evince-backend.desktop.in.in
-browser-plugin/EvBrowserPluginToolbar.cpp
 data/org.gnome.Evince.desktop.in.in
 data/org.gnome.Evince.gschema.xml
 data/org.gnome.Evince-previewer.desktop.in.in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]