path: root/desktop/browser.h
diff options
authorJames Bursa <>2004-07-18 17:38:01 +0000
committerJames Bursa <>2004-07-18 17:38:01 +0000
commit58e2d033ece8c60f495ddba9a93ecab793a7a50f (patch)
tree6e4b9d4dfbdfe3ad02f1c8a8d7a7e3d4f9f74e29 /desktop/browser.h
parentb09fdba4ed8caed190d2fcf7e51a165fc130bdd1 (diff)
[project @ 2004-07-18 17:38:01 by bursa]
Improve form control interaction code. Replace box_under_area() with simpler box_at_point(). Detect objects for menu once on menu opening. Remove obsolete text selection code. svn path=/import/netsurf/; revision=1096
Diffstat (limited to 'desktop/browser.h')
1 files changed, 2 insertions, 28 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index cd6cc202c..2442ace85 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -15,10 +15,10 @@
#include <stdbool.h>
#include <time.h>
-#include "netsurf/utils/config.h"
-#include "netsurf/content/content.h"
struct box;
+struct content;
+struct form_control;
struct form_successful_control;
struct gui_window;
struct history;
@@ -60,16 +60,6 @@ typedef enum {
} browser_mouse_click;
-struct box_selection
- struct content *content;
- struct box* box;
- int actual_x;
- int actual_y;
- int plot_index;
void browser_window_create(const char *url, struct browser_window *clone);
void browser_window_go(struct browser_window *bw, const char *url);
void browser_window_go_post(struct browser_window *bw, const char *url,
@@ -86,16 +76,6 @@ bool browser_window_key_press(struct browser_window *bw, char key);
void browser_window_form_select(struct browser_window *bw,
struct form_control *control, int item);
-void box_under_area(struct content *content, struct box* box, unsigned long x, unsigned long y, unsigned long ox, unsigned long oy,
- struct box_selection** found, int* count, int* plot_index);
-int box_position_lt(struct box_position* x, struct box_position* y);
-int box_position_gt(struct box_position* x, struct box_position* y);
-int box_position_eq(struct box_position* x, struct box_position* y);
-int box_position_distance(struct box_position* x, struct box_position* y);
-void gui_redraw_gadget(struct browser_window* bw, struct form_control* g);
/* In platform specific hotlist.c. */
void hotlist_visited(struct content *content);
@@ -109,10 +89,4 @@ void history_forward(struct browser_window *bw, struct history *history);
bool history_back_available(struct history *history);
bool history_forward_available(struct history *history);
-/* In platform specific about.c. */
-struct content *about_create(const char *url,
- void (*callback)(content_msg msg, struct content *c, void *p1,
- void *p2, const char *error),
- void *p1, void *p2, unsigned long width, unsigned long height);