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

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

Issue 1635863006: Pointerevent capture APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode); 170 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe tPoint, Node*& targetNode);
171 bool bestContextMenuNodeForHitTestResult(const HitTestResult&, IntPoint& tar getPoint, Node*& targetNode); 171 bool bestContextMenuNodeForHitTestResult(const HitTestResult&, IntPoint& tar getPoint, Node*& targetNode);
172 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested? 172 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested?
173 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode); 173 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
174 174
175 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov errideTargetNode = nullptr); 175 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov errideTargetNode = nullptr);
176 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen t = nullptr); 176 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen t = nullptr);
177 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit TestResults&); 177 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit TestResults&);
178 178
179 // Returns whether pointerId is active or not
180 bool isPointerEventActive(int);
181
182 void setPointerCapture(int, EventTarget*);
183 void releasePointerCapture(int, EventTarget*);
184 void elementRemoved(EventTarget*);
185
179 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } 186 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; }
180 187
181 static PlatformEvent::Modifiers accessKeyModifiers(); 188 static PlatformEvent::Modifiers accessKeyModifiers();
182 bool handleAccessKey(const PlatformKeyboardEvent&); 189 bool handleAccessKey(const PlatformKeyboardEvent&);
183 WebInputEventResult keyEvent(const PlatformKeyboardEvent&); 190 WebInputEventResult keyEvent(const PlatformKeyboardEvent&);
184 void defaultKeyboardEventHandler(KeyboardEvent*); 191 void defaultKeyboardEventHandler(KeyboardEvent*);
185 192
186 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp tr, TextEventInputType = TextEventInputKeyboard); 193 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp tr, TextEventInputType = TextEventInputKeyboard);
187 void defaultTextInputEventHandler(TextEvent*); 194 void defaultTextInputEventHandler(TextEvent*);
188 195
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // scroll which shouldn't propagate can't cause any element to 476 // scroll which shouldn't propagate can't cause any element to
470 // scroll other than the |m_previousGestureScrolledNode|. 477 // scroll other than the |m_previousGestureScrolledNode|.
471 bool m_deltaConsumedForScrollSequence; 478 bool m_deltaConsumedForScrollSequence;
472 }; 479 };
473 480
474 } // namespace blink 481 } // namespace blink
475 482
476 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 483 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
477 484
478 #endif // EventHandler_h 485 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698