1 /****************************************************************************** 2 Copyright (C) 2014 by John R. Bradley <jrb@turrettech.com> 3 Copyright (C) 2018 by Hugh Bailey ("Jim") <jim@obsproject.com> 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 ******************************************************************************/ 18 19 #pragma once 20 21 #ifdef _MSC_VER 22 #pragma warning(push) 23 #pragma warning(disable : 4100) 24 #else 25 #pragma GCC diagnostic push 26 #pragma GCC diagnostic ignored "-Wunused-parameter" 27 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 28 #endif 29 30 #include <include/cef_app.h> 31 #include <include/cef_base.h> 32 #include <include/cef_task.h> 33 #include <include/cef_client.h> 34 #include <include/cef_parser.h> 35 #include <include/cef_scheme.h> 36 #include <include/cef_version.h> 37 #include <include/cef_render_process_handler.h> 38 #include <include/cef_request_context_handler.h> 39 #if defined(__APPLE__) && !defined(BROWSER_LEGACY) 40 #include "include/wrapper/cef_library_loader.h" 41 #endif 42 43 #if CHROME_VERSION_BUILD < 3507 44 #define ENABLE_WASHIDDEN 1 45 #else 46 #define ENABLE_WASHIDDEN 0 47 #endif 48 49 #if CHROME_VERSION_BUILD >= 3770 50 #define SendBrowserProcessMessage(browser, pid, msg) \ 51 browser->GetMainFrame()->SendProcessMessage(pid, msg); 52 #else 53 #define SendBrowserProcessMessage(browser, pid, msg) \ 54 browser->SendProcessMessage(pid, msg); 55 #endif 56 57 #ifdef _MSC_VER 58 #pragma warning(pop) 59 #else 60 #pragma GCC diagnostic pop 61 #endif 62