Changeset 175635 in webkit
- Timestamp:
- Nov 5, 2014 12:48:37 PM (9 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r175632 r175635 1 2014-11-05 Conrad Shultz <conrad_shultz@apple.com> 2 3 Disable action menus on page previews 4 https://bugs.webkit.org/show_bug.cgi?id=138431 5 6 Reviewed by Anders Carlsson. 7 8 * UIProcess/API/mac/WKView.mm: 9 (-[WKView _shouldIgnoreMouseEvents]): 10 Renamed from -shouldIgnoreMouseEvents since this isn't actually public. 11 (-[WKView swipeWithEvent:]): 12 (-[WKView mouseMoved:]): 13 (-[WKView mouseDown:]): 14 (-[WKView mouseUp:]): 15 (-[WKView mouseDragged:]): 16 Updated to reflect method rename. 17 (-[WKView shouldIgnoreMouseEvents]): Deleted. 18 19 * UIProcess/API/mac/WKViewInternal.h: 20 Expose -_shouldIgnoreMouseEvents. 21 22 * UIProcess/mac/WKActionMenuController.mm: 23 (-[WKActionMenuController prepareForMenu:withEvent:]): 24 Cancel the menu if the presenting WKView should ignore mouse events. 25 1 26 2014-11-05 Beth Dakin <bdakin@apple.com> 2 27 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r175630 r175635 1097 1097 // Events 1098 1098 1099 - (BOOL) shouldIgnoreMouseEvents1099 - (BOOL)_shouldIgnoreMouseEvents 1100 1100 { 1101 1101 // FIXME: This check is surprisingly specific. Are there any other cases where we need to block mouse events? … … 1152 1152 - (void)Selector:(NSEvent *)theEvent \ 1153 1153 { \ 1154 if ( [self shouldIgnoreMouseEvents]) \1154 if (self._shouldIgnoreMouseEvents) \ 1155 1155 return; \ 1156 1156 if (NSTextInputContext *context = [self inputContext]) { \ … … 1172 1172 - (void)Selector:(NSEvent *)theEvent \ 1173 1173 { \ 1174 if ( [self shouldIgnoreMouseEvents]) \1174 if (self._shouldIgnoreMouseEvents) \ 1175 1175 return; \ 1176 1176 if ([[self inputContext] handleEvent:theEvent]) { \ … … 1224 1224 - (void)swipeWithEvent:(NSEvent *)event 1225 1225 { 1226 if ( [self shouldIgnoreMouseEvents])1226 if (self._shouldIgnoreMouseEvents) 1227 1227 return; 1228 1228 … … 1242 1242 - (void)mouseMoved:(NSEvent *)event 1243 1243 { 1244 if ( [self shouldIgnoreMouseEvents])1244 if (self._shouldIgnoreMouseEvents) 1245 1245 return; 1246 1246 … … 1254 1254 - (void)mouseDown:(NSEvent *)event 1255 1255 { 1256 if ( [self shouldIgnoreMouseEvents])1256 if (self._shouldIgnoreMouseEvents) 1257 1257 return; 1258 1258 … … 1264 1264 - (void)mouseUp:(NSEvent *)event 1265 1265 { 1266 if ( [self shouldIgnoreMouseEvents])1266 if (self._shouldIgnoreMouseEvents) 1267 1267 return; 1268 1268 … … 1273 1273 - (void)mouseDragged:(NSEvent *)event 1274 1274 { 1275 if ( [self shouldIgnoreMouseEvents])1275 if (self._shouldIgnoreMouseEvents) 1276 1276 return; 1277 1277 -
trunk/Source/WebKit2/UIProcess/API/mac/WKViewInternal.h
r175610 r175635 110 110 - (BOOL)_suppressVisibilityUpdates; 111 111 112 - (BOOL)_shouldIgnoreMouseEvents; 113 112 114 - (void)_didFirstVisuallyNonEmptyLayoutForMainFrame; 113 115 - (void)_didFinishLoadForMainFrame; -
trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm
r175632 r175635 142 142 return; 143 143 144 if (_wkView._shouldIgnoreMouseEvents) { 145 [menu cancelTracking]; 146 return; 147 } 148 144 149 _page->performActionMenuHitTestAtLocation([_wkView convertPoint:event.locationInWindow fromView:nil]); 145 150
Note: See TracChangeset
for help on using the changeset viewer.