/****************************************************************************** Copyright (C) 2026 by Matt Gajownik This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ******************************************************************************/ #include "browser-dummy-client.hpp" CefRefPtr BrowserDummyClient::GetCommandHandler() { return this; } CefRefPtr BrowserDummyClient::GetRequestHandler() { return this; } CefRefPtr BrowserDummyClient::GetLifeSpanHandler() { return this; } bool BrowserDummyClient::OnChromeCommand(CefRefPtr, int, cef_window_open_disposition_t) { return true; } bool BrowserDummyClient::IsChromeAppMenuItemVisible(CefRefPtr, int) { return false; } bool BrowserDummyClient::IsChromeToolbarButtonVisible(cef_chrome_toolbar_button_type_t) { return false; } bool BrowserDummyClient::IsChromePageActionIconVisible(cef_chrome_page_action_icon_type_t) { return false; } bool BrowserDummyClient::IsChromeAppMenuItemEnabled(CefRefPtr, int) { return false; } bool BrowserDummyClient::OnBeforePopup(CefRefPtr, CefRefPtr, #if CHROME_VERSION_BUILD >= 6834 int, #endif const CefString &, const CefString &, cef_window_open_disposition_t, bool, const CefPopupFeatures &, CefWindowInfo &, CefRefPtr &, CefBrowserSettings &, CefRefPtr &, bool *) { return true; } void BrowserDummyClient::OnAfterCreated(CefRefPtr browser) { if (browser && browser->GetHost()) { browser->GetHost()->CloseBrowser(false); } } bool BrowserDummyClient::OnOpenURLFromTab(CefRefPtr, CefRefPtr, const CefString &, CefRequestHandler::WindowOpenDisposition, bool) { return true; } bool BrowserDummyClient::OnBeforeBrowse(CefRefPtr, CefRefPtr, CefRefPtr, bool, bool) { return true; }