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

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

Issue 2389073002: Fix link's hover state if the link under scrollbar (Closed)
Patch Set: add test Created 4 years, 1 month 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // based on that box's writing mode. 250 // based on that box's writing mode.
251 // granularity - The units that the scroll delta parameter is in. 251 // granularity - The units that the scroll delta parameter is in.
252 // startNode - Optional. If provided, start chaining from the given node. 252 // startNode - Optional. If provided, start chaining from the given node.
253 // If not, use the current focus or last clicked node. 253 // If not, use the current focus or last clicked node.
254 bool logicalScroll(ScrollDirection, 254 bool logicalScroll(ScrollDirection,
255 ScrollGranularity, 255 ScrollGranularity,
256 Node* startNode = nullptr); 256 Node* startNode = nullptr);
257 257
258 bool isTouchPointerIdActiveOnFrame(int, LocalFrame*) const; 258 bool isTouchPointerIdActiveOnFrame(int, LocalFrame*) const;
259 259
260 Cursor::Type selectCursorTypeForTest(const HitTestResult&);
261
260 private: 262 private:
261 WebInputEventResult handleMouseMoveOrLeaveEvent( 263 WebInputEventResult handleMouseMoveOrLeaveEvent(
262 const PlatformMouseEvent&, 264 const PlatformMouseEvent&,
263 HitTestResult* hoveredNode = nullptr, 265 HitTestResult* hoveredNode = nullptr,
264 bool onlyUpdateScrollbars = false, 266 bool onlyUpdateScrollbars = false,
265 bool forceLeave = false); 267 bool forceLeave = false);
266 268
267 HitTestRequest::HitTestRequestType getHitTypeForGestureType( 269 HitTestRequest::HitTestRequestType getHitTypeForGestureType(
268 PlatformEvent::EventType); 270 PlatformEvent::EventType);
269 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); 271 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 385
384 // Set on GestureTapDown if the |pointerdown| event corresponding to the 386 // Set on GestureTapDown if the |pointerdown| event corresponding to the
385 // triggering |touchstart| event was canceled. This suppresses mouse event 387 // triggering |touchstart| event was canceled. This suppresses mouse event
386 // firing for the current gesture sequence (i.e. until next GestureTapDown). 388 // firing for the current gesture sequence (i.e. until next GestureTapDown).
387 bool m_suppressMouseEventsFromGestures; 389 bool m_suppressMouseEventsFromGestures;
388 }; 390 };
389 391
390 } // namespace blink 392 } // namespace blink
391 393
392 #endif // EventHandler_h 394 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698