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

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

Issue 1731353003: Prevent propagation of wheel events to dispatch event in parent iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 WebInputEventResult dispatchDragSrcEvent(const AtomicString& eventType, cons t PlatformMouseEvent&); 311 WebInputEventResult dispatchDragSrcEvent(const AtomicString& eventType, cons t PlatformMouseEvent&);
312 312
313 bool dragHysteresisExceeded(const IntPoint&) const; 313 bool dragHysteresisExceeded(const IntPoint&) const;
314 314
315 WebInputEventResult passMousePressEventToSubframe(MouseEventWithHitTestResul ts&, LocalFrame* subframe); 315 WebInputEventResult passMousePressEventToSubframe(MouseEventWithHitTestResul ts&, LocalFrame* subframe);
316 WebInputEventResult passMouseMoveEventToSubframe(MouseEventWithHitTestResult s&, LocalFrame* subframe, HitTestResult* hoveredNode = nullptr); 316 WebInputEventResult passMouseMoveEventToSubframe(MouseEventWithHitTestResult s&, LocalFrame* subframe, HitTestResult* hoveredNode = nullptr);
317 WebInputEventResult passMouseReleaseEventToSubframe(MouseEventWithHitTestRes ults&, LocalFrame* subframe); 317 WebInputEventResult passMouseReleaseEventToSubframe(MouseEventWithHitTestRes ults&, LocalFrame* subframe);
318 318
319 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&); 319 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&);
320 320
321 WebInputEventResult passWheelEventToWidget(const PlatformWheelEvent&, Widget &);
322 void defaultSpaceEventHandler(KeyboardEvent*); 321 void defaultSpaceEventHandler(KeyboardEvent*);
323 void defaultBackspaceEventHandler(KeyboardEvent*); 322 void defaultBackspaceEventHandler(KeyboardEvent*);
324 void defaultTabEventHandler(KeyboardEvent*); 323 void defaultTabEventHandler(KeyboardEvent*);
325 void defaultEscapeEventHandler(KeyboardEvent*); 324 void defaultEscapeEventHandler(KeyboardEvent*);
326 void defaultArrowEventHandler(WebFocusType, KeyboardEvent*); 325 void defaultArrowEventHandler(WebFocusType, KeyboardEvent*);
327 326
328 void updateLastScrollbarUnderMouse(Scrollbar*, bool); 327 void updateLastScrollbarUnderMouse(Scrollbar*, bool);
329 328
330 void setFrameWasScrolledByUser(); 329 void setFrameWasScrolledByUser();
331 330
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 // scroll which shouldn't propagate can't cause any element to 455 // scroll which shouldn't propagate can't cause any element to
457 // scroll other than the |m_previousGestureScrolledNode|. 456 // scroll other than the |m_previousGestureScrolledNode|.
458 bool m_deltaConsumedForScrollSequence; 457 bool m_deltaConsumedForScrollSequence;
459 }; 458 };
460 459
461 } // namespace blink 460 } // namespace blink
462 461
463 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 462 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
464 463
465 #endif // EventHandler_h 464 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698