Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2249663002: Fixed & refactored mouse event firing at gesture context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Realigned test outcomes. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // If not, use the current focus or last clicked node. 235 // If not, use the current focus or last clicked node.
236 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr); 236 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr);
237 237
238 private: 238 private:
239 static DragState& dragState(); 239 static DragState& dragState();
240 240
241 DataTransfer* createDraggingDataTransfer() const; 241 DataTransfer* createDraggingDataTransfer() const;
242 242
243 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 243 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
244 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 244 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
245 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 245 WebInputEventResult handleMouseFocus(const HitTestResult&, InputDeviceCapabi lities* sourceCapabilities);
246 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 246 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
247 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 247 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
248 248
249 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType); 249 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E ventType);
250 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); 250 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
251 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult s&); 251 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult s&);
252 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); 252 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&);
253 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&); 253 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu lts&);
254 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&); 254 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult s&);
255 255
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // firing for the current gesture sequence (i.e. until next GestureTapDown). 413 // firing for the current gesture sequence (i.e. until next GestureTapDown).
414 bool m_suppressMouseEventsFromGestures; 414 bool m_suppressMouseEventsFromGestures;
415 415
416 // TODO(nzolghadr): Temporary until further refactoring 416 // TODO(nzolghadr): Temporary until further refactoring
417 friend GestureManager; 417 friend GestureManager;
418 }; 418 };
419 419
420 } // namespace blink 420 } // namespace blink
421 421
422 #endif // EventHandler_h 422 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698