Commit Graph

32 Commits

Author SHA1 Message Date
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
f21c41a2e5 change browser_window_redraw to use unscaled coordinates 2019-08-04 11:25:35 +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
552aab42e1 remove scaled parameter from get_dimensions 2019-08-02 12:26:20 +01:00
Vincent Sanders
5742762070 split browser and browser_window operations 2019-08-01 19:51:19 +01:00
Vincent Sanders
2db39b1f7d quieten down windows debug 2019-05-17 18:15:58 +01:00
Vincent Sanders
95b8d12950 implement windows clipboard functionality
This allows clipboard to operate (cut, copy, paste and delete) in the
 win32 front end. The clipboard is set and read in windows unicode
 mode and then converted to/from utf-8 for the browser core.
2019-05-09 23:11:05 +01:00
Vincent Sanders
a8248a7bb9 Update windows frontend to use windows resources 2018-08-21 10:27:16 +01:00
Vincent Sanders
a6c595f4f3 add win32 http authentication dialog 2018-08-18 23:30:12 +01:00
Vincent Sanders
b525293a95 Fix up log call parameters 2017-09-08 20:42:12 +01:00
Daniel Silverstone
a1dc9ab55f Hopefully quash LOG compile errors in Windows 2017-09-08 19:46:29 +01:00
Vincent Sanders
5d6f189d8b Fixup everything the semantic patch missed 2017-09-07 18:12:09 +01:00
Vincent Sanders
75018632a9 Use coccinelle to change logging macro calls in c files
for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done

@@ expression E; @@
-LOG(E);
+NSLOG(netsurf, INFO, E);
@@ expression E, E1; @@
-LOG(E, E1);
+NSLOG(netsurf, INFO, E, E1);
@@ expression E, E1, E2; @@
-LOG(E, E1, E2);
+NSLOG(netsurf, INFO, E, E1, E2);
@@ expression E, E1, E2, E3; @@
-LOG(E, E1, E2, E3);
+NSLOG(netsurf, INFO, E, E1, E2, E3);
@@ expression E, E1, E2, E3, E4; @@
-LOG(E, E1, E2, E3, E4);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4);
@@ expression E, E1, E2, E3, E4, E5; @@
-LOG(E, E1, E2, E3, E4, E5);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5);
@@ expression E, E1, E2, E3, E4, E5, E6; @@
-LOG(E, E1, E2, E3, E4, E5, E6);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6);
@@ expression E, E1, E2, E3, E4, E5, E6, E7; @@
-LOG(E, E1, E2, E3, E4, E5, E6, E7);
+NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
2017-09-06 18:45:27 +01:00
James Woodcock
8c3d79f6fb fix redraw on window resize
A race condition with WM_PAINT can cause win32_window_set_scroll() to
use the old window size.  If this happens, the page data will not get
drawn from the top left of the window but offset quite a large
distance down and to the right.
2017-07-30 10:24:13 +01:00
Vincent Sanders
c08ef5f984 make windows frontend use corewindow API for local history window 2017-06-01 23:57:09 +01:00
Vincent Sanders
5fba1fb94d Update windows frontend for set_scroll API change 2017-04-26 22:27:49 +01:00
Vincent Sanders
3e24dc831b update windows frontend to remove reformat 2017-04-26 09:55:36 +01:00
Vincent Sanders
b61c21c7d0 Update windows frontend to use invalidate window area API 2017-04-23 12:05:30 +01:00
Vincent Sanders
1820bb7e63 fix remaining doccomment errors 2017-02-22 08:30:58 +00:00
Vincent Sanders
d35f61caa3 fix merge error in windows frontend 2017-02-19 12:02:23 +00:00
Vincent Sanders
ae45b18b45 Merge branch 'vince/localhist-corewin' 2017-02-19 11:39:47 +00:00
Vincent Sanders
0f69965805 clean up some of the doxygen generation warnings 2017-02-19 11:32:17 +00:00
Vincent Sanders
67b22a8111 cleanup windows frontend documentation comments and spelling 2017-02-17 20:44:37 +00:00
Vincent Sanders
f3a1b49dd8 add corewindow support for windows frontend 2016-11-19 11:22:22 +00:00
Vincent Sanders
a2388a91cf Rationalise the use of win32 application instance handle use
The use of the application instance handle global variable was
inconsistent throughout the windows frontend.

By rationalising the passing of these handles it showed that some of
the toolbar and throbber parent handles were also setup wrong giving
odd offset behaviour.

All these issues have been addressed and the throbber is now in the
correct position.
2016-10-30 12:58:43 +00:00
Vincent Sanders
3ecced92f3 Complete windows main window documentation 2016-10-29 17:24:31 +01:00
Vincent Sanders
57715fc70c Improve windows win32 main browser window code documentation 2016-10-26 23:19:43 +01:00
Vincent Sanders
601d9da66d fix windows user preferences location storage 2016-10-19 11:12:19 +01:00
Vincent Sanders
8066d1c8b4 move key press enums and operations to their own header 2016-07-01 14:27:04 +01:00
Vincent Sanders
7fc0a4c481 move desktop window header into public API 2016-05-30 17:32:57 +01:00
Vincent Sanders
1eb86d9df2 move window header into public API 2016-05-30 11:01:40 +01:00
Vincent Sanders
d21447d096 move frontends into sub directory 2016-05-15 13:44:34 +01:00