Skip to content

Commit

Permalink
Remove favicon download logic and update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Aug 30, 2023
1 parent 8604b2c commit a6969ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
7 changes: 0 additions & 7 deletions include/CefViewBrowserClientDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ class CefViewBrowserClientDelegateInterface

virtual void faviconURLChanged(CefRefPtr<CefBrowser> browser, const std::vector<CefString>& icon_urls) = 0;

virtual bool downloadFavicon()
{
return true;
}

virtual void faviconChanged(CefRefPtr<CefImage> image) = 0;

virtual bool tooltipMessage(CefRefPtr<CefBrowser>& browser, const std::string& text) = 0;

virtual void fullscreenModeChanged(CefRefPtr<CefBrowser>& browser, bool fullscreen) = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#include <Common/CefViewCoreLog.h>

#include "FaviconDownload/CefViewFaviconDownloadCallback.h"

CefRefPtr<CefDisplayHandler>
CefViewBrowserClient::GetDisplayHandler()
{
Expand Down Expand Up @@ -48,11 +46,6 @@ CefViewBrowserClient::OnFaviconURLChange(CefRefPtr<CefBrowser> browser, const st
auto delegate = client_delegate_.lock();
if (delegate) {
delegate->faviconURLChanged(browser, icon_urls);

// download only the first favicon
if (!icon_urls.empty() && delegate->downloadFavicon()) {
browser->GetHost()->DownloadImage(icon_urls[0], true, 128, false, new CefViewFaviconDownloadCallback(delegate));
}
}
}

Expand Down

This file was deleted.

0 comments on commit a6969ff

Please sign in to comment.