Commit Graph

2068 Commits

Author SHA1 Message Date
Chris Young
dec0ec6ade Remove GetVideo support
It appears to be a dead project and no longer available for download.
2014-12-14 12:10:52 +00:00
Chris Young
d46e6a6894 Encourage requesters onto the correct screen and remove some unneeded includes 2014-12-13 15:53:55 +00:00
Chris Young
17ec567266 Remove redundant check 2014-12-10 17:44:38 +00:00
Chris Young
0166083584 Get scale after memory allocated 2014-12-04 19:02:59 +00:00
Michael Drake
19fed3976f Don't need browser window private header now. 2014-12-04 12:23:24 +00:00
Michael Drake
f0b38f27d4 Use API to get at a browser window's content. 2014-12-04 12:22:56 +00:00
Michael Drake
60877b6ff5 Fix missmatched bracket. 2014-12-04 12:18:36 +00:00
Michael Drake
4af70cd1ac Use browser_window_get_extents to simplify window content size handling. 2014-12-04 12:14:16 +00:00
Michael Drake
fad6318d59 Use browser_window_get_url() 2014-12-04 12:04:36 +00:00
Michael Drake
b7b1bfe548 Don't include browser_private.h 2014-12-04 12:02:13 +00:00
Michael Drake
c5a8620ef9 Remove what seems a redundant check for bw->download. 2014-12-04 12:01:22 +00:00
Michael Drake
84261a8199 Use browser_window_get_url instead of poking inside bw at contents. 2014-12-04 11:59:59 +00:00
Michael Drake
c4e37fb03d Use API to get content from browser_window. 2014-12-04 11:58:49 +00:00
Michael Drake
e4437ad76b Store scale in gui_window. Remove a lot of bw dereferencing for scale. 2014-12-04 11:42:12 +00:00
Chris Young
dd9a4af311 Remove unused variable 2014-12-01 23:38:13 +00:00
Chris Young
5f9c8b02b2 Clear message port variable so we don't errorneously send messages to it. 2014-12-01 21:48:37 +00:00
Chris Young
020e1f8272 Run backing store jobs synchronously in the background. 2014-12-01 21:42:07 +00:00
Chris Young
2f41c1ad11 Fix leak 2014-12-01 18:44:04 +00:00
Chris Young
6a2461da8d Enable the async write process to be disabled for testing purposes 2014-11-30 01:25:20 +00:00
Chris Young
70e777c30d Add some comments about timer.device. 2014-11-29 19:56:54 +00:00
Chris Young
335ba082fd Ensure we're not running events ahead of time. 2014-11-22 17:15:52 +00:00
Chris Young
4a395ad025 Process scheduled event changes before incoming timer events.
This stops things being run that have just been deleted.  However, may cause the next event to run early because we don't check the time.
2014-11-22 17:10:07 +00:00
Chris Young
bcd7413f8e Fix llcache ops table 2014-11-22 16:51:00 +00:00
Chris Young
0cd682644b Revert "Revert "Write out to the backing store asynchronously.""
This reverts commit 75623179aa.
2014-11-22 16:41:29 +00:00
Chris Young
277ceb9fc2 Reduce stack to 2K 2014-11-22 16:38:26 +00:00
Chris Young
9e98d77531 Reply to the timer before running the scheduled task. 2014-11-22 16:37:49 +00:00
Chris Young
2de1553a00 New scheduler 2014-11-22 16:27:39 +00:00
Chris Young
f8d8d218d8 Initial steps for a scheduler process 2014-11-22 16:27:39 +00:00
Chris Young
fe56795205 Revert "Should be a while loop in case of multiple simultaneous event triggers."
This reverts commit 9dcf001a0b.

For ehatever reason this is entirely broken, but I'm in the process of rewriting so just revert for now to get the working builds again.
2014-11-22 14:18:00 +00:00
Michael Drake
d9a63bb9e0 Fix brackets. 2014-11-22 00:06:01 +00:00
Michael Drake
1a1b6f8984 Shouldn't need browser_private.h now. 2014-11-22 00:02:28 +00:00
Michael Drake
0756b544c6 Use API to find if content is selectable, instead of guessing. 2014-11-22 00:02:28 +00:00
Michael Drake
ba9a049d7b Simplify ami_history_open API and use correct call to get history object. 2014-11-22 00:02:28 +00:00
Michael Drake
0c7dc95dda Use API to get URL. 2014-11-22 00:02:28 +00:00
Michael Drake
c9683119c3 Use browser_window_get_content where we need to. 2014-11-22 00:02:27 +00:00
Chris Young
9dcf001a0b Should be a while loop in case of multiple simultaneous event triggers. 2014-11-21 23:47:26 +00:00
Michael Drake
60c33e0410 Should be free of reliance on browser window internals here now. 2014-11-21 14:39:12 +00:00
Michael Drake
781fe8f330 Use browser_window_get_content() to get the current content.
Although I dislike this API, and it may go at some point.
2014-11-21 14:38:17 +00:00
Michael Drake
90f89f98e3 Use API for getting browser window history. 2014-11-21 14:37:17 +00:00
Michael Drake
b4e044f6c9 Use browser_window_get_url() instead of getting URL from current content. 2014-11-21 14:30:09 +00:00
Michael Drake
3b686eaccc Use browser_window_can_select(), instead of assuming based on content type. 2014-11-21 14:26:29 +00:00
Michael Drake
0f0c3b02d7 Use public bw header. 2014-11-21 09:28:37 +00:00
Michael Drake
c3ae0c0699 Should be able to switch to public bw header now. 2014-11-21 09:28:37 +00:00
Michael Drake
8fc7da72c6 Use browser_window_get_url, instead of fishing content out of bw and getting URL from that. 2014-11-21 09:28:37 +00:00
Michael Drake
8a6be34a62 Use public bw header. 2014-11-21 09:28:37 +00:00
Michael Drake
6832f80be3 Don't appear to need browser_private.h here. 2014-11-21 09:28:37 +00:00
Chris Young
75623179aa Revert "Write out to the backing store asynchronously."
This reverts commit 1ddf8215cf.

Appears to be unsafe to run this in a new process.
2014-11-19 23:34:53 +00:00
Chris Young
1ddf8215cf Write out to the backing store asynchronously.
Despite the fact AmigaOS filesystems run as separate processes,
DOS filesystem writes occur synchronously waiting for the disk
write to finish before returning.  Here we have effectively taken
the core's fs backing store and extended it slightly so the store
operation is spun off into a new process, running at a lower task
priority than NetSurf itself.  This stops the UI pauses that occur
shortly after loading pages as NetSurf commits the cache to disk.

