Commit Graph

65 Commits

Author SHA1 Message Date
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
3ff4846c1a Remove usage of browser private interfaces
The cocoa frontend was directly acessing browser internals instead of
using the API. In the case of gui.m there was a check for the browser
window not being root (browser->parent != NULL) . As gui windows can
only ever be associated with the root brower window (i.e. its parent
will always be NULL) this was completely redundant.
2014-11-21 11:48:43 +00:00
Vincent Sanders
f2cda2e1a7 fix typo in cocoa frontend context cleanup 2014-11-02 16:03:37 +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
18aefabd20 change reformat to be driven from the scheduler like redraw 2014-07-01 09:27:20 +01: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
Vincent Sanders
abb37ba148 fix remaining include errors 2014-02-03 18:23:02 +00:00
Michael Drake
3f45e53539 s/history_core/local_history/ 2013-07-10 11:55:42 +01:00
Vincent Sanders
ee6e6eec05 move options include 2013-05-28 14:16:10 +01:00
Michael Drake
631265ef6b Front ends have no reason to include desktop/selection.h now. 2013-05-10 12:16:05 +01:00
Michael Drake
c7e136d9d7 Various warning squashes and fixes. 2013-02-22 14:53:57 +00:00
Vincent Sanders
529ca251fc rename flags for browser_window routines to be shorter 2013-02-18 11:51:42 +00:00
Vincent Sanders
b112dec78d change browser_window_create and refactor all callsites 2013-02-18 11:23:48 +00:00
Vincent Sanders
3bfb5b96a7 browser_window_navigate refactor 2013-02-18 11:23:27 +00:00
Michael Drake
045905b93e Fix some build warnings. 2012-10-11 12:09:48 +01:00
Michael Drake
5787323b2c Include browser_private.h. 2012-08-22 12:38:16 +01:00
Michael Drake
67f2470d5a Pass whether background images are wanted in redraw_context.
svn path=/trunk/netsurf/; revision=13335
2011-12-23 22:39:25 +00:00
Michael Drake
817841eab3 Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12930
2011-10-03 16:49:55 +00:00
Michael Drake
074cf6f162 Port cocoa front end to browser_window_get_contextual_content.
svn path=/trunk/netsurf/; revision=12759
2011-09-06 19:18:09 +00:00
Michael Drake
4ef33d143d Remove chained self-assignment.
svn path=/trunk/netsurf/; revision=12751
2011-09-06 12:32:38 +00:00
Michael Drake
c263a77d36 Don't need to set current_redraw_browser any more.
svn path=/trunk/netsurf/; revision=12657
2011-08-24 13:39:28 +00:00
Michael Drake
eddae6af06 Remove plotter table global. Pass a redraw context around redraw functions. Knockout could be handled better. Note: untested on most front ends.
svn path=/trunk/netsurf/; revision=12543
2011-06-30 15:48:07 +00:00
Michael Drake
2bedf4d88f Frond ends signal end of drag with call to browser_window_mouse_track.
svn path=/trunk/netsurf/; revision=12515
2011-06-27 17:45:17 +00:00
Michael Drake
5a4c8916ef If iframes are reformatted due to containing document reflow, don't need to redraw them since they will be redrawn when the containing document is redrawn. Make iframe handling more robust.
svn path=/trunk/netsurf/; revision=12497
2011-06-24 09:30:33 +00:00
François Revel
092c62f0e0 Add code to open the source file into Xcode. Currently called by the context menu because I didn't want to dig the .xib files, feel free to move it to the View main menu.
svn path=/trunk/netsurf/; revision=12387
2011-05-12 17:31:55 +00:00
Sven Weidauer
19c5c44e7a Getting rid of cocoa_set_font_scale_factor
svn path=/trunk/netsurf/; revision=12042
2011-03-14 14:17:46 +00:00
Sven Weidauer
fc6125f79a Minimal implementation of NSTextInput protocol. Allows accented characters to be typed. Might not work with other, more complex input methods (chinese, ...)
svn path=/trunk/netsurf/; revision=11930
2011-03-07 09:01:42 +00:00
Sven Weidauer
45c30cd3d1 Checking for public.url pasteboard type first, so dragging a .webloc file from the Finder opens the URL and not the .webloc file itself.
svn path=/trunk/netsurf/; revision=11901
2011-03-04 10:38:07 +00:00
Sven Weidauer
f2bc0163c0 Accepting URLs dropped onto the browser view.
svn path=/trunk/netsurf/; revision=11900
2011-03-04 09:18:26 +00:00
Sven Weidauer
4aef849eba More keyboard shortcuts: scroll down with space bar and go back with backspace key.
svn path=/trunk/netsurf/; revision=11885
2011-03-02 15:05:26 +00:00
Sven Weidauer
6d11881575 Handling keyboard events for local history view.
svn path=/trunk/netsurf/; revision=11851
2011-02-27 20:41:17 +00:00
Sven Weidauer
7e42318684 Resetting cursor when mouse moves out of browser view.
svn path=/trunk/netsurf/; revision=11839
2011-02-27 10:40:41 +00:00
Sven Weidauer
b486dace3b Using NSTrackingArea to get mouseMoved: events in the browser view.
svn path=/trunk/netsurf/; revision=11838
2011-02-27 10:40:37 +00:00
Sven Weidauer
e190188969 Local history view now is responsible for hiding itself after selecting a web page. Also gets redrawn when selecting other pages using the back/forward buttons.
svn path=/trunk/netsurf/; revision=11837
2011-02-27 09:46:54 +00:00
Sven Weidauer
2bb6987d39 Prepared for localizing string literals in source code.
svn path=/trunk/netsurf/; revision=11795
2011-02-25 16:20:10 +00:00
Sven Weidauer
1989a09c51 Cleanup in redraw code for browser view.
svn path=/trunk/netsurf/; revision=11706
2011-02-17 12:12:55 +00:00
Sven Weidauer
abe3300ea1 New local history panel with scrollbars. Still needs to resize itself to fit the history.
svn path=/trunk/netsurf/; revision=11705
2011-02-17 12:12:51 +00:00
Michael Drake
5cefc9584a Pass clip rect to browser_window_redraw as pointer.
svn path=/trunk/netsurf/; revision=11672
2011-02-13 23:04:26 +00:00
Michael Drake
fedcbf6656 Pass clip rect to browser_window_redraw as struct.
svn path=/trunk/netsurf/; revision=11648
2011-02-11 19:36:33 +00:00
Vincent Sanders
9a183018ea improve browser_window_redraw width and height handling
svn path=/trunk/netsurf/; revision=11642
2011-02-11 00:14:22 +00:00
Vincent Sanders
2a8e8a5cf1 add browser_window_redraw() method to make content_redraw calls from frontends common RISC OS, atari, amiga and beos have not been updated
svn path=/trunk/netsurf/; revision=11640
2011-02-10 22:35:41 +00:00
Sven Weidauer
28da79c796 Reorganized includes.
svn path=/trunk/netsurf/; revision=11567
2011-01-31 19:12:00 +00:00
Sven Weidauer
672cb37412 Implemented context menu.
svn path=/trunk/netsurf/; revision=11520
2011-01-28 18:26:34 +00:00
Sven Weidauer
48c6ba4b49 Timer based reformatting, so reformat happens also while resizing windows.
svn path=/trunk/netsurf/; revision=11519
2011-01-28 14:40:25 +00:00
Sven Weidauer
3ba2596f5c Implemented frames and handling reformats the right way using browser_reformat_pending.
svn path=/trunk/netsurf/; revision=11518
2011-01-28 14:08:42 +00:00
Sven Weidauer
f56b20994e Keyboard scrolling.
svn path=/trunk/netsurf/; revision=11517
2011-01-28 13:22:40 +00:00
Sven Weidauer
ccac2289cf Setting current_redraw_browser and fixing mouse dragging
svn path=/trunk/netsurf/; revision=11515
2011-01-28 12:18:58 +00:00
Sven Weidauer
3376f7f50f Implemented resolution-independent rendering for the browser view. Still needs to be implemented for the other views.
svn path=/trunk/netsurf/; revision=11507
2011-01-27 11:43:48 +00:00