(informal protocol)
| Framework | /System/Library/Frameworks/WebKit.framework |
| Availability | Available in Mac OS X v10.2 with Safari 1.0 and later. Available in Mac OS X v10.2.7 and later. |
| Companion guide | |
| Declared in | WebUIDelegate.h |
Web view user interface delegates implement this informal protocol to control the opening of new windows, augment the behavior of default menu items displayed when the user clicks elements, and perform other user interface–related tasks. These methods can be invoked as a result of handling JavaScript or other plug-in content. Delegates that display more than one web view per window, for example, need to implement some of these methods to handle that case. The default implementation assumes one window per web view, so non-conventional user interfaces might implement a user interface delegate.
– webView:createWebViewModalDialogWithRequest: required method
– webViewRunModal: required method
– webView:createWebViewWithRequest: required method
– webViewClose: required method
– webViewIsResizable: required method
– webView:setResizable: required method
– webView:setFrame: required method
– webViewFrame: required method
– webView:setContentRect: required method Deprecated in Mac OS X v10.4.11
– webViewContentRect: required method Deprecated in Mac OS X v10.4.11
– webViewFocus: required method
– webViewUnfocus: required method
– webViewShow: required method
– webViewFirstResponder: required method
– webView:makeFirstResponder: required method
– webView:mouseDidMoveOverElement:modifierFlags: required method
– webView:contextMenuItemsForElement:defaultMenuItems: required method
– webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: required method
– webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame: required method
– webView:runJavaScriptTextInputPanelWithPrompt:defaultText:initiatedByFrame: required method
– webView:runOpenPanelForFileButtonWithResultListener: required method
– webView:runOpenPanelForFileButtonWithResultListener:allowMultipleFiles: required method
– webView:runBeforeUnloadConfirmPanelWithMessage:initiatedByFrame: required method
– webView:runJavaScriptAlertPanelWithMessage: required method Deprecated in Mac OS X v10.4.11
– webView:runJavaScriptConfirmPanelWithMessage: required method Deprecated in Mac OS X v10.4.11
– webView:runJavaScriptTextInputPanelWithPrompt:defaultText: required method Deprecated in Mac OS X v10.4.11
– webView:setStatusText: required method
– webViewStatusText: required method
– webViewAreToolbarsVisible: required method
– webView:setToolbarsVisible: required method
– webViewIsStatusBarVisible: required method
– webView:setStatusBarVisible: required method
– webView:dragDestinationActionMaskForDraggingInfo: required method
– webView:dragSourceActionMaskForPoint: required method
– webView:willPerformDragDestinationAction:forDraggingInfo: required method
– webView:willPerformDragSourceAction:fromPoint:withPasteboard: required method
– webView:shouldPerformAction:fromSender: required method
– webView:validateUserInterfaceItem:defaultValidation: required method
– webView:printFrameView: required method
– webViewHeaderHeight: required method
– webViewFooterHeight: required method
– webView:drawHeaderInRect: required method
– webView:drawFooterInRect: required method
Returns menu items to display in an element's contextual menu. (required)
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems
The web view that sent the message.
A dictionary that describes the element that was clicked. See “Constants” in WebView Class Reference for information about the key-value pairs in this dictionary.
The menu items included by default in the element’s contextual menu. See “Menu Item Tags” for values you can use to differentiate among specific menu items.
An array of menu items to display in the element’s contextual menu.
This method is invoked every time the user clicks the right mouse button, or control-clicks, on an element to reveal a contextual menu. The receiver typically returns a modified copy of the default menu items dictionary, adding and removing menu items as appropriate for this type of element. You can use this mechanism to remove items that are not appropriate for a particular environment or task, such as saving files to the desktop in a web kiosk. You do not need to set the actions and targets of the default items.
WebUIDelegate.hCreates a modal window containing a web view that loads the specified request. (required)
- (WebView *)webView:(WebView *)sender createWebViewModalDialogWithRequest:(NSURLRequest *)request
The web view that sent the message.
The request to load.
The web view that is loading the specified request.
This method is invoked when JavaScript calls window.showModalDialog. It should create a new modal window containing the web view and initially hide the window. The webViewRunModal: message is sent to the delegate to display the web view.
WebUIDelegate.hCreates a window containing a web view to load the specified request. (required)
- (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest *)request
The web view that sent the message.
The request to load.
The web view that is loading the request.
This method should begin loading the content for the specified request by sending loadRequest: to its main frame. The new window should initially be hidden. Later, a webViewShow: message is sent to the delegate of the new web view. By default, this method returns nil.
WebUIDelegate.hReturns a mask indicating which drag operations are allowed by the sender. (required)
- (NSUInteger)webView:(WebView *)sender dragDestinationActionMaskForDraggingInfo:(id <NSDraggingInfo>)draggingInfo
The web view that sent the message.
The information object for the dragging operation.
A mask that indicates which drag operations are allowed when content is dragged over the sending web view. (Note that the return value changed from an unsigned int to an NSUInteger in Mac OS X v10.5.) See “Drag-Destination Actions” for a list of return values.
This method can be invoked multiple times while content is dragged over the sending web view. When the content is dropped, the web view sends a notification (webView:willPerformDragDestinationAction:forDraggingInfo:) to the receiver.
If you do not implement this method, it returns WebDragDestinationActionAny by default.
WebUIDelegate.hReturns a mask indicating which drag-source actions are allowed for a drag that begins at the specified location. (required)
- (NSUInteger)webView:(WebView *)sender dragSourceActionMaskForPoint:(NSPoint)point
The web view that sent the message.
The point at which the drag began, specified in the coordinates of the web view.
A mask indicating which drag-source actions are allowed. (Note that the return value changed from an unsigned int to an NSUInteger in Mac OS X v10.5.) See “Drag-Source Actions” for a list of return values.
This method is called after the user has begun a drag from a point in a web view. This method can be invoked multiple times while content is dragged from the sending web view. When the content is dropped, the sender sends webView:willPerformDragSourceAction:fromPoint:withPasteboard: to the receiver.
If you do not implement this method, it returns (WebDragSourceActionAny & ~WebDragSourceActionLink) if the cursor is in an editable part of the web view; otherwise, it returns WebDragDestinationActionAny.
WebUIDelegate.hDraws the web view’s footer in the specified rectangle. (required)
- (void)webView:(WebView *)sender drawFooterInRect:(NSRect)rect
The web view that sent the message.
The rectangle reserved for drawing the footer.
WebUIDelegate.hDraws the web view’s header in the specified rectangle. (required)
- (void)webView:(WebView *)sender drawHeaderInRect:(NSRect)rect
The web view that sent the message.
The rectangle reserved for drawing the header.
WebUIDelegate.hSets the first responder of a web view’s window to the specified view. (required)
- (void)webView:(WebView *)sender makeFirstResponder:(NSResponder *)responder
The web view that sent the message.
A view in the web view’s hierarchy.
You can ignore this message if sender is not yet attached to a window.
WebUIDelegate.hUpdates information about the element the user is mousing over. (required)
- (void)webView:(WebView *)sender mouseDidMoveOverElement:(NSDictionary *)elementInformation modifierFlags:(NSUInteger)modifierFlags
The web view that sent the message.
A dictionary that describes the element under the mouse, or nil. See “Constants” in WebView Class Reference for information about the key-value pairs in this dictionary.
An integer bit field that indicates the modifier keys in effect during the event. See “Modifier Flags” in NSEvent Class Reference for information about possible modifiers. Note that this parameter was changed from an unsigned int to an NSUInteger in Mac OS X v10.5.
WebUIDelegate.hPrints the contents of a web frame view. (required)
- (void)webView:(WebView *)sender printFrameView:(WebFrameView *)frameView
The web view that sent the message.
The web frame view whose contents to print.
This method is invoked when a script or a user wants to print a webpage. Typically, the delegate implements this method to prepare the web frame view content for printing. The web frame view can handle some content without intervention by the delegate. Send the documentViewShouldHandlePrint message to the web frame view to determine if it can handle printing. If this method returns YES, then the delegate can print the content by sending the printDocumentView message to the web frame view. Otherwise, the delegate can use printOperationWithPrintInfo: to get an NSPrintOperation object to print the web frame view.
WebUIDelegate.hDisplays a confirmation panel containing the specified message before a window closes. (required)
- (BOOL)webView:(WebView *)sender runBeforeUnloadConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
The web view that sent the message.
The message to display in the panel.
The web frame whose JavaScript initiated this call.
YES if the user clicked the OK button; otherwise, NO.
Use this method to include a message in the confirmation panel in addition to the message supplied by the webpage. The confirmation panel should contain OK and Cancel buttons.
WebUIDelegate.hDisplays a JavaScript alert panel containing the specified message. (required)
- (void)webView:(WebView *)sender runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
The web view that sent the message.
The message to display in the alert panel.
The web frame whose JavaScript initiated this call.
This method displays an alert panel when JavaScript code calls alert. Delegates should visually indicate that this panel comes from JavaScript. The panel should contain a single OK button. No action is taken if you do not implement this method.
WebUIDelegate.hDisplays a JavaScript confirmation panel with the specified message. (required)
- (BOOL)webView:(WebView *)sender runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WebFrame *)frame
The web view that sent the message.
The message to display in the confirmation panel.
The web frame whose JavaScript initiated this call.
YES if the user clicks OK; otherwise, NO.
This method displays a confirmation panel when JavaScript code calls confirm. Delegates should visually indicate that this panel comes from JavaScript. The panel should contain an OK and a Cancel button. No action is taken if you do not implement this method.
WebUIDelegate.hDisplays a JavaScript text input panel and returns the entered text. (required)
- (NSString *)webView:(WebView *)sender runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText initiatedByFrame:(WebFrame *)frame
The web view that sent the message.
The message to display in the text input panel.
Default placeholder text to display in the text field.
The web frame whose JavaScript initiated this call.
The text entered by the user if the user clicks OK; otherwise, nil.
This method is used to provide an alternate text input panel when JavaScript code calls prompt. Delegates should visually indicate that this panel comes from JavaScript. The panel should contain an OK and a Cancel button, and an editable text field. If you do not implement this method, a JavaScript text input panel is displayed.
WebUIDelegate.hDisplays an open panel for a file input control. (required)
- (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id < WebOpenPanelResultListener >)resultListener
The web view that sent the message.
See the WebOpenPanelResultListener protocol for how to set these values.
This method uses a listener object to set the results of the open panel, instead of returning the value directly. This approach allows delegates to implement the open panel as a modal dialog. No action is taken if you do not implement this method.
WebUIDelegate.hDisplays an open panel for a file input control. (required)
- (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id < WebOpenPanelResultListener >)resultListener allowMultipleFiles:(BOOL)allowMultipleFiles
The web view that sent the message.
See the WebOpenPanelResultListener protocol for how to set these values.
If YES, the open panel should allow multiple files to be selected; otherwise, it should not.
WebUIDelegate.hSets the frame rectangle of a web view’s window to the specified frame size. (required)
- (void)webView:(WebView *)sender setFrame:(NSRect)frame
The web view that sent the message.
The frame size.
The sender invokes this method instead of setting the window’s frame directly, allowing delegates to augment the behavior by, for example, saving the original window size before resizing as a result of JavaScript running. If you do not implement this method, the NSWindow method setFrame:display: is sent to the window that contains sender, with YES passed as the display argument.
WebUIDelegate.hSets whether a web view’s window can be resized. (required)
- (void)webView:(WebView *)sender setResizable:(BOOL)resizable
The web view that sent the message.
If YES, the web view’s window can be resized; if NO, the window is not resizable.
By default, this method sets the window containing a web view to be resizable. If you display multiple web views in a window then your user interface delegate should implement this method to handle this special case. If you do not implement this method, the NSWindow method setShowsResizeIndicator: is sent to the window that contains sender.
WebUIDelegate.hSets the visibility of the status bar in a web view’s window. (required)
- (void)webView:(WebView *)sender setStatusBarVisible:(BOOL)visible
The web view that sent the message.
If YES, the delegate should display the status bar (if any); if NO, the delegate should hide the status bar.
No action is taken if you do not implement this method.
WebUIDelegate.hSets the status message displayed by a web view’s window, if any, to the specified text. (required)
- (void)webView:(WebView *)sender setStatusText:(NSString *)text
The web view that sent the message.
The status message to display.
The delegate receives this message when a JavaScript function in the web view explicitly sets the status text. No action is taken if you do not implement this method.
WebUIDelegate.hSets whether a web view's toolbars should be visible. (required)
- (void)webView:(WebView *)sender setToolbarsVisible:(BOOL)visible
The web view that sent the message.
If YES, all toolbars (with the exception of the status bar) are shown; otherwise, all toolbars (with the exception of the status bar) are removed.
No action is taken if you do not implement this method.
WebUIDelegate.hReturns a Boolean value that indicates whether the action sent by the specified object should be performed. (required)
- (BOOL)webView:(WebView *)sender shouldPerformAction:(SEL)action fromSender:(id)fromObject
The web view that sent the message.
The action to perform. See WebView Class Reference for information on actions a web view can perform.
The object that sent the action.
YES if the action should be performed; otherwise, NO.
This method allows the delegate to control the web view’s behavior when action methods are invoked. For example, if the action is copy:, the delegate can return NO to perform a copy in some other way than the default.
WebUIDelegate.hReturns a Boolean value that indicates whether the specified user interface item is valid. (required)
- (BOOL)webView:(WebView *)sender validateUserInterfaceItem:(id < NSValidatedUserInterfaceItem >)item defaultValidation:(BOOL)defaultValidation
The web view that sent the message.
The user interface item being validated.
YES if the web view believes the user interface item is valid; otherwise, NO.
YES if the specified user interface item is valid; otherwise, NO.
See NSUserInterfaceValidations Protocol Reference and NSValidatedUserInterfaceItem Protocol Reference for more information about user interface validation. If you do not implement this method, the value of defaultValidation is used.
WebUIDelegate.hTells the receiver that the sending web view will perform the specified drag-destination action. (required)
- (void)webView:(WebView *)sender willPerformDragDestinationAction:(WebDragDestinationAction)action forDraggingInfo:(id < NSDraggingInfo >)draggingInfo
The web view that sent the message.
The drag-destination action to perform. See “Drag-Destination Actions” for a list of actions.
The information object for the dragging operation.
This method is invoked after the last invocation of the webView:dragDestinationActionMaskForDraggingInfo: method, when the dragged content is dropped and the sender is about to perform the destination action. No action is taken if you do not implement this method.
WebUIDelegate.hTells the receiver that the sending web view will perform the specified drag-source action. (required)
- (void)webView:(WebView *)sender willPerformDragSourceAction:(WebDragSourceAction)action fromPoint:(NSPoint)point withPasteboard:(NSPasteboard *)pasteboard
The web view that sent the message.
The drag-source action to perform. See “Drag-Source Actions” for a list of actions.
The point at which the drag began, specified in the coordinates of the web view.
The drag pasteboard.
This method is invoked after the last invocation of the webView:dragSourceActionMaskForPoint: method, when the dragged content is dropped and the sender is about to perform the drag-source action. The delegate has the opportunity to modify the contents of the object on the pasteboard before completing the drag-source action. No action is taken if you do not implement this method.
WebUIDelegate.hReturns a Boolean value indicating whether any toolbars are visible in a web view's window. (required)
- (BOOL)webViewAreToolbarsVisible:(WebView *)sender
The web view that sent the message.
YES if a web view’s window has any toolbars that are currently visible (other than the status bar); otherwise, NO.
WebUIDelegate.hCloses a web view in a window. (required)
- (void)webViewClose:(WebView *)sender
The web view that sent the message.
If you display multiple web views in a window then you might want to close only sender in your implementation. By default, this method sends the close method to the NSWindow object that contains sender.
WebUIDelegate.hReturns the first responder of the web view’s window. (required)
- (NSResponder *)webViewFirstResponder:(WebView *)sender
The web view that sent the message.
The view or subview that currently has the input focus. It can return nil or the default first responder if the sender is not attached to a window or if another view (not in the window) has the focus.
WebUIDelegate.hBrings a web view’s window to the front and makes it the active window. (required)
- (void)webViewFocus:(WebView *)sender
The web view that sent the message.
By default, this method brings a web view's window into focus. If you display multiple web views in a window then you might also want to focus the input on sender, using webView:makeFirstResponder:.
WebUIDelegate.hReturns the height of the web view’s printed page footer. (required)
- (float)webViewFooterHeight:(WebView *)sender
The web view that sent the message.
The height of the web view’s printed page footer. Returns 0.0 if no space is reserved for the footer.
The height returned by this method is used to calculate the rectangle passed to the webView:drawFooterInRect: method.
WebUIDelegate.hReturns the frame rectangle of a web view’s window. (required)
- (NSRect)webViewFrame:(WebView *)sender
The web view that sent the message.
The frame rectangle of the web view’s window.
WebUIDelegate.hReturns the height of the web view’s printed page header. (required)
- (float)webViewHeaderHeight:(WebView *)sender
The web view that sent the message.
The height of the web view’s printed page header. Returns 0.0 if no space is reserved for the header.
The height returned by this method is used to calculate the rectangle passed to the webView:drawHeaderInRect: method.
WebUIDelegate.hReturns a Boolean value indicating whether a web view’s window can be resized. (required)
- (BOOL)webViewIsResizable:(WebView *)sender
The web view that sent the message.
YES if the web view’s window can be resized; otherwise, NO.
If you display multiple web views in a window then your user interface delegate should implement this method to handle this special case.
WebUIDelegate.hReturns a Boolean value indicating whether the status bar in a web view's window is visible. (required)
- (BOOL)webViewIsStatusBarVisible:(WebView *)sender
The web view that sent the message.
YES if a web view's status bar (if any) is visible; otherwise, NO.
If you do not implement this method, it returns NO by default.
WebUIDelegate.hDisplays a web view in a modal window. (required)
- (void)webViewRunModal:(WebView *)sender
The web view that sent the message.
This method should display and order front a modal window containing the specified web view. This method is invoked after the webView:createWebViewModalDialogWithRequest: method is used to create a new window.
WebUIDelegate.hDisplays a web view’s window and moves it to the front. (required)
- (void)webViewShow:(WebView *)sender
The web view that sent the message.
This method is typically used after a call to webView:createWebViewWithRequest:, which creates a new window. The new window is not ordered to the front (or even shown) unless you implement this method.
WebUIDelegate.hReturns the current status message from a web view's window. (required)
- (NSString *)webViewStatusText:(WebView *)sender
The web view that sent the message.
The status message displayed in the web view’s window if one has been set with the webView:setStatusText: method; otherwise, nil.
WebUIDelegate.hRelinquishes focus on a web view’s window. (required)
- (void)webViewUnfocus:(WebView *)sender
The web view that sent the message.
This method releases focus for the entire window. If you display multiple web views in a window, you might instead want to change the input focus to another view, using the webView:makeFirstResponder: method.
WebUIDelegate.hTags that define the types of default menu items passed to the webView:contextMenuItemsForElement:defaultMenuItems: method.
enum {
WebMenuItemTagOpenLinkInNewWindow = 1,
WebMenuItemTagDownloadLinkToDisk,
WebMenuItemTagCopyLinkToClipboard,
WebMenuItemTagOpenImageInNewWindow,
WebMenuItemTagDownloadImageToDisk,
WebMenuItemTagCopyImageToClipboard,
WebMenuItemTagOpenFrameInNewWindow,
WebMenuItemTagCopy,
WebMenuItemTagGoBack,
WebMenuItemTagGoForward,
WebMenuItemTagStop,
WebMenuItemTagReload,
WebMenuItemTagCut,
WebMenuItemTagPaste,
WebMenuItemTagSpellingGuess,
WebMenuItemTagNoGuessesFound,
WebMenuItemTagIgnoreSpelling,
WebMenuItemTagLearnSpelling,
WebMenuItemTagOther,
WebMenuItemTagSearchInSpotlight,
WebMenuItemTagSearchWeb,
WebMenuItemTagLookUpInDictionary,
WebMenuItemTagOpenWithDefaultApplication,
WebMenuItemPDFActualSize,
WebMenuItemPDFZoomIn,
WebMenuItemPDFZoomOut,
WebMenuItemPDFAutoSize,
WebMenuItemPDFSinglePage,
WebMenuItemPDFFacingPages,
WebMenuItemPDFContinuous,
WebMenuItemPDFNextPage,
WebMenuItemPDFPreviousPage,
};
WebMenuItemTagOpenLinkInNewWindowOpen the link in a new window.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagDownloadLinkToDiskDownload the link to a disk.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagCopyLinkToClipboardCopy the link to the clipboard.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagOpenImageInNewWindowOpen the image in a new window.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagDownloadImageToDiskDownload the image to disk.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagCopyImageToClipboardCopy the image to the clipboard.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagOpenFrameInNewWindowOpen the frame in a new window.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagCopyCopy the element to the clipboard.
Available in Mac OS X v10.2 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagGoBackLoad the previous page.
Available in Mac OS X v10.3.9 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagGoForwardLoad the next page.
Available in Mac OS X v10.3.9 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagStopStop loading the current page.
Available in Mac OS X v10.3.9 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagReloadReload the current page.
Available in Mac OS X v10.3.9 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagCutCut the currently selected content.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagPastePaste the content on the clipboard onto the current selection.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagSpellingGuessSuggest spellings for the misspelled word.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagNoGuessesFoundIndicate whether any suggested spellings for the misspelled word could be found.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagIgnoreSpellingIgnore the misspelled word.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagLearnSpellingAdd the misspelled word to the user’s list of acceptable words.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagOtherUsed when a tag for an item in the context menu can’t be determined.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagSearchInSpotlightSearch SpotLight for the current selection.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagSearchWebSearch the web for the current selection.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagLookUpInDictionaryLook up the current selection in the Dictionary.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemTagOpenWithDefaultApplicationOpen the current selection using the default application.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFActualSizeDisplay a PDF document at its original size.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFZoomInScale up a PDF document.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFZoomOutScale down a PDF document.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFAutoSizeDisplay a PDF document at a user-specified size.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFSinglePageDisplay a PDF document one page at a time.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFFacingPagesDisplay a PDF document two pages at a time.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFContinuousDisplay all pages in a PDF document continuously, using a vertical scroll bar, if necessary.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFNextPageDisplay the next page of a PDF document.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
WebMenuItemPDFPreviousPageDisplay the previous page of a PDF document.
Available in Mac OS X v10.4.11 and later.
Declared in WebUIDelegate.h.
These tags define common actions a user might want to take with elements in a page. You can use the tags to differentiate between the different types of menu items.
WebUIDelegate.hActions that the destination object of a drag operation can perform.
typedef enum {
WebDragDestinationActionNone = 0,
WebDragDestinationActionDHTML = 1,
WebDragDestinationActionEdit = 2,
WebDragDestinationActionLoad = 4,
WebDragDestinationActionAny = UINT_MAX
} WebDragDestinationAction;
WebDragDestinationActionNoneNo action.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragDestinationActionDHTMLAllows DHTML (such as JavaScript) to handle the drag.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragDestinationActionEditAllows editable documents to be changed by the drag operation.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragDestinationActionLoadAllows the drag operation to change the location.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragDestinationActionAnyAllows any defined action to occur.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebUIDelegate.hActions that the source object of a drag operation can perform.
typedef enum {
WebDragSourceActionNone = 0,
WebDragSourceActionDHTML = 1,
WebDragSourceActionImage = 2,
WebDragSourceActionLink = 4,
WebDragSourceActionSelection = 8,
WebDragSourceActionAny = UINT_MAX
} WebDragSourceAction;
WebDragSourceActionNoneNo action.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragSourceActionDHTMLAllows DHTML (such as JavaScript) in the source object to initiate a drag operation.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragSourceActionImageAllows the user to drag an image in the source object.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragSourceActionLinkAllows the user to drag a link in the source object.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragSourceActionSelectionAllows the user to drag a selection in the source object.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
WebDragSourceActionAnyAllows any defined action to occur.
Available in Mac OS X v10.3 and later.
Declared in WebUIDelegate.h.
Last updated: 2009-04-02