Commit Graph

174 Commits

Author SHA1 Message Date
Chris Young 68f1b41bf0 Amiga: Use IANA codeset number to identify local charset 2020-05-26 15:08:51 +01:00
Vincent Sanders 860fbc2f8c make browser_window_update internal to browser window as intended 2020-05-25 13:45:54 +01:00
Daniel Silverstone adafe3c750
amiga: Probably support present_cookies
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-23 21:18:47 +01:00
Chris Young 3f84dba779 Amiga: fix an issue where the page info icon was not updating correctly 2020-05-23 01:02:09 +01:00
Chris Young aa86da5f02 Amiga: position page info window under page info button 2020-05-22 23:58:16 +01:00
Chris Young 244c49df26 Amiga: Add page info window
Currently untested but builds OK
2020-05-22 18:52:29 +01:00
Daniel Silverstone e6c666d4f4
chore: Perform sslcert_viewer-ectomy
This removes the sslcert_viewer entirely from the code. Where
possible I've also trimmed out of frontends any code I think
should not be present.

Frontends should check and remove any further references that I
have failed to catch.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2020-05-22 09:01:39 +01:00
Chris Young 0154bed8d7 Add page info icon to Amiga frontend 2019-12-08 17:23:36 +00:00
Vincent Sanders dae0ff3d26 remove warning callback from miscelaneous function table 2019-11-11 16:59:28 +00:00
Vincent Sanders 4dc4d8b318 add miscellaneous event to browser window callback table
extend the browser window callback table with a miscallaneous event
 entry. This is used to replace all browser window callbacks which
 take no parameters.

This reduces the API surface from seven separate calls to a single
 call with an enumeration which may be readily extended.

The initial implementation in the frontends simply calls the original
 implementations to reduce scope for errors.
2019-08-20 00:16:52 +01:00
Vincent Sanders 1e9bfcda7e
remove login window from amiga frontend 2019-08-14 12:23:04 +01:00
Chris Young ef75d670d6 Amiga: DebugPrintF is OS4-only 2019-08-10 14:51:15 +01:00
Chris Young 765c9c6654 Amiga: OS3 doesn't know FOREGROUNDPEN, so use TEXTPEN instead 2019-08-10 14:49:25 +01:00
Chris Young bf9ccc57c8 Amiga: Implement a simple listbrowser log in the GUI
Can be revealed/hidden with F12 and is currently undocumented.
2019-08-10 14:29:58 +01:00
Chris Young faec17a903 Remove scale from Amiga frontend
Remove shadow scale variable
Redraw when scale is changed
This also fixes a long-standing bug where the window would not redraw correctly when scrolling if not at 100% scale
2019-08-10 13:22:12 +01:00
Daniel Silverstone 1cf1ec55bc Support SSL verification through new about: handler
In doing this, also propagate why the certificates were bad
so that the page can display a reason.  We will need FatMessages
for all these.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-06 13:15:23 +01:00
Daniel Silverstone 8469f4cc8e Reimplement handling of BAD_AUTH inside browser_window
We now handle authentication requests via an `about:` page
which presents a nice form built into the browser window.
In order to do this, we add internal navigation as a concept
to the browser window and we strip the 401login support from all
frontends except monkey.

The 401login callback is now intended for password safe type support
rather than an immediately interactive prompt.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-08-06 11:26:47 +01:00
Vincent Sanders 641f5fb072 make use of improved browser_window_set_scale API in frontends 2019-08-03 15:53:07 +01:00
Vincent Sanders d4c01894c2 change browser_window_get_features to use unscaled coordinates 2019-08-03 14:29:06 +01:00
Vincent Sanders 0ebfff259f change browser_window_mouse_track to use unscaled coordinates 2019-08-03 14:29:05 +01:00
Vincent Sanders 0a8ed41a1a change browser_window_mouse_click to use unscaled coordinates
this means frontends no longer need to scale mouse click events thus
simplifying their implementation.
2019-08-03 14:29:05 +01:00
Vincent Sanders 3114e78ded fix missed get dimensions call in amiga frontend 2019-08-02 12:58:50 +01:00
Vincent Sanders 552aab42e1 remove scaled parameter from get_dimensions 2019-08-02 12:26:20 +01:00
Vincent Sanders 654840e845 AMIGA: Update to remove rectangle scaling from browser window invalidate 2019-08-01 22:34:13 +01:00
Chris Young a5e4bf8220 Make SimpleRefresh the default.
This reduces memory use.
2019-05-12 16:43:01 +01:00
Chris Young f139c4fa4d Add a render hook to ensure the browser window is redrawn when needed
This fixes the occasional damaged areas in SimpleRefresh mode
2019-05-12 16:38:48 +01:00
Chris Young 336a7dc170 Mark functions as static 2019-05-10 22:11:21 +01:00
Chris Young 6ac65a3674 Hide the message port which is shared amongst all Amiga NetSurf windows 2019-05-10 21:59:03 +01:00
Chris Young 24b910f4ff Make the window list more private
TODO: fix arexx.c to not need it
2019-05-10 21:49:00 +01:00
Chris Young 97010ecef5 Make screen pointer accesible through an accessor function only 2019-05-10 20:59:30 +01:00
Chris Young c5a07fac76 Replace global current gui_window with an accessor function 2019-05-10 20:32:40 +01:00
Chris Young 944d8fc412 try storing form_control in the hook data
it doesn't appear to be needed anywhere else
2019-05-08 18:12:22 +01:00
Chris Young 19742c826a Make gadget object enum private to gui.c 2019-05-08 17:51:53 +01:00
Chris Young 76618d9588 make gui_window_2 private to gui.c 2019-05-08 17:48:50 +01:00
Chris Young df5c18315f Pass ptr to clicktab var instead of func calls 2019-05-08 17:29:14 +01:00
Chris Young d0df3fa4b3 more accessor for gui_window_2 2019-05-08 01:44:44 +01:00
Chris Young 1cd30fdb3c Move ami_(re)set_pointer (back?) into gui.c as they need to set/read the gui_window_2 structure 2019-05-08 00:59:04 +01:00
Chris Young ae36d35728 throbber crap 2019-05-08 00:56:07 +01:00
Chris Young a5aa53657c get the window title from a gui_window 2019-05-08 00:35:09 +01:00
Chris Young 1edf8f2848 set find window function 2019-05-08 00:30:51 +01:00
Chris Young c64d48005c Try moving form_control into gui_window 2019-05-08 00:18:43 +01:00
Chris Young 4713e1c8af Accessor for the select menu control pointer 2019-05-08 00:16:06 +01:00
Chris Young ca1a519cfa remove direct access to gui_window_2's gui_window 2019-05-08 00:08:35 +01:00
Chris Young b9dd0a60c3 accessor for window from gui_window_2 2019-05-07 23:43:15 +01:00
Chris Young 83c3831853 set menu to window through a function 2019-05-07 22:22:12 +01:00
Chris Young 67af746324 Get menu structure directly from gui_window 2019-05-07 22:07:57 +01:00
Chris Young 6d1f480f01 Get the shared window's window structure directly from the gui_window
In a lot of places gui_window_2 was only being accessed for Window
2019-05-07 21:58:09 +01:00
Chris Young 5c7b5476f0 Make gui_window private to gui.c
TODO: ratonalise these accessors
2019-05-07 21:45:40 +01:00
Vincent Sanders dd96a69573 fix several amiga frontend warnings 2019-05-06 10:32:16 +01:00
Chris Young 178d4bc25c Fix some bsdsocket.library usage
NetSurf now builds against libcurl-AmiSSL
2019-04-08 12:49:13 +01:00