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
Vincent Sanders
1097cc40b4
remove unecessary browser.h include from core headers
2014-10-17 12:21:52 +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
Michael Drake
8e880ccda5
Use core's navigate_up function.
2014-10-17 10:02:03 +01:00
Vincent Sanders
388122d7e9
fix warnings and remove unecessary css include
2014-10-17 00:37:12 +01:00
Vincent Sanders
ac70da346c
Update the RISC OS frontend to cope with split operations table headers
2014-10-16 22:33:44 +01:00
Michael Drake
9d3c2b18c4
Remove some bw derefs.
2014-10-16 22:23:46 +01:00
Michael Drake
e546e03895
Avoid a bw deref.
2014-10-16 22:06:32 +01:00
Michael Drake
588b374e18
Browser window isn't available directly here.
2014-10-16 21:35:59 +01:00
Michael Drake
d9e5f5f0a6
Avoid dealing with hlcache_handle in key handling.
2014-10-16 21:30:27 +01:00
Michael Drake
ecd7cb8ca3
Simplify window closing buy user proper browser_window API.
2014-10-16 21:21:53 +01:00
Michael Drake
63645c4c32
Fix core create_form_select_menu API to pass gw, rather than bw out to front ends.
2014-10-16 12:39:31 +01:00
Michael Drake
f87d1a79b4
Remove seemingly unused global.
2014-10-16 12:07:39 +01:00
Michael Drake
cb54fc6ed2
Don't pass browser_window around for select menu handling.
...
It was only needed to access gui_window, so just padd gui_window.
2014-10-16 12:05:18 +01:00
Michael Drake
925082cbe1
Update the correct favicon setter to take gui_window.
2014-10-16 09:34:27 +01:00
Michael Drake
b4b97d9003
Chage favicon set APIs to take gui_window rather than hlcache_handle.
...
Let the front end pass its own types around, rather than core ones.
This removes one "bw->current_content" from window.c.
Now the current content is only accessed where its needed, in the
favicon handler, and it is accessed via the appropriate API.
2014-10-16 09:22:05 +01:00
Michael Drake
cb976f24c7
Really fix error.
2014-10-15 22:13:48 +01:00
Michael Drake
03e32089fb
Fix error.
2014-10-15 22:09:49 +01:00
Michael Drake
b7deca9296
Don't dereference bw to get window scale.
2014-10-15 22:04:31 +01:00
Vincent Sanders
30f118a86d
remove unecessary css includes from fronetends
2014-10-13 15:45:51 +01:00
Vincent Sanders
02bbaa3e88
split version info into its own header and remove unnecessary nesurf.h includes
...
The netsurf.h header should *only* contain the registration, core
initialisation and finalisation methods. Version information is best
placed in its own header.
Also remove any unneeded inclusion of this header limiting it to
solely the places the relevant API is required.
2014-10-13 15:08:16 +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
d0655bafc2
remove use of deprecated netsurf_quit variable in riscos
...
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.
2014-10-13 00:56:09 +01:00
Michael Drake
31526e9bc6
Remove pointless strdup/free.
2014-09-07 11:12:49 +01:00
Michael Drake
253475f304
GUI launched fetches are verifiable. Thanks to jmb.
2014-09-07 11:03:21 +01:00
Vincent Sanders
1f341ed084
Correctly declare function as static and fix documentation
2014-09-07 00:31:46 +01:00
Vincent Sanders
55558579e2
Add missing includes to get rid of warnings
2014-09-07 00:27:30 +01:00
Vincent Sanders
4f530a3f8f
Pull warning flags out into variables that can be overriden seperately for C and C++
2014-09-05 16:01:44 +01:00
Michael Drake
f2ba35133b
Remove MimeMan stuff from !Cache.
2014-08-30 15:46:39 +01:00
Michael Drake
5cd61f2ef4
Avoid include of browser_private.h
2014-08-26 18:16:03 +01:00
Michael Drake
5bed515e68
Don't use browser_private.h
2014-08-22 16:35:39 +01:00
Vincent Sanders
af16c38d2d
fix DOM tree dump debug
2014-08-04 00:37:21 +01:00
Michael Drake
c86c772ce6
Remove more dead code.
2014-07-09 20:04:27 +01:00
Michael Drake
55d2e1126a
Remove redundant code.
2014-07-09 19:49:43 +01:00
Vincent Sanders
7659708d55
remove unecessary reformat call
...
This was an error in the original refactor where redraw routine had an uneccessary
optimisation to remove an outstanding reformat.
2014-07-09 12:50:37 +01:00
Michael Drake
9a38a5d062
Simplify schedule_remove.
...
Since entries are unique we can stop looking when we have a match.
2014-07-09 07:23:58 +01:00
Vincent Sanders
3a9fa29ee5
try and improve usage of browser window internals
2014-07-06 18:34:34 +01:00
Vincent Sanders
0f151e37cb
Merge branch 'vince/reformatpending'
...
Conflicts:
amiga/gui.c
2014-07-06 10:45:31 +01:00
Vincent Sanders
8848f754e0
documentation fixes and cleanups
2014-07-02 16:39:08 +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
Steve Fryatt
ca91b4eea3
Fix signedness of numeric conversion when populating cache config dialogue box.
2014-06-09 23:03:39 +01:00
Steve Fryatt
cc1d5477ab
Add disc cache parameters to configuration GUI.
2014-06-08 18:29:03 +01:00
Vincent Sanders
e687a359c7
remove unnecessary risc os header includes
2014-06-05 23:24:28 +01:00
Vincent Sanders
72f8e711d7
additional risc os header cleanups
2014-06-05 23:01:37 +01:00
Vincent Sanders
766c90d369
additional header cleanups
2014-06-05 21:50:47 +01:00
Vincent Sanders
1151ae8ba2
Add !Cache to riscos resources
2014-06-05 15:27:35 +01:00
Vincent Sanders
3834770f11
add riscos font header
2014-06-05 15:25:50 +01:00
Vincent Sanders
54fcb66d87
cleanup RISC OS frontend header usage
2014-06-05 15:14:49 +01:00
Vincent Sanders
f1c2dde13b
extend file table with mkdir all and make fs backing store use it.
...
enable fs backing store for RISC OS.
2014-06-05 12:06:47 +01:00
Vincent Sanders
80bee65a71
remove forward declarations from risc os gui.c
...
cleanup filetype magic numbers.
2014-06-04 16:53:25 +01:00
Vincent Sanders
7f55cb58a0
stop riscos uncesecarily including gui.h
2014-06-04 12:07:03 +01:00
Michael Drake
91f3eb5c2f
Scope reduce a variable.
2014-05-31 13:06:52 +01:00
Michael Drake
0793ae25e3
Scope reduce some variables.
2014-05-31 00:06:49 +01:00
Michael Drake
ce117d140e
Remove dead code and variables.
2014-05-30 23:59:17 +01:00
Michael Drake
910efb0156
Scope reduce several variables.
2014-05-30 23:57:04 +01:00
Michael Drake
c01e168d64
Scope reduce a couple of variables.
2014-05-30 23:35:38 +01:00
Michael Drake
dcf9eca7b3
Visits is unsigned, so can't be less than 0.
2014-05-30 23:33:13 +01:00
Michael Drake
8ee941a7a5
Scope reduce several variables.
2014-05-30 23:30:44 +01:00
Michael Drake
bbb002ee1d
Scope reduce some variables.
2014-05-30 23:24:56 +01:00
Michael Drake
ecee6ffad8
Remove dead code.
2014-05-30 23:22:50 +01:00
Michael Drake
33513e65ea
Fix toolbar width calculation.
...
+ has greater precedence than ?:, so wrap :? part in ().
2014-05-30 23:18:29 +01:00
Michael Drake
2f02d0785a
Scope reduce a variable.
2014-05-30 23:13:42 +01:00
Michael Drake
55b3163520
Reduce scope of a variable.
2014-05-30 23:11:09 +01:00
Michael Drake
259a02a72a
Scope reduce some variables.
2014-05-30 23:06:30 +01:00
Michael Drake
f313635e21
Reduce scope of a variable.
2014-05-30 23:04:10 +01:00
Michael Drake
0b39a3750c
Reduce scope of a few variables.
2014-05-30 23:02:02 +01:00
Michael Drake
ef8b0e8204
Reduce scope of several variables.
2014-05-30 22:59:12 +01:00
Michael Drake
dca506dfe4
Remove unused variables, and dead code.
2014-05-30 22:54:27 +01:00
Michael Drake
ae0e1316b7
Remove unused struct search_static_data members.
2014-05-30 22:52:22 +01:00
Michael Drake
bab90eddda
Use angle brackets instead of quotes for include of external headers.
2014-05-30 22:29:04 +01:00
Michael Drake
4fbe86bc5a
Scope reduce some variables.
2014-05-30 22:27:07 +01:00
Michael Drake
3ce61d6950
Reduce scope of a couple of variables.
2014-05-30 22:18:29 +01:00
Michael Drake
4ea90d2dca
Check correct variable for NULL.
2014-05-30 22:16:15 +01:00
Michael Drake
d0e67542f5
Reduce scope of a variable.
2014-05-30 22:12:18 +01:00
Michael Drake
d25b62f1c2
Avoid redundant assignement of name to name.
2014-05-30 21:59:12 +01:00
Vincent Sanders
7d02ae916a
make launch_url core operation use nsurl
2014-05-27 23:52:35 +01:00
Vincent Sanders
688f60d963
fix errors with path_to_url conversion
2014-05-27 00:08:04 +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
2aeec1a18c
Scope reduce a few variables.
2014-05-26 12:00:36 +01:00
Michael Drake
587c0229c3
Reduce scope of a couple of variables.
2014-05-26 11:57:40 +01:00
Michael Drake
c8099aef3f
Scope reduce some variables.
2014-05-26 11:55:29 +01:00
Michael Drake
2e79a8ee7a
Scope reduce a couple of variables.
2014-05-26 11:50:11 +01:00
Michael Drake
41e5f68d2c
Scope reduce some variables.
2014-05-26 11:48:07 +01:00
Michael Drake
508fc30ab9
Scope reduce a variable.
2014-05-26 11:42:25 +01:00
Michael Drake
6503757698
Scope reduce a variable.
2014-05-26 11:40:58 +01:00
Michael Drake
18fb6461f9
Reduce scope of some variables.
2014-05-26 11:39:49 +01:00
Michael Drake
a1cca5d127
Remove unused variable.
2014-05-26 11:37:16 +01:00
Michael Drake
cb0ae22949
Improve error handling.
2014-05-26 11:29:03 +01:00
Michael Drake
82bc40350a
Reuce scope of several variables.
2014-05-26 11:24:14 +01:00
Michael Drake
609eb8377b
Handle error.
2014-05-26 11:20:37 +01:00
Michael Drake
4a28b2b170
Scopre reduce some variables.
2014-05-26 11:14:18 +01:00
Michael Drake
02ac6b1976
Remove a couple of unused variables.
2014-05-26 11:05:03 +01:00
Michael Drake
8b9f2e7ee6
Fix warnings about redundant statements when building without RO types.
2014-05-26 10:51:46 +01:00
Michael Drake
cd89779831
Remove unused variable and assignements to it.
2014-05-26 10:42:43 +01:00
Michael Drake
423a934e0b
Scope reduce some variables.
2014-05-26 10:40:54 +01:00
Michael Drake
97e379083d
Scope reduce a variable.
2014-05-26 10:29:01 +01:00
Michael Drake
a64e0c4eaf
Fix failure to return NSERROR_NOMEM when malloc failed.
...
Was using return without any value.
2014-05-26 10:23:04 +01:00
Michael Drake
e105b15bf6
Fix completely broken handling of file: paths.
...
Was treating lwc_string* as char*.
2014-05-26 10:19:18 +01:00
Michael Drake
e39f0ff2f1
Scope reduce some variables.
2014-05-26 10:15:54 +01:00
Michael Drake
994caa34cb
Remove unused variable.
2014-05-26 10:12:34 +01:00
Michael Drake
ba2f3c1cb8
Scope reduce a couple of variables.
2014-05-26 10:09:55 +01:00
Michael Drake
f19bfa8f8d
Remove unneeded forward declaration.
2014-05-26 10:08:18 +01:00
Michael Drake
9cb9f638c4
Scope reduce a couple of variables.
2014-05-26 10:06:41 +01:00
Michael Drake
59e9caf8a1
Scope reduce some variables.
2014-05-26 10:02:30 +01:00
Michael Drake
6fe8e7ad53
Scope reduce some variables.
2014-05-26 10:00:09 +01:00
Michael Drake
290e4c5bf7
Report OSLib error message.
2014-05-26 09:59:37 +01:00
Vincent Sanders
966ed9449c
fix riscos mkpath and error reporting in save complete
2014-05-17 23:14:43 +01:00
Vincent Sanders
0a2082d777
ensure all vmkpath implementations check their parameters
2014-05-17 22:28:32 +01:00
Vincent Sanders
64f607760b
add backing store storage path to browser initialisation
2014-05-13 15:53:06 +01:00
Vincent Sanders
39b0393d31
cleanup utils header, remove cruft and add documentation
2014-05-11 21:31:14 +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
1556055d91
fix nsurl references
2014-05-08 18:03:27 +01:00
Vincent Sanders
cd7f1eceea
make download_context_get_url() return an nsurl and adapt callers to cope
2014-05-08 17:54:44 +01:00
Vincent Sanders
096bd47ab0
refactor url utility functions to use standard nserror codes and have appropriate documentation.
2014-05-08 00:16:50 +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
Michael Drake
2c4825cb38
Remove excessive logging.
2014-04-18 17:30:28 +01:00
Michael Drake
898ff4b821
Add logging to view-source filename generation.
2014-04-18 16:35:46 +01:00
Steve Fryatt
99c47eb99b
Allow mouse tracking events to terminate without a PointerLeaving event being received.
...
This change should handle the situation where a PointerEntering event is received without a corresponding PointerLeaving event, which appears to be caused by some third-party OS addons. This could cause unexpected consequences, so all such terminations are currently logged.
2014-04-05 19:59:07 +01:00
Michael Drake
b91c28b8d1
Fix logic error found by cppcheck.
2014-04-02 21:59:24 +01:00
Michael Drake
88a99d9722
Fix logic error found by cppcheck.
2014-04-02 21:56:34 +01:00
Michael Drake
527bc23bdb
Avoid potential NULL ptr deref found by cppcheck.
2014-04-02 21:10:26 +01:00
Michael Drake
979b59887f
Fix leak of url found by cppcheck.
2014-04-02 21:04:00 +01:00
Michael Drake
a9fb42e71b
Fix leak of filename found by cppcheck.
2014-04-02 21:03:13 +01:00
Michael Drake
442d1cb3cf
Fix out of bounds array accesses for Cyrillic2 found by cppcheck.
2014-04-02 21:00:48 +01:00
Vincent Sanders
6f9a93e332
fix formatting of defaults makefiles
2014-03-20 11:05:39 +00: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
49bed056dd
Make browser_window_navigate (un)verifiable flag match browser_window_create.
2014-02-10 22:40:04 +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