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

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

Issue 12817006: Merge 144519 "EventHandler::handleGestureScrollUpdate() should i..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 bool handlePasteGlobalSelection(const PlatformMouseEvent&); 176 bool handlePasteGlobalSelection(const PlatformMouseEvent&);
177 177
178 #if ENABLE(GESTURE_EVENTS) 178 #if ENABLE(GESTURE_EVENTS)
179 bool handleGestureEvent(const PlatformGestureEvent&); 179 bool handleGestureEvent(const PlatformGestureEvent&);
180 bool handleGestureTap(const PlatformGestureEvent&); 180 bool handleGestureTap(const PlatformGestureEvent&);
181 bool handleGestureLongPress(const PlatformGestureEvent&); 181 bool handleGestureLongPress(const PlatformGestureEvent&);
182 bool handleGestureLongTap(const PlatformGestureEvent&); 182 bool handleGestureLongTap(const PlatformGestureEvent&);
183 bool handleGestureTwoFingerTap(const PlatformGestureEvent&); 183 bool handleGestureTwoFingerTap(const PlatformGestureEvent&);
184 bool handleGestureScrollUpdate(const PlatformGestureEvent&); 184 bool handleGestureScrollUpdate(const PlatformGestureEvent&);
185 bool handleGestureScrollBegin(const PlatformGestureEvent&); 185 bool handleGestureScrollBegin(const PlatformGestureEvent&);
186 void clearGestureScrollNodes();
186 bool isScrollbarHandlingGestures() const; 187 bool isScrollbarHandlingGestures() const;
187 #endif 188 #endif
188 189
189 #if ENABLE(TOUCH_ADJUSTMENT) 190 #if ENABLE(TOUCH_ADJUSTMENT)
190 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; 191 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const;
191 192
192 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi ze& touchRadius, IntPoint& targetPoint, Node*& targetNode); 193 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi ze& touchRadius, IntPoint& targetPoint, Node*& targetNode);
193 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int Size& touchRadius, IntPoint& targetPoint, Node*& targetNode); 194 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int Size& touchRadius, IntPoint& targetPoint, Node*& targetNode);
194 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode); 195 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
195 196
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 374
374 #if ENABLE(FULLSCREEN_API) 375 #if ENABLE(FULLSCREEN_API)
375 bool isKeyEventAllowedInFullScreen(const PlatformKeyboardEvent&) const; 376 bool isKeyEventAllowedInFullScreen(const PlatformKeyboardEvent&) const;
376 #endif 377 #endif
377 378
378 #if ENABLE(GESTURE_EVENTS) 379 #if ENABLE(GESTURE_EVENTS)
379 bool handleGestureTapDown(); 380 bool handleGestureTapDown();
380 bool handleGestureForTextSelectionOrContextMenu(const PlatformGestureEvent&) ; 381 bool handleGestureForTextSelectionOrContextMenu(const PlatformGestureEvent&) ;
381 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*); 382 bool passGestureEventToWidget(const PlatformGestureEvent&, Widget*);
382 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO bject*); 383 bool passGestureEventToWidgetIfPossible(const PlatformGestureEvent&, RenderO bject*);
384 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&);
383 #endif 385 #endif
384 386
385 void setLastKnownMousePosition(const PlatformMouseEvent&); 387 void setLastKnownMousePosition(const PlatformMouseEvent&);
386 388
387 Frame* m_frame; 389 Frame* m_frame;
388 390
389 bool m_mousePressed; 391 bool m_mousePressed;
390 bool m_capturesDragging; 392 bool m_capturesDragging;
391 RefPtr<Node> m_mousePressNode; 393 RefPtr<Node> m_mousePressNode;
392 394
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 typedef HashMap<int, RefPtr<EventTarget> > TouchTargetMap; 466 typedef HashMap<int, RefPtr<EventTarget> > TouchTargetMap;
465 TouchTargetMap m_originatingTouchPointTargets; 467 TouchTargetMap m_originatingTouchPointTargets;
466 RefPtr<Document> m_originatingTouchPointDocument; 468 RefPtr<Document> m_originatingTouchPointDocument;
467 unsigned m_originatingTouchPointTargetKey; 469 unsigned m_originatingTouchPointTargetKey;
468 bool m_touchPressed; 470 bool m_touchPressed;
469 #endif 471 #endif
470 472
471 #if ENABLE(GESTURE_EVENTS) 473 #if ENABLE(GESTURE_EVENTS)
472 RefPtr<Node> m_scrollGestureHandlingNode; 474 RefPtr<Node> m_scrollGestureHandlingNode;
473 bool m_lastHitTestResultOverWidget; 475 bool m_lastHitTestResultOverWidget;
476 RefPtr<Node> m_previousGestureScrolledNode;
474 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture; 477 RefPtr<Scrollbar> m_scrollbarHandlingScrollGesture;
475 #endif 478 #endif
476 479
477 double m_maxMouseMovedDuration; 480 double m_maxMouseMovedDuration;
478 PlatformEvent::Type m_baseEventType; 481 PlatformEvent::Type m_baseEventType;
479 bool m_didStartDrag; 482 bool m_didStartDrag;
480 bool m_didLongPressInvokeContextMenu; 483 bool m_didLongPressInvokeContextMenu;
481 }; 484 };
482 485
483 } // namespace WebCore 486 } // namespace WebCore
484 487
485 #endif // EventHandler_h 488 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698