summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-18 21:07:04 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-18 21:07:04 +0100
commita8a6098f689a936307ca11cc922a8fc535654007 (patch)
tree3ccd5c266e6578aa729ca86a23ebb0fc8c2a03cd
parent5aa2feaa06fc7850a4c4892293b1174a8d4ed92c (diff)
downloadnetsurf-a8a6098f689a936307ca11cc922a8fc535654007.tar.gz
netsurf-a8a6098f689a936307ca11cc922a8fc535654007.tar.bz2
move core window API into netsurf header path
-rw-r--r--desktop/tree.c2
-rw-r--r--desktop/treeview.c2
-rw-r--r--frontends/atari/treeview.c2
-rw-r--r--frontends/gtk/corewindow.h2
-rw-r--r--include/netsurf/core_window.h (renamed from desktop/core_window.h)17
5 files changed, 17 insertions, 8 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index a5c97c33c..4972777ba 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -32,11 +32,11 @@
#include "utils/utils.h"
#include "utils/nsoption.h"
#include "netsurf/browser_window.h"
+#include "netsurf/core_window.h"
#include "content/content.h"
#include "content/hlcache.h"
#include "desktop/tree.h"
-#include "desktop/core_window.h"
struct tree {
unsigned int flags; /* Tree flags */
diff --git a/desktop/treeview.c b/desktop/treeview.c
index fa7fea02d..387b34e7b 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -31,6 +31,7 @@
#include "netsurf/clipboard.h"
#include "netsurf/layout.h"
#include "netsurf/keypress.h"
+#include "netsurf/core_window.h"
#include "content/hlcache.h"
#include "css/utils.h"
@@ -39,7 +40,6 @@
#include "desktop/textarea.h"
#include "desktop/treeview.h"
#include "desktop/gui_internal.h"
-#include "desktop/core_window.h"
/** @todo get rid of REDRAW_MAX -- need to be able to know window size */
#define REDRAW_MAX 8000
diff --git a/frontends/atari/treeview.c b/frontends/atari/treeview.c
index 4298fca54..731c032e3 100644
--- a/frontends/atari/treeview.c
+++ b/frontends/atari/treeview.c
@@ -29,8 +29,8 @@
#include "utils/utils.h"
#include "netsurf/plotters.h"
#include "netsurf/mouse.h"
+#include "netsurf/core_window.h"
#include "desktop/treeview.h"
-#include "desktop/core_window.h"
#include "atari/gui.h"
#include "atari/plot/plot.h"
diff --git a/frontends/gtk/corewindow.h b/frontends/gtk/corewindow.h
index d6f3011ba..cfb865edc 100644
--- a/frontends/gtk/corewindow.h
+++ b/frontends/gtk/corewindow.h
@@ -19,7 +19,7 @@
#ifndef GTK_COREWINDOW_H
#define GTK_COREWINDOW_H
-#include "desktop/core_window.h"
+#include "netsurf/core_window.h"
/**
* nsgtk core window mouse state
diff --git a/desktop/core_window.h b/include/netsurf/core_window.h
index 38045a3e8..274c757e3 100644
--- a/desktop/core_window.h
+++ b/include/netsurf/core_window.h
@@ -16,12 +16,21 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/** \file
- * Core window handling (interface).
+/**
+ * \file
+ * Interface to core window handling.
+ *
+ * This provides a generallised API for frontends to implement which
+ * allows them to provide a single implementation for general window
+ * operations on their platform.
+ *
+ * General core implementations (cookie manager, global history,
+ * hotlist and ssl certificate viewer) use this API to perform
+ * operations like drawing and user input in a portable way.
*/
-#ifndef _NETSURF_DESKTOP_CORE_WINDOW_H_
-#define _NETSURF_DESKTOP_CORE_WINDOW_H_
+#ifndef _NETSURF_CORE_WINDOW_H_
+#define _NETSURF_CORE_WINDOW_H_
struct core_window;
struct rect;