summaryrefslogtreecommitdiff
path: root/content/content.h
Commit message (Collapse)AuthorAgeFilesLines
* improve desktop text search header usageVincent Sanders2020-06-241-19/+0
| | | | | | | | | remove unecessary inclusion of desktop search header in content header which has knock on effect of not having ctype or string system headers dragged in unecessarily. Futher this highlighted use of ctype API where internal ascii processing ought to be used.
* use content messages to inform frontend of text search changesVincent Sanders2020-05-131-0/+44
|
* hoist common text search out of content handlersVincent Sanders2020-05-121-4/+7
|
* improve content header usageVincent Sanders2020-05-071-152/+3
|
* clean up content headers and documentation commentsVincent Sanders2020-05-061-21/+179
| | | | pure formatting and documentation changes, no code difference
* JS: Split concept of JS context into heap and threadDaniel Silverstone2020-03-211-3/+3
| | | | | | | | | In preparation for proper splitting of Javascript support into heaps and threads, this renames the types and corrects the no-js builds to still work. At this time no substantive change in semantics exists, and the duktape build won't work. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Keep the complete certificate chain from a fetchVincent Sanders2020-02-231-5/+2
| | | | | | | | | Instead of extracting information from the X509 certificate chain in the fetcher the entire chain is propagated in Distinguished Encoding Rules (DER) format. This allows all the information contained in a certificate chain to be retained which can subsequently be presented to the user
* Improve some content documentation commentsVincent Sanders2020-02-231-38/+110
|
* Allow contents to indicate if they believe they may not be secure.Daniel Silverstone2019-12-011-0/+12
| | | | | | | | | | HTML contents reference many other objects. The browser window needs to know if any of them may not be secure, in which case it needs to report that in its page state. If other content types might refer to sub-contents, they will need to define the callback too. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content: Remove redundant and unused redraw message fields.Michael Drake2019-11-111-9/+0
| | | | | | | | | | This was archaic support for rendering images as "overlays", and avoiding a redraw via the browser window redraw and HTML contents. Basically it was "plot this image here", but it was too error prone, so it was removed a long time ago. These are some last vestiges that made the redraw message look more complex than it is.
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-6/+0
| | | | | | | | In further preparation for the auth and cert queries being handled as special contents from `about:` this excises the query pathway from the llcache pretty much entirely. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Migrate SSL certificate storage to the browser windowDaniel Silverstone2019-08-051-0/+7
| | | | | | | | | | * Fetchers now provide the certificates before headers * This is propagated all the way to the browser window * When a query occurs, we retrieve it from there and fire the query with those stored certificates. * The serial number is a bignum, store it as hex. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-5/+11
| | | | | | | This reworks CONTENT_MSG_ERROR to be structured data and removes the CONTENT_MSG_ERRORCODE message kind. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content, hlcache: Propagate query events upwardDaniel Silverstone2019-08-041-0/+7
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* make content close check the content status itselfVincent Sanders2019-07-101-2/+2
| | | | make content handler open and close return error status
* Content: Add content message to get viewport dimensions.Michael Drake2019-05-061-0/+7
|
* Logging: migrate and provide content interfaceDaniel Silverstone2019-05-051-0/+9
| | | | | | | | Migrate the console enums into netsurf/console.h and add support so that contents can raise a message to log to the console. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add content_exec and associated vtable entryDaniel Silverstone2019-05-051-0/+11
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content API: Avoid content message copy in content user callback.Michael Drake2017-08-261-4/+18
|
* Update content to split public and internal APIVincent Sanders2016-06-061-140/+39
|
* move mouse and pointer state header into public APIVincent Sanders2016-05-301-1/+1
|
* reduce content header interdependancyVincent Sanders2016-04-181-17/+3
|
* Add scaled content redraw interface.Vincent Sanders2015-04-231-0/+21
| | | | | | Add a new interface to the content to allow automaticaly scaled content redraws. This is intended to replace the thumbnail_redraw interface with something more generic.
* Use forward declaration instead of #include for nsurl.Michael Drake2015-02-261-7/+6
|
* Doxygen cleanupsVincent Sanders2014-11-091-1/+1
|
* Continue doxygen error cleanup.Vincent Sanders2014-11-081-10/+89
|
* fix up more doxygen errorsVincent Sanders2014-11-081-3/+56
|
* Improve content encoding information APIVincent Sanders2014-11-071-1/+7
| | | | | Extend the content_get_encoding() API to retrieve the source of the encoding as well as the actual encoding.
* Allow content handlers to have debug values set through APIVincent Sanders2014-11-061-1/+10
| | | | | | | | 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.
* Make the fetching of a contents encoding generic.Vincent Sanders2014-11-051-1/+2
| | | | | | | 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.
* replace save_link operation table entry usage of textural url with nsurlVincent Sanders2014-11-031-1/+1
|
* Change contextual content retrieval to browser features.Vincent Sanders2014-11-021-4/+13
| | | | | | | | | | | | | 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.
* Open select menu via content msg, instead of breaking encapsulation.Michael Drake2014-10-241-0/+5
| | | | Fixes bw deref and browser_private.h #include in render/
* fix DOM tree dump debugVincent Sanders2014-08-041-1/+15
|
* move page search gui callbacks to their own operations tableVincent Sanders2014-03-181-2/+3
|
* Add infrastructure for calling front ends to set file gadget filenames via ↵Rob Kendrick2014-01-051-1/+6
| | | | clicking in addition to drag-and-drop
* Pass fetch redirect info up to content layer as content_msg. Mark redirect ↵Michael Drake2013-05-271-0/+6
| | | | origin URLs as visited in browser window content callback. Note this doesn't mean we track redirects, it just lets us get the :visited link style on links that redirect.
* Remove search context from browser window, simplify search interface for ↵Michael Drake2013-05-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | front ends. Added content interface for search. Removed bw->cur_search search context. Desktop layer now does nothing except pass search requests from front end onto the bw's current_content via the content interface. Search API reduced to a pair of functions at each level: {desktop|content|html|textplain}_search and {desktop|content|html|textplain}_search_clear Updated front ends to use simplified search API. Only tested GTK and RO builds. These confine the search stuff to render/. However search still uses struct selection. The handling for which is still spread over desktop/ and render/. Also the render/search code itself still fiddles inside html and textplain privates.
* A load of refactoring of how content selection and input work.Michael Drake2013-02-221-1/+24
| | | | | | | | | | | | | Keypresses now go via content interface. Contents don't shove the selection object into browser windows any more. Contents report selection existence by sending message. HTML content keeps track of where selections in it exist. Contents report whether they have input focus via caret setting msg. Caret can be hidden (can still input/paste) or removed. Consolidate textarea selection handling. Make textarea report its selection status changes to client. Various textarea fixes. Changed how we decide when to clear selections, and give focus.
* HTML drags now go via content msg.Michael Drake2013-02-081-8/+10
|
* Remove content_msg for PASTE, since it doesn't need a gui_window to get the ↵Michael Drake2013-01-081-2/+1
| | | | buffer from the front end now.
* Improve error handling in html contentVincent Sanders2012-10-171-1/+4
|
* API for content debug dump.Michael Drake2012-08-201-0/+2
|
* Don't pass struct box to content open.Michael Drake2012-08-201-3/+1
|
* Avoid using hlcache_handle for drag saves in html_interaction. Drag save ↵Michael Drake2012-08-191-0/+1
| | | | msg with NULL content now means save the content which sends the message.
* Add paste request content message.Michael Drake2012-08-181-1/+10
|
* Add content message for setting mouse pointer.Michael Drake2012-08-171-1/+4
|
* Use new content message for saving of hyperlink target URL.Michael Drake2012-08-161-1/+7
|
* Add message for content wanting wanting drag save to start.Michael Drake2012-08-161-1/+12
|
* Let contents broadcast explicit status messages as well as announce that ↵Michael Drake2012-08-151-1/+5
| | | | their internal status has been updated.