webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
import"IWebUIDelegate.idl";
canRedo: Returns whether there's anything on the redo stack to be redone
canUndo: Returns whether there's anything on the undo stack to be undone
HRESULT IWebUIDelegate::contextMenuItemsForElement | ( | [in] IWebView * | sender, |
[in] IPropertyBag * | element, | ||
[in] HMENU | defaultItemsHMenu, | ||
[out, retval] HMENU * | resultHMenu | ||
) |
webView:contextMenuItemsForElement:defaultMenuItems: Returns the menu items to display in an element's contextual menu.
sender | The WebView sending the delegate method. |
element | A dictionary representation of the clicked element. |
defaultMenuItems | An array of default NSMenuItems to include in all contextual menus. |
Implemented in UIDelegate.
HRESULT IWebUIDelegate::createModalDialog | ( | [in] IWebView * | sender, |
[in] IWebURLRequest * | request, | ||
[out, retval] IWebView ** | newWebView | ||
) |
HRESULT IWebUIDelegate::createWebViewWithRequest | ( | [in] IWebView * | sender, |
[in] IWebURLRequest * | request, | ||
[out, retval] IWebView ** | newWebView | ||
) |
webView:createWebViewWithRequest: Create a new window and begin to load the specified request. The newly created window is hidden, and the window operations delegate on the new WebViews will get a webViewShow: call.
HRESULT IWebUIDelegate::dragDestinationActionMaskForDraggingInfo | ( | [in] IWebView * | webView, |
[in] IDataObject * | draggingInfo, | ||
[out, retval] WebDragDestinationAction * | action | ||
) |
webView:dragDestinationActionMaskForDraggingInfo: Controls behavior when dragging to a WebView
webView | The WebView sending the delegate method |
draggingInfo | The dragging info of the drag This method is called periodically as something is dragged over a WebView. The UI delegate can return a mask indicating which drag destination actions can occur, WebDragDestinationActionAny to allow any kind of action or WebDragDestinationActionNone to not accept the drag.
|
HRESULT IWebUIDelegate::dragSourceActionMaskForPoint | ( | [in] IWebView * | webView, |
[in] LPPOINT | point, | ||
[out, retval] WebDragSourceAction * | action | ||
) |
webView:dragSourceActionMaskForPoint: Controls behavior when dragging from a WebView
webView | The WebView sending the delegate method |
point | The point where the drag started in the coordinates of the WebView This method is called after the user has begun a drag from a WebView. The UI delegate can return a mask indicating which drag source actions can occur, WebDragSourceActionAny to allow any kind of action or WebDragSourceActionNone to not begin a drag.
|
Implemented in PrintWebUIDelegate.
HRESULT IWebUIDelegate::ftpDirectoryTemplatePath | ( | [in] IWebView * | webView, |
[out, retval] BSTR * | path | ||
) |
webView:ftpDirectoryTemplatePath Returns the path to the FTP directory listing template document
webView | The WebView sending the delegate method |
path | The path to the template document This method is called when an FTP directory listing is viewed in a webView. In practice, all WebViews show the same template document data that was loaded for the very first WebView that displayed a directory listing, so this will only be called once. |
webView:makeFirstResponder: Set the first responder for this window.
sender | The WebView sending the delegate method. |
responder | The responder to make first (will always be a view) responder will always be a view that is in the view subhierarchy of the top-level web view for this WebView. If the WebView's top level view is currently out of the view hierarchy, it may be desirable to save the first responder elsewhere, or possibly ignore this call.
|
Implemented in PrintWebUIDelegate.
HRESULT IWebUIDelegate::mouseDidMoveOverElement | ( | [in] IWebView * | sender, |
[in] IPropertyBag * | elementInformation, | ||
[in] UINT | modifierFlags | ||
) |
webView:mouseDidMoveOverElement:modifierFlags: Update the window's feedback for mousing over links to reflect a new item the mouse is over or new modifier flags.
sender | The WebView sending the delegate method. |
elementInformation | Dictionary that describes the element that the mouse is over, or nil. |
modifierFlags | The modifier flags as in NSEvent.
|
HRESULT IWebUIDelegate::paintCustomScrollbar | ( | [in] IWebView * | webView, |
[in] HDC | hDC, | ||
[in] RECT | rect, | ||
[in] WebScrollBarControlSize | size, | ||
[in] WebScrollbarControlState | state, | ||
[in] WebScrollbarControlPart | pressedPart, | ||
[in] BOOL | vertical, | ||
[in] float | value, | ||
[in] float | proportion, | ||
[in] WebScrollbarControlPartMask | parts | ||
) |
HRESULT IWebUIDelegate::paintCustomScrollCorner | ( | [in] IWebView * | webView, |
[in] HDC | hDC, | ||
[in] RECT | rect | ||
) |
webView:printFrame: Informs that a WebFrame needs to be printed
HRESULT IWebUIDelegate::redo | ( | ) |
redo: Redo the last group of operations
Implemented in WebInspectorDelegate, UIDelegate, and PrintWebUIDelegate.
HRESULT IWebUIDelegate::registerUndoWithTarget | ( | [in] IWebUndoTarget * | target, |
[in] BSTR | actionName, | ||
[in] IUnknown * | actionArg | ||
) |
Undo related UI delegate methods --------------------------------------------------------------------------——.
registerUndoWithTarget: Registers an undo operation of a IWebUndoTarget on the undo/redo stack.
HRESULT IWebUIDelegate::removeAllActionsWithTarget | ( | [in] IWebUndoTarget * | target | ) |
removeAllActionsWithTarget: remove all the undo operations that are registered for the passed in target on the undo/redo stack.
target |
HRESULT IWebUIDelegate::runBeforeUnloadConfirmPanelWithMessage | ( | [in] IWebView * | sender, |
[in] BSTR | message, | ||
[in] IWebFrame * | initiatedByFrame, | ||
[out, retval] BOOL * | result | ||
) |
webView:runJavaScriptConfirmPanelWithMessage:initiatedByFrame: Display a confirm panel by an "before unload" event handler.
sender | The WebView sending the delegate method. |
message | The message to display. |
frame | The WebFrame whose JavaScript initiated this call. |
HRESULT IWebUIDelegate::runDatabaseSizeLimitPrompt | ( | [in] IWebView * | webView, |
[in] BSTR | displayName, | ||
[in] IWebFrame * | initiatedByFrame, | ||
[out, retval] BOOL * | allowed | ||
) |
HRESULT IWebUIDelegate::runJavaScriptAlertPanelWithMessage | ( | [in] IWebView * | sender, |
[in] BSTR | message | ||
) |
webView:runJavaScriptAlertPanelWithMessage: Display a JavaScript alert panel
HRESULT IWebUIDelegate::runJavaScriptConfirmPanelWithMessage | ( | [in] IWebView * | sender, |
[in] BSTR | message, | ||
[out, retval] BOOL * | result | ||
) |
webView:runJavaScriptConfirmPanelWithMessage: Display a JavaScript confirm panel
HRESULT IWebUIDelegate::runJavaScriptTextInputPanelWithPrompt | ( | [in] IWebView * | sender, |
[in] BSTR | message, | ||
[in] BSTR | defaultText, | ||
[out, retval] BSTR * | result | ||
) |
webView:runJavaScriptTextInputPanelWithPrompt:defaultText: Display a JavaScript text input panel
sender | The WebView sending the delegate method. |
message | The message to display |
defaultText | The initial text for the text entry area. |
HRESULT IWebUIDelegate::runOpenPanelForFileButtonWithResultListener | ( | [in] IWebView * | sender, |
[in] IWebOpenPanelResultListener * | resultListener | ||
) |
webView:runOpenPanelForFileButtonWithResultListener: Display a file open panel for a file input control.
sender | The WebView sending the delegate method. |
resultListener | The object to call back with the results. This method is passed a callback object instead of giving a return value so that it can be handled with a sheet.
|
setActionTitle: Sets the name of the action for the current group of undo operations
actionName | Name of the action |
webView:setContentRect: Set the window's content rect
sender | The WebView sending the delegate method. |
frame | The new window content rect Even though a caller could set the content rect directly using the NSWindow, this method is provided so implementors of this protocol can do special things on programmatic move/resize, like avoiding autosaving of the size.
|
webView:setFrame: Set the window's frame rect
sender | The WebView sending the delegate method. |
frame | The new window frame size Even though a caller could set the frame directly using the NSWindow, this method is provided so implementors of this protocol can do special things on programmatic move/resize, like avoiding autosaving of the size.
|
webView:setResizable: Set the window to resizable or not
sender | The WebView sending the delegate method. |
resizable | YES if the window should be made resizable, NO if not. If there are multiple views in the same window, they have have their own separate resize controls and this may need to be handled specially.
|
webView:setStatusBarVisible: Set whether the status bar is currently visible.
visible | The new visibility value Setting this to YES should show the status bar, setting it to NO should hide it.
|
webView:setToolbarsVisible:
sender | The WebView sending the delegate method. Set whether the window's toolbars are currently visible. |
visible | New value for toolbar visibility Setting this to YES should turn on all toolbars (except for a possible status bar). Setting it to NO should turn off all toolbars (with the same exception).
|
HRESULT IWebUIDelegate::shouldPerformAction | ( | [in] IWebView * | webView, |
[in] UINT | itemCommandID, | ||
[in] UINT | sender | ||
) |
webView:shouldPerformAction:fromSender: Controls actions
webView | The WebView sending the delegate method |
action | The action being sent |
sender | The sender of the action This method allows the UI delegate to control WebView's behavior when an action is being sent. For example, if the action is copy:, the delegate can return YES to allow WebView to perform its default copy behavior or return NO and perform copy: in some other way. See WebView.h to see the actions that WebView can perform.
|
HRESULT IWebUIDelegate::trackCustomPopupMenu | ( | [in] IWebView * | sender, |
[in] HMENU | hMenu, | ||
[in] LPPOINT | point | ||
) |
HRESULT IWebUIDelegate::undo | ( | ) |
undo: Undo the last group of operations
Implemented in WebInspectorDelegate, UIDelegate, and PrintWebUIDelegate.
HRESULT IWebUIDelegate::validateUserInterfaceItem | ( | [in] IWebView * | webView, |
[in] UINT | itemCommandID, | ||
[in] BOOL | defaultValidation, | ||
[out, retval] BOOL * | isValid | ||
) |
webView:validateUserInterfaceItem:defaultValidation: Controls UI validation
webView | The WebView sending the delegate method |
item | The user interface item being validated defaultValidation Whether or not the WebView thinks the item is valid This method allows the UI delegate to control WebView's validation of user interface items. See WebView.h to see the methods to that WebView can currently validate. See NSUserInterfaceValidations and NSValidatedUserInterfaceItem for information about UI validation.
|
HRESULT IWebUIDelegate::webViewAreToolbarsVisible | ( | [in] IWebView * | sender, |
[out, retval] BOOL * | visible | ||
) |
webViewAreToolbarsVisible: Determine whether the window's toolbars are currently visible
sender | The WebView sending the delegate method. This method should return YES if the window has any toolbars that are currently on, besides the status bar. If the app has more than one toolbar per window, for example a regular command toolbar and a favorites bar, it should return YES from this method if at least one is on. |
webViewClose: Close the current window.
HRESULT IWebUIDelegate::webViewContentRect | ( | [in] IWebView * | sender, |
[out, retval] RECT * | contentRect | ||
) |
webViewContentRect: Return the window's content rect
HRESULT IWebUIDelegate::webViewFirstResponder | ( | [in] IWebView * | sender, |
[out, retval] HWND * | responderHWnd | ||
) |
webViewFirstResponder: Get the first responder for this window.
sender | The WebView sending the delegate method. This method should return the focused control in the WebView's view, if any. If the view is out of the window hierarchy, this might return something than calling firstResponder on the real NSWindow would. It's OK to return either nil or the real first responder if some control not in the window has focus.
|
HRESULT IWebUIDelegate::webViewFooterHeight | ( | [in] IWebView * | webView, |
[out, retval] float * | result | ||
) |
webViewFooterHeight:
webView | The WebView sending the delegate method Reserve a height for the printed page footer. |
HRESULT IWebUIDelegate::webViewHeaderHeight | ( | [in] IWebView * | webView, |
[out, retval] float * | result | ||
) |
webViewHeaderHeight:
webView | The WebView sending the delegate method Reserve a height for the printed page header. |
HRESULT IWebUIDelegate::webViewIsResizable | ( | [in] IWebView * | sender, |
[out, retval] BOOL * | resizable | ||
) |
webViewIsResizable: Determine whether the window is resizable or not.
HRESULT IWebUIDelegate::webViewPrintingMarginRect | ( | [in] IWebView * | webView, |
[out, retval] RECT * | rect | ||
) |
HRESULT IWebUIDelegate::willPerformDragDestinationAction | ( | [in] IWebView * | webView, |
[in] WebDragDestinationAction | action, | ||
[in] IDataObject * | draggingInfo | ||
) |
webView:willPerformDragDestinationAction:forDraggingInfo: Informs that WebView will perform a drag destination action
webView | The WebView sending the delegate method |
action | The drag destination action |
draggingInfo | The dragging info of the drag This method is called after the last call to webView:dragDestinationActionMaskForDraggingInfo: after something is dropped on a WebView. This method informs the UI delegate of the drag destination action that WebView will perform.
|
HRESULT IWebUIDelegate::willPerformDragSourceAction | ( | [in] IWebView * | webView, |
[in] WebDragSourceAction | action, | ||
[in] LPPOINT | point, | ||
[in] IDataObject * | pasteboard, | ||
[out, retval] IDataObject ** | newPasteboard | ||
) |
webView:willPerformDragSourceAction:fromPoint:withPasteboard: Informs that a drag a has begun from a WebView
webView | The WebView sending the delegate method |
action | The drag source action |
point | The point where the drag started in the coordinates of the WebView |
pasteboard | The drag pasteboard This method is called after webView:dragSourceActionMaskForPoint: is called after the user has begun a drag from a WebView. This method informs the UI delegate of the drag source action that will be performed and gives the delegate an opportunity to modify the contents of the dragging pasteboard.
|