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

Side by Side Diff: Source/core/page/EventHandler.h

Issue 197213011: Selectively disable rubber banding on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Attempts to scroll the DOM tree. If that fails, scrolls the view. 133 // Attempts to scroll the DOM tree. If that fails, scrolls the view.
134 // If the view can't be scrolled either, recursively bubble to the parent fr ame. 134 // If the view can't be scrolled either, recursively bubble to the parent fr ame.
135 bool bubblingScroll(ScrollDirection, ScrollGranularity, Node* startingNode = 0); 135 bool bubblingScroll(ScrollDirection, ScrollGranularity, Node* startingNode = 0);
136 136
137 bool handleMouseMoveEvent(const PlatformMouseEvent&); 137 bool handleMouseMoveEvent(const PlatformMouseEvent&);
138 void handleMouseLeaveEvent(const PlatformMouseEvent&); 138 void handleMouseLeaveEvent(const PlatformMouseEvent&);
139 139
140 bool handleMousePressEvent(const PlatformMouseEvent&); 140 bool handleMousePressEvent(const PlatformMouseEvent&);
141 bool handleMouseReleaseEvent(const PlatformMouseEvent&); 141 bool handleMouseReleaseEvent(const PlatformMouseEvent&);
142 bool handleWheelEvent(const PlatformWheelEvent&); 142 bool handleWheelEvent(const PlatformWheelEvent&, bool canRubberbandLeft, boo l canRubberbandRight);
143 void defaultWheelEventHandler(Node*, WheelEvent*); 143 void defaultWheelEventHandler(Node*, WheelEvent*);
144 144
145 bool handleGestureEvent(const PlatformGestureEvent&); 145 bool handleGestureEvent(const PlatformGestureEvent&);
146 bool handleGestureScrollEnd(const PlatformGestureEvent&); 146 bool handleGestureScrollEnd(const PlatformGestureEvent&);
147 bool isScrollbarHandlingGestures() const; 147 bool isScrollbarHandlingGestures() const;
148 148
149 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi ze& touchRadius, IntPoint& targetPoint, Node*& targetNode); 149 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi ze& touchRadius, IntPoint& targetPoint, Node*& targetNode);
150 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int Size& touchRadius, IntPoint& targetPoint, Node*& targetNode); 150 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int Size& touchRadius, IntPoint& targetPoint, Node*& targetNode);
151 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode); 151 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
152 152
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 bool dragHysteresisExceeded(const IntPoint&) const; 274 bool dragHysteresisExceeded(const IntPoint&) const;
275 275
276 bool passMousePressEventToSubframe(MouseEventWithHitTestResults&, LocalFrame * subframe); 276 bool passMousePressEventToSubframe(MouseEventWithHitTestResults&, LocalFrame * subframe);
277 bool passMouseMoveEventToSubframe(MouseEventWithHitTestResults&, LocalFrame* subframe, HitTestResult* hoveredNode = 0); 277 bool passMouseMoveEventToSubframe(MouseEventWithHitTestResults&, LocalFrame* subframe, HitTestResult* hoveredNode = 0);
278 bool passMouseReleaseEventToSubframe(MouseEventWithHitTestResults&, LocalFra me* subframe); 278 bool passMouseReleaseEventToSubframe(MouseEventWithHitTestResults&, LocalFra me* subframe);
279 279
280 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&, Scrollbar *); 280 bool passMousePressEventToScrollbar(MouseEventWithHitTestResults&, Scrollbar *);
281 281
282 bool passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults&); 282 bool passWidgetMouseDownEventToWidget(const MouseEventWithHitTestResults&);
283 283
284 bool passWheelEventToWidget(const PlatformWheelEvent&, Widget*); 284 bool passWheelEventToWidget(const PlatformWheelEvent&, Widget*, bool, bool);
285 285
286 void defaultSpaceEventHandler(KeyboardEvent*); 286 void defaultSpaceEventHandler(KeyboardEvent*);
287 void defaultBackspaceEventHandler(KeyboardEvent*); 287 void defaultBackspaceEventHandler(KeyboardEvent*);
288 void defaultTabEventHandler(KeyboardEvent*); 288 void defaultTabEventHandler(KeyboardEvent*);
289 void defaultEscapeEventHandler(KeyboardEvent*); 289 void defaultEscapeEventHandler(KeyboardEvent*);
290 void defaultArrowEventHandler(FocusType, KeyboardEvent*); 290 void defaultArrowEventHandler(FocusType, KeyboardEvent*);
291 291
292 void updateSelectionForMouseDrag(const HitTestResult&); 292 void updateSelectionForMouseDrag(const HitTestResult&);
293 293
294 void updateLastScrollbarUnderMouse(Scrollbar*, bool); 294 void updateLastScrollbarUnderMouse(Scrollbar*, bool);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 float m_syntheticPageScaleFactor; 394 float m_syntheticPageScaleFactor;
395 395
396 Timer<EventHandler> m_activeIntervalTimer; 396 Timer<EventHandler> m_activeIntervalTimer;
397 double m_lastShowPressTimestamp; 397 double m_lastShowPressTimestamp;
398 RefPtr<Element> m_lastDeferredTapElement; 398 RefPtr<Element> m_lastDeferredTapElement;
399 }; 399 };
400 400
401 } // namespace WebCore 401 } // namespace WebCore
402 402
403 #endif // EventHandler_h 403 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698