1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* 3 * Copyright © 2020 Jan-Michael Brummer <jan.brummer@tabos.org> 4 * 5 * This file is part of Epiphany. 6 * 7 * Epiphany is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * Epiphany is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with Epiphany. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #pragma once 22 23 #include <webkit2/webkit2.h> 24 25 G_BEGIN_DECLS 26 27 #define EPHY_TYPE_PDF_HANDLER (ephy_pdf_handler_get_type ()) 28 29 G_DECLARE_FINAL_TYPE (EphyPDFHandler, ephy_pdf_handler, EPHY, PDF_HANDLER, GObject) 30 31 #define EPHY_PDF_SCHEME "ephy-pdf" 32 33 EphyPDFHandler *ephy_pdf_handler_new (void); 34 35 void ephy_pdf_handler_handle_request (EphyPDFHandler *handler, 36 WebKitURISchemeRequest *request); 37 38 void ephy_pdf_handler_stop (EphyPDFHandler *handler, 39 WebKitWebView *webv_view); 40 41 G_END_DECLS 42