Somewhat experimental, pending more extensive user testing.
2014-11-18 19:31:11 +00:00
Chris Young
cfc9971d0e Remove no longer used poll option from schedule runner 2014-11-17 23:47:28 +00:00
Chris Young
230e348315 update comments 2014-11-16 16:44:19 +00:00
Chris Young
0966b8097c Allocate screen title when first needed and keep it private to amiga/gui.c 2014-11-16 16:40:41 +00:00
Chris Young
20705189b9 Make win_destroyed variable private to amiga/gui.c 2014-11-16 16:31:35 +00:00
Chris Young
3c4b721621 Avoid bw->window ref 2014-11-16 16:24:07 +00:00
Chris Young
261e68592b Fix ARexx for gui_window changes 2014-11-16 16:13:13 +00:00
Chris Young
6ce6b9ae97 Replace curbw (current browser_window, used mostly for ARexx support) with cur_gw (current gui_window) 2014-11-16 16:01:59 +00:00
Chris Young
79690c6c90 Remove the global which meant we could only open one local history window.
Now we can open multiple local history windows, which avoids the confusion when requesting a local history window when one is already open.
2014-11-16 15:51:57 +00:00
Chris Young
456734a5c2 Stop history_local accessing gui_window via browser_window, and remove some unneeded globals 2014-11-16 15:42:45 +00:00
Chris Young
7053638a72 Remove some more cyclic references 2014-11-16 15:33:11 +00:00
Chris Young
668aa3d84b Remove some cyclic referencing 2014-11-16 15:28:42 +00:00
Chris Young
d626487fe1 Remove any pending favicon refresh to avoid a crash on exit/window close 2014-11-16 15:06:32 +00:00
Chris Young
0f85ed7b9d Fix amiga/tree.c for new structs 2014-11-16 14:57:25 +00:00
Chris Young
aa28650b30 Fix amiga/search.c for new structs 2014-11-16 14:56:51 +00:00
Chris Young
e8d551398b Fix amiga/menu.c for new structs 2014-11-16 14:55:58 +00:00
Chris Young
223da14e72 Fix amiga/file.c for new structs 2014-11-16 14:54:25 +00:00
Chris Young
bab178d3c1 Fix amiga/drag.c for new structs 2014-11-16 14:53:26 +00:00
Chris Young
f2d1cfc7de Fix amiga/download.c for new structs 2014-11-16 14:52:49 +00:00
Chris Young
30039a06ee Fix amiga/context_menu.c for new struct 2014-11-16 14:50:48 +00:00
Chris Young
49e524c1d8 Fix amiga/clipboard.c for new structure 2014-11-16 14:49:42 +00:00
Chris Young
6a891b47c0 Fix amiga/arexx.c for new structure layout 2014-11-16 14:47:26 +00:00
Chris Young
497994b0f4 Fix amiga/gui.c to not ref gui_window via browser_window 2014-11-16 14:44:40 +00:00
Chris Young
7cb7879427 Remove a loop which appears to do nothing 2014-11-16 14:25:31 +00:00
Chris Young
e3620ac675 Change clicktab userdata to hold gui_window instead of browser_window 2014-11-16 14:24:18 +00:00
Chris Young
1d50a2ff8a Remove unused variable 2014-11-16 14:08:00 +00:00
Chris Young
e75cdeeefd Don't make the app id a global var 2014-11-16 14:06:12 +00:00
Chris Young
2d5e4f6dcd Update history_local.c to use SPACE_RenderBox compatibility function 2014-11-15 14:39:54 +00:00
Chris Young
28b74a9763 Update theme.c to use SPACE_RenderBox compatiblity function 2014-11-15 14:35:15 +00:00
Chris Young
7c33655aae Use SPACE_RenderBox compatibility function in tree code 2014-11-15 14:01:38 +00:00
Chris Young
b2fd904eef Make the SPACE_RenderBox compatibility functions public 2014-11-15 13:52:06 +00:00
Chris Young
e909c93804 Use SPACE_RenderBox if available, as SPACE_AreaBox is "dangerous". 2014-11-15 13:46:23 +00:00
Chris Young
564944c244 Use the correct Messages string, modify the contents to better reflect what it (currently) does - only edits the title, not the address. 2014-11-13 23:38:58 +00:00
Chris Young
9857030a12 Add an edit entry option to the edit menu 2014-11-13 23:31:26 +00:00
Vincent Sanders
79e501075a make the form select menu API smaller.
By hiding all but the form selection menu option structure from code
outside of render this reduces the API to the absolute minimum to
support this feature.
2014-11-13 21:52:08 +00:00
Vincent Sanders
9fde3502b6 doxygen cleanups in utils 2014-11-12 23:27:13 +00:00
Vincent Sanders
3e4f5737aa Doxygen cleanups in frontends 2014-11-11 15:46:04 +00:00
Chris Young
8a6500c539 Fix warnings 2014-11-11 00:03:04 +00:00
Chris Young
fd7abab012 Fix warnings 2014-11-11 00:00:57 +00:00
Chris Young
f787db7823 Fix warnings 2014-11-10 23:56:54 +00:00
Chris Young
bb0f4f13af Fix warnings 2014-11-10 23:52:43 +00:00
Chris Young
fb0af6f269 Call open/close timer from schedule init/free functions 2014-11-10 23:50:28 +00:00
Chris Young
4ca37c35cf Fix warnings 2014-11-10 23:43:26 +00:00
Chris Young
24bf863522 Fix warnings 2014-11-10 23:38:59 +00:00
Chris Young
e24d3139c7 Fix warnings 2014-11-10 23:33:08 +00:00
Chris Young
6d3f0fa94c requester.class no longer used. 2014-11-10 23:31:38 +00:00
Chris Young
e85caab910 Remove unused includes 2014-11-10 23:30:17 +00:00
Chris Young
91662977eb Show error instead of warning requester when essential library fails to open. 2014-11-10 23:29:28 +00:00
Chris Young
5776b39b8d Use TimedDosRequester so we're not relying on requester.class being open. 2014-11-10 23:25:43 +00:00
Chris Young
e9696b2fa9 New function for an error requester with the correct imagery which doesn't attempt to do Messages lookup. 2014-11-10 21:59:51 +00:00
Chris Young
098fbb628b Move some init functions together for the sake of clarity 2014-11-10 19:01:30 +00:00
Chris Young
225161b05e Move MIME cleanup before NetSurf's internal exit. 2014-11-10 18:58:58 +00:00
Chris Young
16e80452c2 Remove gui_init and merge the contents into main() 2014-11-10 18:57:38 +00:00
Chris Young
7bf92f6a04 Remove die()
Terminating execution abruptly on AmigaOS is dangerous.
2014-11-10 18:56:09 +00:00
Chris Young
9bbb737fbf Fix warnings 2014-11-10 18:48:26 +00:00
Chris Young
7e5ed88763 Fix warnings, formatting 2014-11-10 18:41:38 +00:00
Chris Young
9f0b252371 Fix warnings 2014-11-09 19:58:19 +00:00
Chris Young
a84f2d2290 Fix warning 2014-11-09 19:56:29 +00:00
Chris Young
8557992979 Fix warnings 2014-11-09 19:53:24 +00:00
Chris Young
53482c68cf Fix warnings 2014-11-09 19:44:59 +00:00
Chris Young
9e0d4e4947 Fix warning 2014-11-09 19:40:19 +00:00
Chris Young
a6335a610e Fix warning 2014-11-09 19:39:36 +00:00
Chris Young
7711652819 Fix warnings 2014-11-09 19:38:47 +00:00
Chris Young
c62f967935 Fix warnings 2014-11-09 19:37:35 +00:00
Chris Young
1d07bd0657 Fix warnings 2014-11-09 19:34:57 +00:00
Chris Young
04c80ce0a7 Fix warnings 2014-11-09 19:26:59 +00:00
Chris Young
052445a0e1 Fix warnings 2014-11-09 19:17:35 +00:00
Chris Young
f4329c54ba Fix warnings 2014-11-09 19:04:56 +00:00
Chris Young
e0833a7f2e Fix warnings 2014-11-09 01:10:52 +00:00
Chris Young
42f1e685b3 Fix warnings 2014-11-09 01:07:35 +00:00
Chris Young
278dcaa31b Fix warnings 2014-11-09 01:04:35 +00:00
Chris Young
5304f2a2a1 Fix warnings 2014-11-09 01:00:08 +00:00
Chris Young
de1fccd8c4 Fix warnings 2014-11-09 00:56:11 +00:00
Chris Young
8299f923f8 Fix warnings, remove unused code. 2014-11-09 00:48:04 +00:00
Chris Young
659d3913ca Fix warning 2014-11-09 00:39:17 +00:00
Chris Young
e8126d2ee9 Fix warnings 2014-11-09 00:37:35 +00:00
Chris Young
455e4d3d21 Don't bug the user if a non-essential library can't be opened - just log it.
Also log if the interface can't be obtained.  If we've asked for the right library version, this should never fail.
2014-11-09 00:25:29 +00:00
Chris Young
4329c7a328 Terminate execution if an essential library fails to open 2014-11-09 00:06:56 +00:00
Chris Young
30cdaa1aa9 Log library open attempts 2014-11-09 00:06:56 +00:00
Chris Young
c2eb205685 Open libraries *before* we need them... 2014-11-09 00:06:56 +00:00
Chris Young
2698ad474e All required libs 2014-11-09 00:06:55 +00:00
Chris Young
d3f7d78dae Fix graphics.library 2014-11-09 00:06:55 +00:00
Chris Young
84020bb355 More libraries, tidy-up 2014-11-09 00:06:55 +00:00
Chris Young
998f9b4990 Use macros for clarity 2014-11-09 00:06:55 +00:00
Chris Young
3c1aeebb1e Fix headers 2014-11-09 00:06:55 +00:00
Chris Young
9601ddacad Add new libs file to centrally open/close required libraries, and move a couple of the existing manual opens to it. 2014-11-09 00:06:55 +00:00
Chris Young
4c7ef8db3f remove -lauto 2014-11-09 00:06:55 +00:00
Vincent Sanders
8f64d5d223 Improve Doxygen documentation 2014-11-08 12:35:11 +00:00
Vincent Sanders
f287379a7c Fix several doxygen issues 2014-11-08 11:38:20 +00:00
Chris Young
c637cd04b1 Don't crash if download dir not set 2014-11-04 18:33:44 +00:00
Vincent Sanders
349e588f81 Fix stupid nsurl struct mistake for amiga. 2014-11-03 23:19:23 +00:00
Vincent Sanders
bdfedb686b replace save_link operation table entry usage of textural url with nsurl 2014-11-03 23:05:59 +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
03abea12a7 fix errors introuced with previous header cleanup. 2014-11-02 20:39:15 +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
Michael Drake
0f12325506 Don't need old URL header. 2014-10-31 14:39:11 +00:00
Vincent Sanders
ce3d991918 use nsurl_nice and remove url_nice
change all callers over to using new API for generating nice filenames
from a url and remove the old API.
2014-10-31 00:24:57 +00:00
Chris Young
c3522ea747 Change min stack (again) to 128K
It has come to my attention that some websites (eg amigakit.com) are using marginally more than the 96K stack space set previously.  This should give plenty of breathing space.
2014-10-30 21:51:52 +00:00
Vincent Sanders
d900feefba add missing include to amiga history 2014-10-29 00:26:48 +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
Chris Young
4b941297aa If the initial download dir is changed, update requesters immediately to use that as the next location. 2014-10-28 20:27:14 +00:00
Vincent Sanders
bbcb7d91b2 fix amiga pdf save include 2014-10-27 00:07:15 +00:00
Vincent Sanders
d204d6d555 Clean up saving as PDF
This removes the global PDF_Password interface that had completely
bitrotted and moves it into the standard misc operation table with a
sensible defualt implementation.

This also cleans up and fixes the gtk frontend implementation of the
pdf password callback so it compiles.

Finally this moves the implementation to a sensible place alongside
the other exporters reducing target makefile complexity futher.
2014-10-26 23:53:14 +00:00