| OLD | NEW |
| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 GestureEventWithHitTestResults targetGestureEvent(const PlatformGestureEvent
&, bool readOnly = false); | 137 GestureEventWithHitTestResults targetGestureEvent(const PlatformGestureEvent
&, bool readOnly = false); |
| 138 | 138 |
| 139 // Handle the provided non-scroll gesture event. Should be called only on th
e inner frame. | 139 // Handle the provided non-scroll gesture event. Should be called only on th
e inner frame. |
| 140 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&); | 140 bool handleGestureEventInFrame(const GestureEventWithHitTestResults&); |
| 141 | 141 |
| 142 // Handle the provided scroll gesture event, propagating down to child frame
s as necessary. | 142 // Handle the provided scroll gesture event, propagating down to child frame
s as necessary. |
| 143 bool handleGestureScrollEvent(const PlatformGestureEvent&); | 143 bool handleGestureScrollEvent(const PlatformGestureEvent&); |
| 144 bool handleGestureScrollEnd(const PlatformGestureEvent&); | 144 bool handleGestureScrollEnd(const PlatformGestureEvent&); |
| 145 bool isScrollbarHandlingGestures() const; | 145 bool isScrollbarHandlingGestures() const; |
| 146 | 146 |
| 147 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe
tPoint, Node*& targetNode); | |
| 148 | |
| 149 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } | 147 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } |
| 150 | 148 |
| 151 static unsigned accessKeyModifiers(); | 149 static unsigned accessKeyModifiers(); |
| 152 bool handleAccessKey(const PlatformKeyboardEvent&); | 150 bool handleAccessKey(const PlatformKeyboardEvent&); |
| 153 bool keyEvent(const PlatformKeyboardEvent&); | 151 bool keyEvent(const PlatformKeyboardEvent&); |
| 154 void defaultKeyboardEventHandler(KeyboardEvent*); | 152 void defaultKeyboardEventHandler(KeyboardEvent*); |
| 155 | 153 |
| 156 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te
xtEventInputType = TextEventInputKeyboard); | 154 bool handleTextInputEvent(const String& text, Event* underlyingEvent = 0, Te
xtEventInputType = TextEventInputKeyboard); |
| 157 void defaultTextInputEventHandler(TextEvent*); | 155 void defaultTextInputEventHandler(TextEvent*); |
| 158 | 156 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 181 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&); | 179 bool handleMousePressEventSingleClick(const MouseEventWithHitTestResults&); |
| 182 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&); | 180 bool handleMousePressEventDoubleClick(const MouseEventWithHitTestResults&); |
| 183 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&); | 181 bool handleMousePressEventTripleClick(const MouseEventWithHitTestResults&); |
| 184 bool handleMouseFocus(const PlatformMouseEvent&); | 182 bool handleMouseFocus(const PlatformMouseEvent&); |
| 185 bool handleMouseDraggedEvent(const MouseEventWithHitTestResults&); | 183 bool handleMouseDraggedEvent(const MouseEventWithHitTestResults&); |
| 186 bool handleMouseReleaseEvent(const MouseEventWithHitTestResults&); | 184 bool handleMouseReleaseEvent(const MouseEventWithHitTestResults&); |
| 187 | 185 |
| 188 bool handlePasteGlobalSelection(const PlatformMouseEvent&); | 186 bool handlePasteGlobalSelection(const PlatformMouseEvent&); |
| 189 | 187 |
| 190 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T
ype); | 188 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::T
ype); |
| 191 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); | 189 |
| 192 bool handleGestureTap(const GestureEventWithHitTestResults&); | 190 bool handleGestureTap(const GestureEventWithHitTestResults&); |
| 193 bool handleGestureLongPress(const GestureEventWithHitTestResults&); | 191 bool handleGestureLongPress(const GestureEventWithHitTestResults&); |
| 194 bool handleGestureLongTap(const GestureEventWithHitTestResults&); | 192 bool handleGestureLongTap(const GestureEventWithHitTestResults&); |
| 195 bool handleGestureScrollUpdate(const PlatformGestureEvent&); | 193 bool handleGestureScrollUpdate(const PlatformGestureEvent&); |
| 196 bool handleGestureScrollBegin(const PlatformGestureEvent&); | 194 bool handleGestureScrollBegin(const PlatformGestureEvent&); |
| 197 void clearGestureScrollNodes(); | 195 void clearGestureScrollNodes(); |
| 198 | 196 |
| 199 bool shouldApplyTouchAdjustment(const PlatformGestureEvent&) const; | |
| 200 | |
| 201 OptionalCursor selectCursor(const HitTestResult&); | 197 OptionalCursor selectCursor(const HitTestResult&); |
| 202 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i
Beam); | 198 OptionalCursor selectAutoCursor(const HitTestResult&, Node*, const Cursor& i
Beam); |
| 203 | 199 |
| 204 void hoverTimerFired(Timer<EventHandler>*); | 200 void hoverTimerFired(Timer<EventHandler>*); |
| 205 void cursorUpdateTimerFired(Timer<EventHandler>*); | 201 void cursorUpdateTimerFired(Timer<EventHandler>*); |
| 206 void activeIntervalTimerFired(Timer<EventHandler>*); | 202 void activeIntervalTimerFired(Timer<EventHandler>*); |
| 207 | 203 |
| 208 bool mouseDownMayStartSelect() const { return m_mouseDownMayStartSelect; } | 204 bool mouseDownMayStartSelect() const { return m_mouseDownMayStartSelect; } |
| 209 | 205 |
| 210 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); | 206 void fakeMouseMoveEventTimerFired(Timer<EventHandler>*); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 bool m_didStartDrag; | 329 bool m_didStartDrag; |
| 334 | 330 |
| 335 Timer<EventHandler> m_activeIntervalTimer; | 331 Timer<EventHandler> m_activeIntervalTimer; |
| 336 double m_lastShowPressTimestamp; | 332 double m_lastShowPressTimestamp; |
| 337 RefPtr<Element> m_lastDeferredTapElement; | 333 RefPtr<Element> m_lastDeferredTapElement; |
| 338 }; | 334 }; |
| 339 | 335 |
| 340 } // namespace blink | 336 } // namespace blink |
| 341 | 337 |
| 342 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_ | 338 #endif // SKY_ENGINE_CORE_PAGE_EVENTHANDLER_H_ |
| OLD | NEW |