]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/webviewhistoryitem_webkit.h
Fix a very annoying autorelease pool memory leak.
[wxWidgets.git] / include / wx / osx / webviewhistoryitem_webkit.h
CommitLineData
eafdb19c 1/////////////////////////////////////////////////////////////////////////////
c13d6ac1
SL
2// Name: include/wx/osx/webviewhistoryitem.h
3// Purpose: wxWebViewHistoryItem header for OSX
eafdb19c 4// Author: Steven Lamerton
eafdb19c
SL
5// Copyright: (c) 2011 Steven Lamerton
6// Licence: wxWindows licence
7/////////////////////////////////////////////////////////////////////////////
8
c13d6ac1
SL
9#ifndef _WX_OSX_WEBVIEWHISTORYITEM_H_
10#define _WX_OSX_WEBVIEWHISTORYITEM_H_
eafdb19c
SL
11
12#include "wx/setup.h"
13
9d2f31db
SL
14#if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
15 || defined(__WXOSX_CARBON__))
eafdb19c 16
fcb9299b 17#include "wx/osx/core/objcid.h"
d92f48bd 18
467d261e 19class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
eafdb19c
SL
20{
21public:
c13d6ac1 22 wxWebViewHistoryItem(const wxString& url, const wxString& title) :
eafdb19c
SL
23 m_url(url), m_title(title) {}
24 wxString GetUrl() { return m_url; }
25 wxString GetTitle() { return m_title; }
26
515fd027
SL
27 friend class wxWebViewWebKit;
28
eafdb19c
SL
29private:
30 wxString m_url, m_title;
d92f48bd 31 wxObjCID m_histItem;
eafdb19c
SL
32};
33
34326da7 34#endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT
eafdb19c 35
c13d6ac1 36#endif // _WX_OSX_WEBVIEWHISTORYITEM_H_