typedef struct _WebKitWebView WebKitWebView;
struct _WebKitWebView {
GtkContainer parent_instance;
WebKitWebViewPrivate *priv;
};
typedef struct _WebKitWebViewPrivate WebKitWebViewPrivate;
struct _WebKitWebViewPrivate {
WebCore::Page* corePage;
WebKitWebSettings* webSettings;
WebKitWebInspector* webInspector;
WebKitWebWindowFeatures* webWindowFeatures;
WebKitWebFrame* mainFrame; // here--------------------------------------------
WebCore::String applicationNameForUserAgent;
WebCore::String* userAgent;
WebKitWebBackForwardList* backForwardList;
gint lastPopupXPosition;
gint lastPopupYPosition;
HashSet children;
bool editable;
GtkIMContext* imContext;
GtkTargetList* copy_target_list;
GtkTargetList* paste_target_list;
gboolean transparent;
GtkAdjustment* horizontalAdjustment;
GtkAdjustment* verticalAdjustment;
gboolean zoomFullContent;
};
typedef struct _WebKitWebFrame WebKitWebFrame;
struct _WebKitWebFrame {
GObject parent_instance;
WebKitWebFramePrivate *priv;
};
typedef struct _WebKitWebFramePrivate WebKitWebFramePrivate;
struct _WebKitWebFramePrivate {
WebCore::Frame* coreFrame;
WebKitWebView* webView;
gchar* name;
gchar* title;
gchar* uri;
};
WebCore::Page* core(WebKitWebView* webView)
{
if (!webView)
return 0;
WebKitWebViewPrivate* priv = webView->priv;
return priv ? priv->corePage : 0;
}
阅读(3063) | 评论(0) | 转发(0) |