* 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:
stippi 2010-02-20 11:13:44 +00:00
parent c9219daa51
commit 82912660d5
3 changed files with 5 additions and 5 deletions

View File

@ -385,13 +385,13 @@ DownloadWindow::~DownloadWindow()
void DownloadWindow::MessageReceived(BMessage* message)
{
switch (message->what) {
case DOWNLOAD_ADDED: {
case B_DOWNLOAD_ADDED: {
WebDownload* download;
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
downloadStarted(download);
break;
}
case DOWNLOAD_REMOVED: {
case B_DOWNLOAD_REMOVED: {
WebDownload* download;
if (message->FindPointer("download", reinterpret_cast<void**>(&download)) == B_OK)
downloadFinished(download);

View File

@ -92,8 +92,8 @@ void LauncherApp::ArgvReceived(int32 argc, char** argv)
void LauncherApp::ReadyToRun()
{
WebPage::initializeOnce();
WebPage::setCacheModel(WEBKIT_CACHE_MODEL_WEB_BROWSER);
BWebPage::InitializeOnce();
BWebPage::SetCacheModel(B_WEBKIT_CACHE_MODEL_WEB_BROWSER);
BFile settingsFile;
BRect windowFrameFromSettings = m_lastWindowFrame;

View File

@ -201,7 +201,7 @@ LauncherWindow::LauncherWindow(BRect frame, const BMessenger& downloadListener,
);
}
currentWebView()->webPage()->setDownloadListener(downloadListener);
currentWebView()->webPage()->SetDownloadListener(downloadListener);
m_findGroup->SetVisible(false);