⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webview.h

📁 linux下开源浏览器WebKit的源码,市面上的很多商用浏览器都是移植自WebKit
💻 H
📖 第 1 页 / 共 3 页
字号:
    @param delegate The WebPolicyDelegate to set as the delegate.*/    - (void)setPolicyDelegate:(id)delegate;/*!    @method policyDelegate    @abstract Return the WebView's WebPolicyDelegate.    @result The WebView's WebPolicyDelegate.*/    - (id)policyDelegate;/*!    @method mainFrame    @abstract Return the top level frame.      @discussion Note that even document that are not framesets will have a    mainFrame.    @result The main frame.*/    - (WebFrame *)mainFrame;/*!    @method selectedFrame    @abstract Return the frame that has the active selection.      @discussion Returns the frame that contains the first responder, if any. Otherwise returns the    frame that contains a non-zero-length selection, if any. Returns nil if no frame meets these criteria.    @result The selected frame.*/- (WebFrame *)selectedFrame;/*!    @method backForwardList    @result The backforward list for this webView.*/    - (WebBackForwardList *)backForwardList;/*!    @method setMaintainsBackForwardList:    @abstract Enable or disable the use of a backforward list for this webView.    @param flag Turns use of the back forward list on or off*/    - (void)setMaintainsBackForwardList:(BOOL)flag;/*!    @method goBack    @abstract Go back to the previous URL in the backforward list.    @result YES if able to go back in the backforward list, NO otherwise.*/    - (BOOL)goBack;/*!    @method goForward    @abstract Go forward to the next URL in the backforward list.    @result YES if able to go forward in the backforward list, NO otherwise.*/    - (BOOL)goForward;/*!    @method goToBackForwardItem:    @abstract Go back or forward to an item in the backforward list.    @result YES if able to go to the item, NO otherwise.*/    - (BOOL)goToBackForwardItem:(WebHistoryItem *)item;/*!    @method setTextSizeMultiplier:    @abstract Change the size of the text rendering in views managed by this webView.    @param multiplier A fractional percentage value, 1.0 is 100%.*/    - (void)setTextSizeMultiplier:(float)multiplier;/*!    @method textSizeMultiplier    @result The text size multipler.*/    - (float)textSizeMultiplier;/*!    @method setApplicationNameForUserAgent:    @abstract Set the application name.     @discussion This name will be used in user-agent strings    that are chosen for best results in rendering web pages.    @param applicationName The application name*/- (void)setApplicationNameForUserAgent:(NSString *)applicationName;/*!    @method applicationNameForUserAgent    @result The name of the application as used in the user-agent string.*/- (NSString *)applicationNameForUserAgent;/*!    @method setCustomUserAgent:    @abstract Set the user agent.     @discussion Setting this means that the webView should use this user-agent string    instead of constructing a user-agent string for each URL. Setting it to nil    causes the webView to construct the user-agent string for each URL    for best results rendering web pages.    @param userAgentString The user agent description*/- (void)setCustomUserAgent:(NSString *)userAgentString;/*!    @method customUserAgent    @result The custom user-agent string or nil if no custom user-agent string has been set.*/- (NSString *)customUserAgent;/*!    @method userAgentForURL:    @abstract Get the appropriate user-agent string for a particular URL.    @param URL The URL.    @result The user-agent string for the supplied URL.*/- (NSString *)userAgentForURL:(NSURL *)URL;/*!    @method supportsTextEncoding    @abstract Find out if the current web page supports text encodings.    @result YES if the document view of the current web page can    support different text encodings.*/- (BOOL)supportsTextEncoding;/*!    @method setCustomTextEncodingName:    @discussion Make the page display with a different text encoding; stops any load in progress.    The text encoding passed in overrides the normal text encoding smarts including    what's specified in a web page's header or HTTP response.    The text encoding automatically goes back to the default when the top level frame    changes to a new location.    Setting the text encoding name to nil makes the webView use default encoding rules.    @param encoding The text encoding name to use to display a page or nil.*/- (void)setCustomTextEncodingName:(NSString *)encodingName;/*!    @method customTextEncodingName    @result The custom text encoding name or nil if no custom text encoding name has been set.*/- (NSString *)customTextEncodingName;/*!    @method setMediaStyle:    @discussion Set the media style for the WebView.  The mediaStyle will override the normal value    of the CSS media property.  Setting the value to nil will restore the normal value.    @param mediaStyle The value to use for the CSS media property.*/- (void)setMediaStyle:(NSString *)mediaStyle;/*!    @method mediaStyle    @result mediaStyle The value to use for the CSS media property, as set by setMediaStyle:.  It    will be nil unless set by that method.*/- (NSString *)mediaStyle;/*!    @method stringByEvaluatingJavaScriptFromString:    @param script The text of the JavaScript.    @result The result of the script, converted to a string, or nil for failure.*/- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;/*!    @method windowScriptObject    @discussion windowScriptObject return a WebScriptObject that represents the    window object from the script environment.    @result Returns the window object from the script environment.*/- (WebScriptObject *)windowScriptObject;/*!    @method setPreferences:    @param preferences The preferences to use for the webView.    @abstract Override the standard setting for the webView. */- (void)setPreferences: (WebPreferences *)prefs;/*!    @method preferences    @result Returns the preferences used by this webView.    @discussion This method will return [WebPreferences standardPreferences] if no    other instance of WebPreferences has been set.*/- (WebPreferences *)preferences;/*!    @method setPreferencesIdentifier:    @param anIdentifier The string to use a prefix for storing values for this WebView in the user    defaults database.    @discussion If the WebPreferences for this WebView are stored in the user defaults database, the    string set in this method will be used a key prefix.*/- (void)setPreferencesIdentifier:(NSString *)anIdentifier;/*!    @method preferencesIdentifier    @result Returns the WebPreferences key prefix.*/- (NSString *)preferencesIdentifier;/*!    @method setHostWindow:    @param hostWindow The host window for the web view.    @discussion Parts of WebKit (such as plug-ins and JavaScript) depend on a window to function    properly. Set a host window so these parts continue to function even when the web view is    not in an actual window.*/- (void)setHostWindow:(NSWindow *)hostWindow;/*!    @method hostWindow    @result The host window for the web view.*/- (NSWindow *)hostWindow;/*!    @method searchFor:direction:caseSensitive:    @abstract Searches a document view for a string and highlights the string if it is found.    Starts the search from the current selection.  Will search across all frames.    @param string The string to search for.    @param forward YES to search forward, NO to seach backwards.    @param caseFlag YES to for case-sensitive search, NO for case-insensitive search.    @result YES if found, NO if not found.*/- (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag;/*!    @method registerViewClass:representationClass:forMIMEType:    @discussion Register classes that implement WebDocumentView and WebDocumentRepresentation respectively.    A document class may register for a primary MIME type by excluding    a subtype, i.e. "video/" will match the document class with    all video types.  More specific matching takes precedence    over general matching.    @param viewClass The WebDocumentView class to use to render data for a given MIME type.    @param representationClass The WebDocumentRepresentation class to use to represent data of the given MIME type.    @param MIMEType The MIME type to represent with an object of the given class.*/+ (void)registerViewClass:(Class)viewClass representationClass:(Class)representationClass forMIMEType:(NSString *)MIMEType;/*!    @method setGroupName:    @param groupName The name of the group for this WebView.    @discussion JavaScript may access named frames within the same group. */- (void)setGroupName:(NSString *)groupName;/*!    @method groupName    @discussion The group name for this WebView.*/- (NSString *)groupName;/*!    @method estimatedProgress    @discussion An estimate of the percent complete for a document load.  This    value will range from 0 to 1.0 and, once a load completes, will remain at 1.0     until a new load starts, at which point it will be reset to 0.  The value is an    estimate based on the total number of bytes expected to be received    for a document, including all it's possible subresources.  For more accurate progress    indication it is recommended that you implement a WebFrameLoadDelegate and a    WebResourceLoadDelegate.*/- (double)estimatedProgress;/*!    @method isLoading    @discussion Returns YES if there are any pending loads.*/- (BOOL)isLoading;/*!    @method elementAtPoint:    @param point A point in the coordinates of the WebView    @result An element dictionary describing the point

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -