Commit Graph

515 Commits

Author SHA1 Message Date
Vincent Sanders
ad18ef5db9 Update RISC OS frontend to use bitmap operation table 2015-04-15 23:57:39 +01:00
Vincent Sanders
c0469ca905 pass a url info the RISC OS object info preparation
The target url was previously being passed as a string derived from
nsurl_access which was asserting if the target_url was NULL. The nsurl
is now passed and a null check performed before attempting to access
it.

Closes #2298
2015-03-28 18:34:42 +00:00
Witold Filipczyk
befa5e6ed3 To avoid namespace conflicts with ncurses add NetSurf key prefix.
Adds a NetSurf key code prefix of NS_ to all key codes.
2015-03-27 09:36:19 +00:00
Vincent Sanders
8a99b045bc Remove url from content thumbnailers API
The content thumbnailers for each frontend were being provided the
contents url. This was only ever used to call the urldb thumbnail
setting API.

This changes it so the single callsite that passed a valid url adds
the bitmap to that url itself in desktop_history.c instead of forcing
every frontend to require the urldb API.

Additionally the old API could pass the url as NULL which was causing
asserts where this was not an expected parameter value. Because of
this this fixes bug #2286 which was also present in the monkey
frontend as both called nsurl_access() on the url without the NULL
check and caused an assertion.
2015-03-15 00:00:45 +00:00
John-Mark Bell
b051c037d3 RISC OS: squash warnings from GCC 4.7 2015-02-25 00:32:46 +00:00
Vincent Sanders
59df200b83 Error in RISC OS form entry API changes.
When the form entry changes were made the RISC OS implementation was
updated but the loop that counts entries was using an incorrect loop
iterator variable which was never incremented hence causing an
infinite loop.
2014-11-15 16:38:15 +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
a99b1325d7 Doxygen cleanups 2014-11-12 11:45:07 +00:00
Vincent Sanders
3e4f5737aa Doxygen cleanups in frontends 2014-11-11 15:46:04 +00:00
Vincent Sanders
33eb1f413a Doxygen warning fixes 2014-11-10 20:15:14 +00:00
Vincent Sanders
bc1914fbb1 remove uneeded html render include 2014-11-07 13:01:07 +00:00
Vincent Sanders
3405803280 Improve content encoding information API
Extend the content_get_encoding() API to retrieve the source of
the encoding as well as the actual encoding.
2014-11-07 12:33:34 +00:00
Vincent Sanders
8c2cfecfb5 Allow content handlers to have debug values set through API
Previously content handler debugging features were accessed by global
variables. This allows the setting of debugging parameters via a
content API giving per content control over debugging features.
Currently only used by the html content handler to toggle global
redraw debugging.
2014-11-06 22:51:46 +00:00
Vincent Sanders
8ec7ad053a Make the fetching of a contents encoding generic.
The frontends previously had to use an html renderer API to get the
encoding of a content. This also required the explicit checking of the
contents type rather than using the existing content API to abstract
this knowledge.
2014-11-05 23:44:31 +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
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
1794ac0d33 Do not attempt to convert an empty url on RISC OS menu click
When updating the RISC OS frontend to using nsurl for its menu
operations (as part of getting rid of url_nice) the check for
null (empty) url strings in the url under the mouse was omitted
leading to a crash.

Additionaly a use of url where current_menu_url was intended was
missed leading to crashes when "open in new window" was used.
2014-11-01 23:44:41 +00:00
Michael Drake
368861faab Remove useless includes of utils/url.h 2014-10-31 14:36:34 +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
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
808783c2eb Throbber code was doing mad things with browser windows. 2014-10-25 12:14:36 +01:00
Michael Drake
591cc91db8 Don't need browser_private in the RISC OS front end any more. 2014-10-25 12:06:52 +01:00
Michael Drake
2bf36893bc Use core browser window scrollbar type function instead of dereffing bw. 2014-10-25 12:04:51 +01:00
Michael Drake
af3cb6bf94 Use browser_window_is_frameset instead of dereffing bw. 2014-10-25 12:02:36 +01:00
Michael Drake
94f32b8369 Move create_form_select_menu to window gui table. 2014-10-24 20:45:21 +01:00
Michael Drake
ffd197b848 Any top level window border is entierly up to the front end. 2014-10-23 09:28:53 +01:00
Michael Drake
e329e3c03a Ensure correct initial scale. 2014-10-22 21:02:29 +01:00
Michael Drake
ea851ba788 Keep throbber status in the gui_window. 2014-10-18 21:14:07 +01:00
Michael Drake
efb009988e Fix typo. 2014-10-18 20:09:37 +01:00
Michael Drake
d1903a90d6 Need to use API for content. 2014-10-18 19:59:05 +01:00
Michael Drake
6f26fa421e Use proper content aquisution API. 2014-10-18 19:54:36 +01:00
Michael Drake
6186d791d2 More conversion to use proper browser_window API. 2014-10-18 19:52:13 +01:00
Michael Drake
5a9660e86a Use API instead of dereffing bw. 2014-10-18 19:47:20 +01:00
Michael Drake
0666fcc742 Use can_select, rather than using insider knowledge of contents. 2014-10-18 18:54:36 +01:00
Michael Drake
8dea0fe894 Shouldn't need to have "insider knowledge" of contents. Use the bw API. 2014-10-18 18:25:23 +01:00
Michael Drake
94e2b8cbb5 Remove redundant declaration of gui. 2014-10-18 18:17:46 +01:00
Michael Drake
38cd1e1fd7 Replace a browser_window deref with browser_window_has_content() 2014-10-18 18:11:48 +01:00
Michael Drake
6d0746987d Use core API to acquire content, rather than poking inside the bw. 2014-10-18 18:01:39 +01:00
Michael Drake
2f67de6889 It's silly to pass private core data around the front end, then fish out the frond then data from there, so don't. 2014-10-18 17:56:45 +01:00
Michael Drake
b727c31de7 Avoid need for hlcache_handle by using browser APIs. 2014-10-18 17:52:19 +01:00
Michael Drake
62395c1186 Avoid dereffing bw for content check in page info handler. 2014-10-18 17:47:09 +01:00
Michael Drake
7cb2f1c41e Avoid dereffing bw when bw's page is removed from bookmarks. 2014-10-18 17:45:58 +01:00
Michael Drake
fdf5fb42d1 Avoid bw derefs when adding bw's page to bookmarks. 2014-10-18 17:44:28 +01:00
Michael Drake
15883a3147 Use core searchability test function. 2014-10-18 17:40:21 +01:00
Michael Drake
10154d0e18 Don't check for bw having history; its not our business. 2014-10-18 10:32:24 +01:00
Michael Drake
38483a9aa5 Avoid bw derefs in ro_gui_window_action_new_window 2014-10-18 10:19:20 +01:00
Michael Drake
34cdbcfc25 Move up_available fn to core. 2014-10-18 10:16:00 +01:00
Michael Drake
5de59fba24 Remove unused variable. 2014-10-17 11:54:58 +01:00
Michael Drake
057e435b28 s/error/err/ 2014-10-17 10:06:08 +01:00