Commit Graph

855 Commits

Author SHA1 Message Date
Vincent Sanders
ad343eccb1 remove unecessary utils/types.h
This cleans up this header and moves the functionality into more
useful places while reducing the include complexity but only pulling
in whats required.
2014-11-02 20:10:32 +00:00
Vincent Sanders
c31c4babe1 Change contextual content retrieval to browser features.
Update the API which allows frontends to acquire the page features
(images, link urls or form elements) present at the given coordinates
within a browser window.

By making this an explicit browser_window API and using the browser.h
header for the associated data structure with a more appropriate API
naming the usage is much more obvious and contained.

Additionally the link url is now passed around as a nsurl stopping it
being converted from nsurl to text and back again several times.
2014-11-02 15:46:42 +00:00
Vincent Sanders
7ace528729 Update url setting API to return nserror code instead of calling warn_user 2014-10-29 00:18:12 +00:00
Vincent Sanders
14e2829489 remove the die API from the core.
The die() API for abnormal termination does not belong within the core
of netsurf and instead errors are propogated back to the callers.

This is the final part of this change and the API is now only used within
some parts of the frontends
2014-10-26 12:42:53 +00:00
Michael Drake
503da8f3f6 Try doxygen todo format. 2014-10-25 16:32:13 +01:00
Michael Drake
cf199105c5 Shouldn't need bw internals now. 2014-10-25 16:12:16 +01:00
Michael Drake
6e3a6b37e0 Attempt to avoid using bw internals.
There are so many levels of windows here, that this could well be
broken, as its rather confusing.
2014-10-25 16:10:49 +01:00
Michael Drake
65b4c2f86a Shouldn't need bw internals now. 2014-10-25 16:05:13 +01:00
Michael Drake
720579e110 Don't access bw internals. 2014-10-25 16:04:43 +01:00
Michael Drake
6823d229ea Reduce usage of bw internals. Add some TODOs for m0n0 to look at. 2014-10-25 15:58:39 +01:00
Michael Drake
434d6a49a9 Doesn't look like browser window internals are used here. 2014-10-25 15:47:14 +01:00
Michael Drake
93e3d84b98 Use API to test for bw content. 2014-10-25 15:44:50 +01:00
Michael Drake
c4829ca636 Initial bw scale comes from core. 2014-10-25 15:43:41 +01:00
Michael Drake
a96ba0369c Shouldn't need browser window internals now. 2014-10-25 15:37:03 +01:00
Michael Drake
dd59552f6e Attempt to remove dependancy of search implementation on bw internals. 2014-10-25 15:34:22 +01:00
Michael Drake
030c18d0df Doesn't look like browser window internals are used here. 2014-10-25 15:25:36 +01:00
Michael Drake
6b846c363d Add trivial maps facilitator at about:maps
This is a simple HTML front end for the Google Static Maps API, since
we don't yet have enough JS support for the full Google Maps.

See:
  https://developers.google.com/maps/documentation/staticmaps/
2014-10-22 20:42:21 +01:00
Vincent Sanders
5ef5ff6a07 stop dereferencing browser private data in atari gui 2014-10-19 19:21:00 +01:00
Vincent Sanders
56731e1dbb remove all unecessary desktop/browser.h includes 2014-10-17 10:49:24 +01:00
Vincent Sanders
19c26ca182 update atari includes to accomodate gui operation table refactor 2014-10-16 22:33:44 +01:00
Vincent Sanders
30f118a86d remove unecessary css includes from fronetends 2014-10-13 15:45:51 +01:00
Vincent Sanders
02bbaa3e88 split version info into its own header and remove unnecessary nesurf.h includes
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.

Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +01:00
Vincent Sanders
17be8cf216 Put the font operations table alongside all the other core API
The netsurf core is driven from numerous operation tables most of
which are now set through a common netsurf_register() interface. The
font and plotting interfaces are currently separate and unlike all the
other operation tables are modified for differing contexts.

