webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
import"IWebIconDatabase.idl";
Public Member Functions | |
HRESULT | sharedIconDatabase ([out, retval] IWebIconDatabase **result) |
HRESULT | iconForURL ([in] BSTR url, [in] LPSIZE size, [in] BOOL cache, [out, retval] HBITMAP *hBitmap) |
HRESULT | defaultIconWithSize ([in] LPSIZE size, [out, retval] HBITMAP *hBitmap) |
HRESULT | retainIconForURL ([in] BSTR url) |
HRESULT | releaseIconForURL ([in] BSTR url) |
HRESULT | removeAllIcons () |
HRESULT | delayDatabaseCleanup () |
HRESULT | allowDatabaseCleanup () |
HRESULT | iconURLForURL ([in] BSTR url, [out, retval] BSTR *iconURL) |
HRESULT | isEnabled ([out, retval] BOOL *result) |
HRESULT | setEnabled ([in] BOOL flag) |
HRESULT | hasIconForURL ([in] BSTR url, [out, retval] BOOL *result) |
HRESULT IWebIconDatabase::allowDatabaseCleanup | ( | ) |
allowDatabaseCleanup: Informs the database that it now can begin removing icons. allowDatabaseCleanup decrements an internal counter that when 0 begins the database clean-up. The counter equals 0 at initialization.
Implemented in WebIconDatabase, and WebIconDatabase.
HRESULT IWebIconDatabase::defaultIconWithSize | ( | [in] LPSIZE | size, |
[out, retval] HBITMAP * | hBitmap | ||
) |
defaultIconWithSize:
size |
|
HRESULT IWebIconDatabase::delayDatabaseCleanup | ( | ) |
delayDatabaseCleanup: Only effective if called before the database begins removing icons. delayDatabaseCleanUp increments an internal counter that when 0 begins the database clean-up. The counter equals 0 at initialization.
Implemented in WebIconDatabase, and WebIconDatabase.
hasIconForURL: Returns whether or not the icon database has an icon for this URL. url The URL to test for.
HRESULT IWebIconDatabase::iconForURL | ( | [in] BSTR | url, |
[in] LPSIZE | size, | ||
[in] BOOL | cache, | ||
[out, retval] HBITMAP * | hBitmap | ||
) |
iconForURL:withSize: Calls iconForURL:withSize:cache: with YES for cache.
URL | |
size |
|
iconForURL:withSize:cache: Returns an icon for a web site URL from memory or disk. nil if none is found. Usually called by a UI element to determine if a site URL has an associated icon. Often called by the observer of WebIconChangedNotification after the notification is sent.
URL | |
size | |
cache | If yes, caches the returned image in memory if not already cached
|
iconURLForURL:withSize:cache: Returns an icon URL for a web site URL from memory or disk. nil if none is found.
URL |
|
iconURLForURL:withSize:cache: Returns an icon URL for a web site URL from memory or disk. nil if none is found.
URL |
|
isEnabled Returns true if the icon database is currently enabled, or false if it is disabled.
releaseIconForURL: Decrements the retain count of the icon.
URL |
|
HRESULT IWebIconDatabase::removeAllIcons | ( | ) |
retainIconForURL: Increments the retain count of the icon.
URL |
|
setEnabled: Enables or disables the icon database based on the flag passed in.
flag | Pass true to enable the icon database, or false to disable it.
|
Implemented in WebIconDatabase.
HRESULT IWebIconDatabase::sharedIconDatabase | ( | [out, retval] IWebIconDatabase ** | result | ) |
sharedIconDatabase Returns a shared instance of the icon database