Changeset 160781 in webkit


Ignore:
Timestamp:
Dec 18, 2013 11:41:36 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

API to set a favicon
https://bugs.webkit.org/show_bug.cgi?id=125892

Patch by Conrad Shultz <Conrad Shultz> on 2013-12-18
Reviewed by Brian Weinstein.

  • UIProcess/API/C/WKIconDatabase.cpp:

(WKIconDatabaseSetIconDataForIconURL):
Call WebIconDatabase::setIconDataForIconURL().

  • UIProcess/API/C/WKIconDatabase.h:

Declare WKIconDatabaseSetIconDataForIconURL().

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160776 r160781  
     12013-12-18  Conrad Shultz  <conrad_shultz@apple.com>
     2
     3        API to set a favicon
     4        https://bugs.webkit.org/show_bug.cgi?id=125892
     5
     6        Reviewed by Brian Weinstein.
     7
     8        * UIProcess/API/C/WKIconDatabase.cpp:
     9        (WKIconDatabaseSetIconDataForIconURL):
     10        Call WebIconDatabase::setIconDataForIconURL().
     11
     12        * UIProcess/API/C/WKIconDatabase.h:
     13        Declare WKIconDatabaseSetIconDataForIconURL().
     14
    1152013-12-18  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/C/WKIconDatabase.cpp

    r160104 r160781  
    2727#include "WKIconDatabase.h"
    2828
     29#include "APIData.h"
    2930#include "WKAPICast.h"
    3031#include "WebIconDatabase.h"
     
    5253}
    5354
     55void WKIconDatabaseSetIconDataForIconURL(WKIconDatabaseRef iconDatabaseRef, WKDataRef iconDataRef, WKURLRef iconURLRef)
     56{
     57    toImpl(iconDatabaseRef)->setIconDataForIconURL(toImpl(iconDataRef)->dataReference(), toWTFString(iconURLRef));
     58}
     59
    5460void WKIconDatabaseEnableDatabaseCleanup(WKIconDatabaseRef iconDatabaseRef)
    5561{
  • trunk/Source/WebKit2/UIProcess/API/C/WKIconDatabase.h

    r160104 r160781  
    8181WK_EXPORT void WKIconDatabaseRetainIconForURL(WKIconDatabaseRef iconDatabase, WKURLRef pageURL);
    8282WK_EXPORT void WKIconDatabaseReleaseIconForURL(WKIconDatabaseRef iconDatabase, WKURLRef pageURL);
     83WK_EXPORT void WKIconDatabaseSetIconDataForIconURL(WKIconDatabaseRef iconDatabase, WKDataRef iconData, WKURLRef iconURL);
    8384WK_EXPORT void WKIconDatabaseEnableDatabaseCleanup(WKIconDatabaseRef iconDatabase);
    8485
Note: See TracChangeset for help on using the changeset viewer.