* Began renaming some public API with the B* prefix and using the Haiku coding
style. (WebPage -> BWebPage). Documented what needs to go where in WebPage.h. * Moved misplaced functionality from WebFrame to BWebPage (navigation). * EditorClientHaiku takes a BWebPage pointer now, which brings a slight cleanup. * Exposed WebFrame::isEditable() to EditorClientHaiku, so isEditable() can be implemented. * Added some asserts in FrameLoaderClientHaiku according to the Gtk port and placed some debug output. git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@150 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
@@ -385,13 +385,13 @@ DownloadWindow::~DownloadWindow()
|
|||||||
void DownloadWindow::MessageReceived(BMessage* message)
|
void DownloadWindow::MessageReceived(BMessage* message)
|
||||||
{
|
{
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case DOWNLOAD_ADDED: {
|
case B_DOWNLOAD_ADDED: {
|
||||||
WebDownload* download;
|
WebDownload* download;
|
||||||
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
|
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
|
||||||
downloadStarted(download);
|
downloadStarted(download);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DOWNLOAD_REMOVED: {
|
case B_DOWNLOAD_REMOVED: {
|
||||||
WebDownload* download;
|
WebDownload* download;
|
||||||
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
|
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
|
||||||
downloadFinished(download);
|
downloadFinished(download);
|
||||||
|
|||||||
@@ -92,8 +92,8 @@ void LauncherApp::ArgvReceived(int32 argc, char** argv)
|
|||||||
|
|
||||||
void LauncherApp::ReadyToRun()
|
void LauncherApp::ReadyToRun()
|
||||||
{
|
{
|
||||||
WebPage::initializeOnce();
|
BWebPage::InitializeOnce();
|
||||||
WebPage::setCacheModel(WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
|
||||||
|
|
||||||
BFile settingsFile;
|
BFile settingsFile;
|
||||||
BRect windowFrameFromSettings = m_lastWindowFrame;
|
BRect windowFrameFromSettings = m_lastWindowFrame;
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
currentWebView()->webPage()->setDownloadListener(downloadListener);
|
currentWebView()->webPage()->SetDownloadListener(downloadListener);
|
||||||
|
|
||||||
m_findGroup->SetVisible(false);
|
m_findGroup->SetVisible(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user