This change moves the font operations alongside all the other
operations table and remove unnecessary interaction with the renderers
font internals. Further this also removes the need for css internals
to be visible in frontends.
2014-10-13 11:56:31 +01:00
Vincent Sanders
3fa0ed01c0 add API to set DPI 2014-10-13 02:34:10 +01:00
Vincent Sanders
aca826ef69 fix typo in netsurf_quit rework 2014-10-12 13:03:16 +01:00
Vincent Sanders
685e4a7fc5 remove use of deprecated netsurf_quit variable
The core no longer needs to run the event polling loop as fetches are now
scheduler driven. This is part of a series which will ultimately remove
netsurf_poll callback altogether.

The Atari maintainer probably wants to look at moving the ami_quit
handling inside atari_poll() to further reduce overhead.
2014-10-12 10:44:05 +01:00
Vincent Sanders
521d1824cf whitespace and documentation cleanups 2014-10-12 10:35:56 +01:00
Ole Loots
0864dbf8a8 Do not show the maximize window widget 2014-09-17 00:54:16 +02:00
Ole Loots
2c0407d7d4 Moved Save/Abort buttons into a toolbar 2014-09-17 00:47:26 +02:00
Ole Loots
a63715a319 Include default cache folder in package 2014-09-16 23:03:44 +02:00
Ole Loots
1ce4a14da9 Fixed some unused variable warnings. 2014-09-15 23:31:39 +02:00
Ole Loots
067b21e8f6 Fixed some unused variable warining. 2014-09-15 23:27:15 +02:00
Ole Loots
2c01ca13f2 Enabled the filesystem backing store. 2014-09-15 23:06:28 +02:00
Ole Loots
ccac364857 Added disc cache options to the settings dialog 2014-09-15 22:19:13 +02:00
Ole Loots
771da43c43 Pass store path to netsurf_init() 2014-09-15 21:51:24 +02:00
Ole Loots
48c48319e0 Added missing include 2014-09-13 14:43:10 +02:00
Ole Loots
cc1da0813e Removed unused variable 2014-09-13 14:40:52 +02:00
Ole Loots
00e9dd8690 Removed unused variable / dead code. 2014-09-13 14:40:02 +02:00
Ole Loots
72fb68014d Removed unused variable. 2014-09-13 14:38:18 +02:00
Ole Loots
dcccaf2217 Always return correct type 2014-09-13 14:25:12 +02:00
Ole Loots
31bece790b Removed unused label 2014-09-13 14:24:42 +02:00
Ole Loots
d7f479070e Replace default posix file handling table with GEMDOS compatible one
Since build #1917, URL to path conversion was broken.
Thanks to Peter for reporting the bug.
Most of the path handling code was taken from the windows frontend.

Note:
- NetSurf core switched to an file handling table with default
  posix compatible functions.
- The atari frontend always uses GEMDOS compatible
  path like: "u:\folder\1", even when running on top of
  FreeMiNT environment.
2014-09-13 14:15:01 +02:00
Vincent Sanders
4f530a3f8f Pull warning flags out into variables that can be overriden seperately for C and C++ 2014-09-05 16:01:44 +01:00
Vincent Sanders
07f1ae7461 fixup missing includes 2014-07-06 19:36:12 +01:00
Vincent Sanders
3a9fa29ee5 try and improve usage of browser window internals 2014-07-06 18:34:34 +01:00
Vincent Sanders
caf918d2f2 fixup merge of scheduled reformat 2014-07-06 11:01:39 +01:00
Vincent Sanders
0f151e37cb Merge branch 'vince/reformatpending'
Conflicts:
	amiga/gui.c
2014-07-06 10:45:31 +01:00
Vincent Sanders
8848f754e0 documentation fixes and cleanups 2014-07-02 16:39:08 +01:00
Vincent Sanders
18aefabd20 change reformat to be driven from the scheduler like redraw 2014-07-01 09:27:20 +01:00
Vincent Sanders
8944edd649 convert all frontends to scheduled fetch operation 2014-06-26 19:05:59 +01:00