reduce cocoa frontend use of content API

This commit is contained in:
Vincent Sanders 2016-06-12 00:13:04 +01:00
parent f236e7d6b7
commit 7dcc725ae2
7 changed files with 13 additions and 17 deletions

View File

@ -18,10 +18,10 @@
#import "utils/messages.h"
#import "utils/utils.h"
#import "utils/nsurl.h"
#import "netsurf/browser_window.h"
#import "desktop/hotlist.h"
#import "desktop/tree.h"
#import "content/hlcache.h"
#import "cocoa/BookmarksController.h"
#import "cocoa/Tree.h"

View File

@ -18,10 +18,11 @@
#import "utils/nsoption.h"
#import "utils/messages.h"
#import "utils/nsurl.h"
#import "netsurf/browser_window.h"
#import "netsurf/plotters.h"
#import "netsurf/content.h"
#import "desktop/textinput.h"
#import "content/hlcache.h"
#import "cocoa/gui.h"
#import "cocoa/BrowserView.h"

View File

@ -21,11 +21,11 @@
#import "utils/filename.h"
#import "utils/file.h"
#import "utils/messages.h"
#import "utils/url.h"
#import "desktop/browser_history.h"
#import "utils/nsurl.h"
#import "netsurf/content.h"
#import "netsurf/browser_window.h"
#import "desktop/browser_history.h"
#import "desktop/textinput.h"
#import "content/hlcache.h"
#import "cocoa/gui.h"
#import "cocoa/BrowserViewController.h"

View File

@ -31,15 +31,14 @@
#import "utils/log.h"
#import "utils/messages.h"
#import "utils/utils.h"
#import "content/urldb.h"
#import "utils/nsoption.h"
#import "netsurf/plotters.h"
#import "netsurf/mouse.h"
#import "netsurf/netsurf.h"
#import "content/urldb.h"
#import "desktop/save_complete.h"
#import "desktop/textinput.h"
#import "desktop/tree.h"
#import "render/html.h"
#import "netsurf/mouse.h"
#import "netsurf/netsurf.h"
#ifndef NETSURF_HOMEPAGE
#define NETSURF_HOMEPAGE "http://www.netsurf-browser.org/welcome/"

View File

@ -17,9 +17,8 @@
*/
#import "utils/nsoption.h"
#import "utils/nsurl.h"
#import "netsurf/browser_window.h"
#import "content/content.h"
#import "content/hlcache.h"
#import "cocoa/PreferencesWindowController.h"
#import "cocoa/NetsurfApp.h"

View File

@ -27,7 +27,6 @@
#import "netsurf/plotters.h"
#import "netsurf/bitmap.h"
#import "netsurf/content.h"
#import "content/urldb.h"
#import "cocoa/plotter.h"
#import "cocoa/bitmap.h"

View File

@ -21,15 +21,13 @@
#import "utils/nsoption.h"
#import "utils/utils.h"
#import "utils/log.h"
#import "utils/nsurl.h"
#import "netsurf/mouse.h"
#import "netsurf/window.h"
#import "netsurf/misc.h"
#import "netsurf/browser_window.h"
#import "netsurf/content.h"
#import "desktop/textinput.h"
#import "content/handlers/image/ico.h"
#import "content/fetchers/resource.h"
#import "content/hlcache.h"
#import "content/content.h"
#import "cocoa/gui.h"
#import "cocoa/plotter.h"
@ -227,7 +225,7 @@ static void gui_window_stop_throbber(struct gui_window *g)
[(BrowserViewController *)g updateBackForward];
}
static void gui_window_set_icon(struct gui_window *g, hlcache_handle *icon)
static void gui_window_set_icon(struct gui_window *g, struct hlcache_handle *icon)
{
NSBitmapImageRep *bmp = NULL;
NSImage *image = nil;