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

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

Issue 2536723007: Removed android scrolling fake mouse moves and device_supports_mouse (Closed)
Patch Set: Made checks mirror what previous logic Created 4 years 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void dispatchFakeMouseMoveEventSoon(); 102 void dispatchFakeMouseMoveEventSoon();
103 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); 103 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&);
104 104
105 HitTestResult hitTestResultAtPoint( 105 HitTestResult hitTestResultAtPoint(
106 const LayoutPoint&, 106 const LayoutPoint&,
107 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly | 107 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
108 HitTestRequest::Active, 108 HitTestRequest::Active,
109 const LayoutSize& padding = LayoutSize()); 109 const LayoutSize& padding = LayoutSize());
110 110
111 bool mousePressed() const { return m_mouseEventManager->mousePressed(); } 111 bool mousePressed() const { return m_mouseEventManager->mousePressed(); }
112 bool isMousePositionUnknown() const {
113 return m_mouseEventManager->isMousePositionUnknown();
114 }
112 115
113 void setCapturingMouseEventsNode( 116 void setCapturingMouseEventsNode(
114 Node*); // A caller is responsible for resetting capturing node to 0. 117 Node*); // A caller is responsible for resetting capturing node to 0.
115 118
116 WebInputEventResult updateDragAndDrop(const PlatformMouseEvent&, 119 WebInputEventResult updateDragAndDrop(const PlatformMouseEvent&,
117 DataTransfer*); 120 DataTransfer*);
118 void cancelDragAndDrop(const PlatformMouseEvent&, DataTransfer*); 121 void cancelDragAndDrop(const PlatformMouseEvent&, DataTransfer*);
119 WebInputEventResult performDragAndDrop(const PlatformMouseEvent&, 122 WebInputEventResult performDragAndDrop(const PlatformMouseEvent&,
120 DataTransfer*); 123 DataTransfer*);
121 void updateDragStateAfterEditDragIfNeeded(Element* rootEditableElement); 124 void updateDragStateAfterEditDragIfNeeded(Element* rootEditableElement);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 390
388 // Set on GestureTapDown if the |pointerdown| event corresponding to the 391 // Set on GestureTapDown if the |pointerdown| event corresponding to the
389 // triggering |touchstart| event was canceled. This suppresses mouse event 392 // triggering |touchstart| event was canceled. This suppresses mouse event
390 // firing for the current gesture sequence (i.e. until next GestureTapDown). 393 // firing for the current gesture sequence (i.e. until next GestureTapDown).
391 bool m_suppressMouseEventsFromGestures; 394 bool m_suppressMouseEventsFromGestures;
392 }; 395 };
393 396
394 } // namespace blink 397 } // namespace blink
395 398
396 #endif // EventHandler_h 399 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698