Home | History | Annotate | Download | only in WebView

Lines Matching refs:event

21  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
49 - (BOOL)handleMouseEvent:(NSEvent *)event;
63 - (void)_setMouseDownEvent:(NSEvent *)event
65 ASSERT(!event || [event type] == NSLeftMouseDown || [event type] == NSRightMouseDown || [event type] == NSOtherMouseDown);
67 if (event == _private->mouseDownEvent)
70 [event retain];
72 _private->mouseDownEvent = event;
75 - (void)mouseDown:(NSEvent *)event
82 [super mouseDown:event];
86 // There's a chance that responding to this event will run a nested event loop, and
87 // fetching a new event might release the old one. Retaining and then autoreleasing
88 // the current event prevents that from causing a problem inside WebKit or AppKit code.
89 [[event retain] autorelease];
92 if ([[self inputContext] wantsToHandleMouseEvents] && [[self inputContext] handleMouseEvent:event])
98 [self _setMouseDownEvent:event];
101 if ([currentInputManager wantsToHandleMouseEvents] && [currentInputManager handleMouseEvent:event])
106 // If the web page handles the context menu event and menuForEvent: returns nil, we'll get control click events here.
108 if (!([event modifierFlags] & NSControlKeyMask)) {
114 // Let WebCore get a chance to deal with the event. This will call back to us
117 frame->eventHandler()->mouseDown(event);
124 - (void)mouseUp:(NSEvent *)event
131 [super mouseUp:event];
135 // There's a chance that responding to this event will run a nested event loop, and
136 // fetching a new event might release the old one. Retaining and then autoreleasing
137 // the current event prevents that from causing a problem inside WebKit or AppKit code.
138 [[event retain] autorelease];
143 if ([currentInputManager wantsToHandleMouseEvents] && [currentInputManager handleMouseEvent:event])
150 frame->eventHandler()->mouseUp(event);
156 + (void)_updateMouseoverWithEvent:(NSEvent *)event
162 NSView *contentView = [[event window] contentView];
163 NSPoint locationForHitTest = [[contentView superview] convertPoint:[event locationInWindow] fromView:nil];
191 coreFrame->eventHandler()->mouseMoved(event);