Commit Graph

198 Commits

Author SHA1 Message Date
Vincent Sanders
33c7df0c40 complete the rename of the gui browser table
When the operations tables were created the browser table was renamed
to miscellaneous except the actual rename patch was never applied,
this fixes that situation.
2016-04-16 23:50:21 +01:00
Vincent Sanders
67ded2a02a This moves message loading out of netsurf_init into each frontend
The translated message loading is dependant on configuration of
resource location in each frontend, additionally they should have the
ability to deal with errors in this loading in a implementation
specific manner.

This also extends the message loading API to be capable of loading
from an inline memory buffer instead of from a file.
2015-06-21 23:27:22 +01:00
Vincent Sanders
c105738fa3 Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.

The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.

A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
2015-05-28 16:08:46 +01:00
Vincent Sanders
3c61db33ff Convert atari frontend to use bitmap operation table 2015-04-16 15:56:48 +01:00
Vincent Sanders
a481e5965a remove atari need to use browser internal data structures 2014-11-21 12:32:46 +00:00
Vincent Sanders
f686882856 fix up some warnings in atari build 2014-11-10 22:17:07 +00:00
Vincent Sanders
33eb1f413a Doxygen warning fixes 2014-11-10 20:15:14 +00:00
Vincent Sanders
5562c9a553 Continue doxygen error cleanup. 2014-11-08 22:08:29 +00:00
Vincent Sanders
05a64bfde9 fix up more doxygen errors 2014-11-08 16:49:32 +00:00
Vincent Sanders
a325634882 fix errors in change url setting api to take an nsurl instead of a text string 2014-11-02 22:44:20 +00:00
Vincent Sanders
c14ddad660 change url setting api to take an nsurl instead of a text string 2014-11-02 22:30:45 +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
Michael Drake
434d6a49a9 Doesn't look like browser window internals are used here. 2014-10-25 15:47:14 +01:00
Vincent Sanders
5ef5ff6a07 stop dereferencing browser private data in atari gui 2014-10-19 19:21:00 +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
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
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
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
771da43c43 Pass store path to netsurf_init() 2014-09-15 21:51:24 +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
3a9fa29ee5 try and improve usage of browser window internals 2014-07-06 18:34:34 +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
Vincent Sanders
00b6cfc57e rework path to url mapping functions to convert from and to nsurl 2014-05-26 23:52:36 +01:00
Michael Drake
329bae77d8 Scope reduce some variables. 2014-05-19 17:48:42 +01:00
Michael Drake
2badf21a62 Remove unused variables. 2014-05-19 17:47:16 +01:00
Vincent Sanders
64f607760b add backing store storage path to browser initialisation 2014-05-13 15:53:06 +01:00
Vincent Sanders
16b11e7238 ensure operations tables are registered as early as possible. 2014-05-10 10:22:10 +01:00
Vincent Sanders
2326d3c503 remove unecessary utils/url.h includes 2014-05-09 10:15:42 +01:00
Vincent Sanders
c56642819e add file operations table and make all frontends use it.
This rationalises the path construction and basename file
operations. The default implementation is POSIX which works for all
frontends except windows, riscos and amiga which have differeing path
separators and rules.

These implementations are significantly more robust than the previous
nine implementations and also do not use unsafe strncpy or buffers
with arbitrary length limits.

These implementations also carry full documentation comments.
2014-05-07 16:24:51 +01:00
Vincent Sanders
283cd05d01 Improve documentation on mimetype fetcher table 2014-05-07 16:23:19 +01:00
Vincent Sanders
4d4d74c8cd move page search gui callbacks to their own operations table 2014-03-18 22:32:52 +00:00
Vincent Sanders
87f6314dab move scheduleing into browser operation table 2014-03-09 15:37:40 +00:00
Michael Drake
a38a63a37e Make history internal to browser_window module. 2014-02-15 18:44:50 +00:00
Michael Drake
af014bce99 Allow tab creation without history clone. Changes browser_window_create and browser_window_navigate flags. 2014-02-10 14:08:45 +00:00
Michael Drake
ea79e85fcd Clean up gui_window creation API. 2014-02-09 13:07:39 +00:00
Vincent Sanders
886a3106db move utf8 local conversion operations to table 2014-02-01 22:17:36 +00:00
Vincent Sanders
654da2ffb5 move utf8 conversion routines to use nserror instead of their own error enum 2014-01-28 21:40:13 +00:00
Vincent Sanders
8ce0a10670 move path_to_url and url_to_path to fetch operation table 2014-01-25 23:01:32 +00:00
Vincent Sanders
0475693394 create table for fetcher operations and move all operations into it 2014-01-23 00:00:18 +00:00
Vincent Sanders
2f478eb5d7 fix missing forward declaration 2014-01-16 15:23:11 +00:00
Vincent Sanders
6cfa3cce63 fix atari build errors 2014-01-16 15:07:14 +00:00
Vincent Sanders
d47fed4524 move 401 login into operation table 2014-01-16 00:52:17 +00:00
Vincent Sanders
38cb39339a move filename_from_path and path_add_part into gui operation tables 2014-01-16 00:01:25 +00:00
Vincent Sanders
bd065d4a43 split browser gui operations up 2014-01-15 19:37:05 +00:00
Vincent Sanders
0075eab194 move remaining gui operations to table 2014-01-14 23:31:54 +00:00