mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
remove unecessary content header inclusion from beos frontend
This commit is contained in:
parent
3153335fde
commit
f236e7d6b7
@ -43,7 +43,6 @@ extern "C" {
|
|||||||
#include "netsurf/browser_window.h"
|
#include "netsurf/browser_window.h"
|
||||||
#include "netsurf/bitmap.h"
|
#include "netsurf/bitmap.h"
|
||||||
#include "netsurf/content.h"
|
#include "netsurf/content.h"
|
||||||
#include "content/urldb.h"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "beos/bitmap.h"
|
#include "beos/bitmap.h"
|
||||||
|
@ -21,13 +21,13 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "netsurf/mouse.h"
|
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "desktop/cookie_manager.h"
|
#include "netsurf/mouse.h"
|
||||||
#include "netsurf/plotters.h"
|
#include "netsurf/plotters.h"
|
||||||
|
#include "content/urldb.h"
|
||||||
|
#include "desktop/cookie_manager.h"
|
||||||
#include "desktop/tree.h"
|
#include "desktop/tree.h"
|
||||||
#include "desktop/textinput.h"
|
#include "desktop/textinput.h"
|
||||||
#include "content/urldb.h"
|
|
||||||
}
|
}
|
||||||
#include "beos/cookies.h"
|
#include "beos/cookies.h"
|
||||||
|
|
||||||
|
@ -30,26 +30,27 @@
|
|||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <curl/curl.h> /* for URL unescaping functions */
|
#include <image.h>
|
||||||
|
#include <Resources.h>
|
||||||
|
#include <String.h>
|
||||||
|
#include <libwapcaplet/libwapcaplet.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "utils/config.h"
|
#include "utils/config.h"
|
||||||
#include "content/fetch.h"
|
|
||||||
#include "content/fetchers.h"
|
|
||||||
#include "content/urldb.h"
|
|
||||||
#include "utils/nsoption.h"
|
#include "utils/nsoption.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "utils/messages.h"
|
#include "utils/messages.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include "utils/ring.h"
|
#include "utils/ring.h"
|
||||||
#include "utils/base64.h"
|
#include "utils/base64.h"
|
||||||
|
#include "content/fetch.h"
|
||||||
|
#include "content/fetchers.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "beos/fetch_rsrc.h"
|
#include "beos/fetch_rsrc.h"
|
||||||
#include "beos/filetype.h"
|
#include "beos/filetype.h"
|
||||||
#include "beos/gui.h"
|
#include "beos/gui.h"
|
||||||
|
|
||||||
#include <image.h>
|
|
||||||
#include <Resources.h>
|
|
||||||
#include <String.h>
|
|
||||||
|
|
||||||
struct fetch_rsrc_context {
|
struct fetch_rsrc_context {
|
||||||
struct fetch *parent_fetch;
|
struct fetch *parent_fetch;
|
||||||
@ -151,10 +152,10 @@ static bool fetch_rsrc_process(struct fetch_rsrc_context *c)
|
|||||||
{
|
{
|
||||||
fetch_msg msg;
|
fetch_msg msg;
|
||||||
char *params;
|
char *params;
|
||||||
char *at = NULL;
|
//char *at = NULL;
|
||||||
char *slash;
|
char *slash;
|
||||||
char *comma = NULL;
|
//char *comma = NULL;
|
||||||
char *unescaped;
|
//char *unescaped;
|
||||||
uint32 type = 'data'; // default for embeded files
|
uint32 type = 'data'; // default for embeded files
|
||||||
int32 id = 0;
|
int32 id = 0;
|
||||||
|
|
||||||
|
@ -31,7 +31,6 @@
|
|||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "content/fetch.h"
|
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "utils/hashtable.h"
|
#include "utils/hashtable.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
@ -91,7 +90,7 @@ void beos_fetch_filetype_fin(void)
|
|||||||
|
|
||||||
const char *fetch_filetype(const char *unix_path)
|
const char *fetch_filetype(const char *unix_path)
|
||||||
{
|
{
|
||||||
struct stat statbuf;
|
// struct stat statbuf;
|
||||||
status_t err;
|
status_t err;
|
||||||
int i;
|
int i;
|
||||||
// NOT THREADSAFE
|
// NOT THREADSAFE
|
||||||
|
@ -61,12 +61,7 @@ extern "C" {
|
|||||||
#include "netsurf/netsurf.h"
|
#include "netsurf/netsurf.h"
|
||||||
#include "netsurf/content.h"
|
#include "netsurf/content.h"
|
||||||
#include "netsurf/browser_window.h"
|
#include "netsurf/browser_window.h"
|
||||||
#include "content/content.h"
|
|
||||||
#include "content/content_protected.h"
|
|
||||||
#include "content/fetch.h"
|
|
||||||
#include "content/fetchers.h"
|
#include "content/fetchers.h"
|
||||||
#include "content/fetchers/resource.h"
|
|
||||||
#include "content/hlcache.h"
|
|
||||||
#include "content/urldb.h"
|
#include "content/urldb.h"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -35,8 +35,7 @@ extern bool nsbeos_done;
|
|||||||
extern bool replicated;
|
extern bool replicated;
|
||||||
int gui_init_replicant(int argc, char** argv);
|
int gui_init_replicant(int argc, char** argv);
|
||||||
|
|
||||||
extern "C" void gui_401login_open(nsurl *url, const char *realm,
|
extern "C" void gui_401login_open(struct nsurl *url, const char *realm, nserror (*cb)(bool proceed, void *pw), void *cbpw);
|
||||||
nserror (*cb)(bool proceed, void *pw), void *cbpw);
|
|
||||||
|
|
||||||
extern "C" void nsbeos_gui_poll(void);
|
extern "C" void nsbeos_gui_poll(void);
|
||||||
|
|
||||||
@ -44,15 +43,15 @@ extern char *options_file_location;
|
|||||||
|
|
||||||
class NSBrowserApplication : public BApplication {
|
class NSBrowserApplication : public BApplication {
|
||||||
public:
|
public:
|
||||||
NSBrowserApplication();
|
NSBrowserApplication();
|
||||||
virtual ~NSBrowserApplication();
|
virtual ~NSBrowserApplication();
|
||||||
|
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
virtual void RefsReceived(BMessage *message);
|
virtual void RefsReceived(BMessage *message);
|
||||||
virtual void ArgvReceived(int32 argc, char **argv);
|
virtual void ArgvReceived(int32 argc, char **argv);
|
||||||
|
|
||||||
virtual void AboutRequested();
|
virtual void AboutRequested();
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern BWindow *wndAbout;
|
extern BWindow *wndAbout;
|
||||||
|
@ -26,40 +26,42 @@
|
|||||||
#include <TextControl.h>
|
#include <TextControl.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "content/content.h"
|
|
||||||
#include "content/urldb.h"
|
|
||||||
#include "netsurf/browser_window.h"
|
|
||||||
#include "utils/messages.h"
|
#include "utils/messages.h"
|
||||||
#include "utils/url.h"
|
#include "utils/url.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
#include "utils/nsurl.h"
|
||||||
|
#include "netsurf/content_type.h"
|
||||||
|
#include "netsurf/browser_window.h"
|
||||||
#include "netsurf/clipboard.h"
|
#include "netsurf/clipboard.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "beos/gui.h"
|
#include "beos/gui.h"
|
||||||
#include "beos/scaffolding.h"
|
#include "beos/scaffolding.h"
|
||||||
#include "beos/window.h"
|
#include "beos/window.h"
|
||||||
|
|
||||||
class LoginAlert : public BAlert {
|
class LoginAlert : public BAlert {
|
||||||
public:
|
public:
|
||||||
LoginAlert(nserror (*callback)(bool proceed, void *pw),
|
LoginAlert(nserror (*callback)(bool proceed, void *pw),
|
||||||
void *callbaclpw,
|
void *callbaclpw,
|
||||||
nsurl *url,
|
nsurl *url,
|
||||||
const char *host,
|
const char *host,
|
||||||
const char *realm,
|
const char *realm,
|
||||||
const char *text);
|
const char *text);
|
||||||
virtual ~LoginAlert();
|
virtual ~LoginAlert();
|
||||||
void MessageReceived(BMessage *message);
|
void MessageReceived(BMessage *message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
nsurl* fUrl; /**< URL being fetched */
|
nsurl* fUrl; /**< URL being fetched */
|
||||||
BString fHost; /**< Host for user display */
|
BString fHost; /**< Host for user display */
|
||||||
BString fRealm; /**< Authentication realm */
|
BString fRealm; /**< Authentication realm */
|
||||||
nserror (*fCallback)(bool proceed, void *pw);
|
nserror (*fCallback)(bool proceed, void *pw);
|
||||||
void *fCallbackPw;
|
void *fCallbackPw;
|
||||||
|
|
||||||
BTextControl *fUserControl;
|
BTextControl *fUserControl;
|
||||||
BTextControl *fPassControl;
|
BTextControl *fPassControl;
|
||||||
};
|
};
|
||||||
|
|
||||||
static void create_login_window(nsurl *host,
|
static void create_login_window(nsurl *host,
|
||||||
|
@ -51,26 +51,27 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fs_attr.h>
|
#include <fs_attr.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "content/content.h"
|
|
||||||
#include "desktop/browser_history.h"
|
|
||||||
#include "netsurf/browser_window.h"
|
|
||||||
#include "netsurf/netsurf.h"
|
|
||||||
#include "desktop/version.h"
|
|
||||||
#include "desktop/searchweb.h"
|
|
||||||
#include "desktop/search.h"
|
|
||||||
#include "netsurf/plotters.h"
|
|
||||||
#include "utils/nsoption.h"
|
|
||||||
#include "desktop/textinput.h"
|
|
||||||
#include "render/form.h"
|
|
||||||
#include "utils/messages.h"
|
#include "utils/messages.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
#include "utils/nsurl.h"
|
#include "utils/nsurl.h"
|
||||||
|
#include "netsurf/netsurf.h"
|
||||||
|
#include "netsurf/plotters.h"
|
||||||
#include "netsurf/clipboard.h"
|
#include "netsurf/clipboard.h"
|
||||||
#include "netsurf/content.h"
|
#include "netsurf/content.h"
|
||||||
#include "netsurf/content_type.h"
|
#include "netsurf/content_type.h"
|
||||||
|
#include "desktop/browser_history.h"
|
||||||
|
#include "netsurf/browser_window.h"
|
||||||
|
#include "desktop/version.h"
|
||||||
|
#include "desktop/searchweb.h"
|
||||||
|
#include "desktop/search.h"
|
||||||
|
#include "utils/nsoption.h"
|
||||||
|
#include "desktop/textinput.h"
|
||||||
|
#include "render/form.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "beos/about.h"
|
#include "beos/about.h"
|
||||||
#include "beos/bitmap.h"
|
#include "beos/bitmap.h"
|
||||||
#include "beos/gui.h"
|
#include "beos/gui.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#include "utils/errors.h"
|
#include "utils/errors.h"
|
||||||
#include "beos/schedule.h"
|
#include "beos/schedule.h"
|
||||||
#include "content/content.h"
|
#include "netsurf/content_type.h"
|
||||||
#include "netsurf/browser_window.h"
|
#include "netsurf/browser_window.h"
|
||||||
|
|
||||||
#ifdef DEBUG_BEOS_SCHEDULE
|
#ifdef DEBUG_BEOS_SCHEDULE
|
||||||
|
@ -21,29 +21,6 @@
|
|||||||
#define __STDBOOL_H__ 1
|
#define __STDBOOL_H__ 1
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
#include "utils/nsoption.h"
|
|
||||||
#include "utils/log.h"
|
|
||||||
#include "utils/utf8.h"
|
|
||||||
#include "utils/utils.h"
|
|
||||||
#include "content/content.h"
|
|
||||||
#include "content/urldb.h"
|
|
||||||
#include "netsurf/browser_window.h"
|
|
||||||
#include "netsurf/mouse.h"
|
|
||||||
#include "desktop/textinput.h"
|
|
||||||
#include "netsurf/plotters.h"
|
|
||||||
#include "netsurf/window.h"
|
|
||||||
#include "netsurf/clipboard.h"
|
|
||||||
}
|
|
||||||
|
|
||||||
#include "beos/about.h"
|
|
||||||
#include "beos/window.h"
|
|
||||||
#include "beos/font.h"
|
|
||||||
#include "beos/gui.h"
|
|
||||||
#include "beos/scaffolding.h"
|
|
||||||
#include "beos/plotters.h"
|
|
||||||
|
|
||||||
#include <AppDefs.h>
|
#include <AppDefs.h>
|
||||||
#include <BeBuild.h>
|
#include <BeBuild.h>
|
||||||
#include <Clipboard.h>
|
#include <Clipboard.h>
|
||||||
@ -57,6 +34,29 @@ extern "C" {
|
|||||||
#include <View.h>
|
#include <View.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include "utils/nsoption.h"
|
||||||
|
#include "utils/log.h"
|
||||||
|
#include "utils/utf8.h"
|
||||||
|
#include "utils/utils.h"
|
||||||
|
#include "netsurf/content_type.h"
|
||||||
|
#include "netsurf/browser_window.h"
|
||||||
|
#include "netsurf/mouse.h"
|
||||||
|
#include "netsurf/plotters.h"
|
||||||
|
#include "netsurf/window.h"
|
||||||
|
#include "netsurf/clipboard.h"
|
||||||
|
#include "content/urldb.h"
|
||||||
|
#include "desktop/textinput.h"
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "beos/about.h"
|
||||||
|
#include "beos/window.h"
|
||||||
|
#include "beos/font.h"
|
||||||
|
#include "beos/gui.h"
|
||||||
|
#include "beos/scaffolding.h"
|
||||||
|
#include "beos/plotters.h"
|
||||||
|
|
||||||
|
|
||||||
class NSBrowserFrameView;
|
class NSBrowserFrameView;
|
||||||
|
|
||||||
struct gui_window {
|
struct gui_window {
|
||||||
@ -680,7 +680,7 @@ void nsbeos_dispatch_event(BMessage *message)
|
|||||||
void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
|
void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
|
||||||
{
|
{
|
||||||
BRect updateRect;
|
BRect updateRect;
|
||||||
float scale = g->scale;
|
//float scale = g->scale;
|
||||||
struct rect clip;
|
struct rect clip;
|
||||||
|
|
||||||
struct redraw_context ctx = { true, true, &nsbeos_plotters };
|
struct redraw_context ctx = { true, true, &nsbeos_plotters };
|
||||||
|
Loading…
Reference in New Issue
Block a user