Added BWebSettings and BPrivate::WebSettingsPrivate. Added all the wiring
necessary. The only usable effect as of yet is that favicons arrive at the BrowserWindow. Favicons are stored in a database and are not fetched when they alreary exist. The application is expected to try and fetch an icon for a given url. This is currently done in BWebWindow when the URL for loading has been initiated. Otherwise it fetches the URL upon the new ICON_RECEIVED notification from the FrameLoaderClientHaiku. In any case it ends up at BWebWindow::IconReceived(), so derived classes don't have to worry about the difference. In any case, via BWebSettings, icons can also be fetched manually, like for the forthcomming autocompletion text control. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@257 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
parent
ddb431ba21
commit
10d5754b92
@ -32,8 +32,8 @@
|
|||||||
#include "BrowserWindow.h"
|
#include "BrowserWindow.h"
|
||||||
#include "DownloadWindow.h"
|
#include "DownloadWindow.h"
|
||||||
#include "WebPage.h"
|
#include "WebPage.h"
|
||||||
|
#include "WebSettings.h"
|
||||||
#include "WebView.h"
|
#include "WebView.h"
|
||||||
#include "WebViewConstants.h"
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Autolock.h>
|
#include <Autolock.h>
|
||||||
#include <Directory.h>
|
#include <Directory.h>
|
||||||
@ -104,6 +104,8 @@ BrowserApp::ReadyToRun()
|
|||||||
BWebPage::InitializeOnce();
|
BWebPage::InitializeOnce();
|
||||||
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
||||||
|
|
||||||
|
BWebSettings::SetPersistentStoragePath("/boot/home/config/settings/WebPositive");
|
||||||
|
|
||||||
BFile settingsFile;
|
BFile settingsFile;
|
||||||
BRect windowFrameFromSettings = fLastWindowFrame;
|
BRect windowFrameFromSettings = fLastWindowFrame;
|
||||||
BRect downloadWindowFrame(100, 100, 300, 250);
|
BRect downloadWindowFrame(100, 100, 300, 250);
|
||||||
|
@ -700,6 +700,13 @@ BrowserWindow::TitleChanged(const BString& title, BWebView* view)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
BrowserWindow::IconReceived(const BBitmap* icon, BWebView* view)
|
||||||
|
{
|
||||||
|
printf("BrowserWindow::IconReceived(%p, %p)\n", icon, view);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
BrowserWindow::StatusChanged(const BString& statusText, BWebView* view)
|
BrowserWindow::StatusChanged(const BString& statusText, BWebView* view)
|
||||||
{
|
{
|
||||||
|
@ -94,6 +94,8 @@ private:
|
|||||||
BWebView* view);
|
BWebView* view);
|
||||||
virtual void TitleChanged(const BString& title,
|
virtual void TitleChanged(const BString& title,
|
||||||
BWebView* view);
|
BWebView* view);
|
||||||
|
virtual void IconReceived(const BBitmap* icon,
|
||||||
|
BWebView* view);
|
||||||
virtual void ResizeRequested(float width, float height,
|
virtual void ResizeRequested(float width, float height,
|
||||||
BWebView* view);
|
BWebView* view);
|
||||||
virtual void SetToolBarsVisible(bool flag, BWebView* view);
|
virtual void SetToolBarsVisible(bool flag, BWebView* view);
|
||||||
|
Loading…
Reference in New Issue
Block a user