c.addListener(SWT.Show, listener);
c.addListener(SWT.Hide, listener);
c = c.getParent();
} while (c != shell);
if (Callback3 == null) Callback3 = new Callback(this.getClass(), "eventProc3", 3); //$NON-NLS-1$
int callback3Address = Callback3.getAddress();
if (callback3Address == 0) SWT.error(SWT.ERROR_NO_MORE_CALLBACKS);
int[] mask = new int[] {
OS.kEventClassKeyboard, OS.kEventRawKeyDown,
OS.kEventClassControl, OS.kEventControlDraw,
OS.kEventClassTextInput, OS.kEventTextInputUnicodeForKeyEvent,
};
int controlTarget = OS.GetControlEventTarget(webViewHandle);
OS.InstallEventHandler(controlTarget, callback3Address, mask.length / 2, mask, webViewHandle, null);
if (Callback7 == null) Callback7 = new Callback(this.getClass(), "eventProc7", 7); //$NON-NLS-1$
int callback7Address = Callback7.getAddress();
if (callback7Address == 0) SWT.error(SWT.ERROR_NO_MORE_CALLBACKS);
// delegate = [[WebResourceLoadDelegate alloc] init eventProc];
delegate = WebKit.objc_msgSend(WebKit.C_WebKitDelegate, WebKit.S_alloc);