| 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 26 matching lines...) Expand all Loading... |
| 37 #include "core/page/EventWithHitTestResults.h" | 37 #include "core/page/EventWithHitTestResults.h" |
| 38 #include "core/style/ComputedStyleConstants.h" | 38 #include "core/style/ComputedStyleConstants.h" |
| 39 #include "platform/Cursor.h" | 39 #include "platform/Cursor.h" |
| 40 #include "platform/PlatformMouseEvent.h" | 40 #include "platform/PlatformMouseEvent.h" |
| 41 #include "platform/PlatformTouchPoint.h" | 41 #include "platform/PlatformTouchPoint.h" |
| 42 #include "platform/Timer.h" | 42 #include "platform/Timer.h" |
| 43 #include "platform/UserGestureIndicator.h" | 43 #include "platform/UserGestureIndicator.h" |
| 44 #include "platform/geometry/LayoutPoint.h" | 44 #include "platform/geometry/LayoutPoint.h" |
| 45 #include "platform/heap/Handle.h" | 45 #include "platform/heap/Handle.h" |
| 46 #include "platform/scroll/ScrollTypes.h" | 46 #include "platform/scroll/ScrollTypes.h" |
| 47 #include "public/platform/WebInputEvent.h" |
| 47 #include "public/platform/WebInputEventResult.h" | 48 #include "public/platform/WebInputEventResult.h" |
| 48 #include "wtf/Forward.h" | 49 #include "wtf/Forward.h" |
| 49 #include "wtf/HashMap.h" | 50 #include "wtf/HashMap.h" |
| 50 #include "wtf/HashTraits.h" | 51 #include "wtf/HashTraits.h" |
| 51 #include "wtf/RefPtr.h" | 52 #include "wtf/RefPtr.h" |
| 52 | 53 |
| 53 namespace blink { | 54 namespace blink { |
| 54 | 55 |
| 55 class DataTransfer; | 56 class DataTransfer; |
| 56 class PaintLayer; | 57 class PaintLayer; |
| 57 class Document; | 58 class Document; |
| 58 class DragState; | 59 class DragState; |
| 59 class Element; | 60 class Element; |
| 60 class Event; | 61 class Event; |
| 61 class EventTarget; | 62 class EventTarget; |
| 62 template <typename EventType> | 63 template <typename EventType> |
| 63 class EventWithHitTestResults; | 64 class EventWithHitTestResults; |
| 64 class FloatPoint; | 65 class FloatPoint; |
| 65 class FloatQuad; | 66 class FloatQuad; |
| 66 class FrameHost; | 67 class FrameHost; |
| 67 class HTMLFrameSetElement; | 68 class HTMLFrameSetElement; |
| 68 class HitTestRequest; | 69 class HitTestRequest; |
| 69 class HitTestResult; | 70 class HitTestResult; |
| 70 class LayoutObject; | 71 class LayoutObject; |
| 71 class LocalFrame; | 72 class LocalFrame; |
| 72 class Node; | 73 class Node; |
| 73 class OptionalCursor; | 74 class OptionalCursor; |
| 74 class PlatformGestureEvent; | 75 class PlatformGestureEvent; |
| 75 class PlatformKeyboardEvent; | |
| 76 class PlatformTouchEvent; | 76 class PlatformTouchEvent; |
| 77 class PlatformWheelEvent; | 77 class PlatformWheelEvent; |
| 78 class ScrollableArea; | 78 class ScrollableArea; |
| 79 class Scrollbar; | 79 class Scrollbar; |
| 80 class SelectionController; | 80 class SelectionController; |
| 81 class TextEvent; | 81 class TextEvent; |
| 82 class WheelEvent; | 82 class WheelEvent; |
| 83 class Widget; | 83 class Widget; |
| 84 | 84 |
| 85 enum class DragInitiator; | 85 enum class DragInitiator; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 bool hasPointerCapture(int, const EventTarget*) const; | 189 bool hasPointerCapture(int, const EventTarget*) const; |
| 190 bool hasProcessedPointerCapture(int, const EventTarget*) const; | 190 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
| 191 | 191 |
| 192 void elementRemoved(EventTarget*); | 192 void elementRemoved(EventTarget*); |
| 193 | 193 |
| 194 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } | 194 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } |
| 195 | 195 |
| 196 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web
InputEventResult resultB); | 196 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web
InputEventResult resultB); |
| 197 static WebInputEventResult toWebInputEventResult(DispatchEventResult); | 197 static WebInputEventResult toWebInputEventResult(DispatchEventResult); |
| 198 | 198 |
| 199 bool handleAccessKey(const PlatformKeyboardEvent&); | 199 bool handleAccessKey(const WebKeyboardEvent&); |
| 200 WebInputEventResult keyEvent(const PlatformKeyboardEvent&); | 200 WebInputEventResult keyEvent(const WebKeyboardEvent&); |
| 201 void defaultKeyboardEventHandler(KeyboardEvent*); | 201 void defaultKeyboardEventHandler(KeyboardEvent*); |
| 202 | 202 |
| 203 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); | 203 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); |
| 204 void defaultTextInputEventHandler(TextEvent*); | 204 void defaultTextInputEventHandler(TextEvent*); |
| 205 | 205 |
| 206 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); | 206 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); |
| 207 | 207 |
| 208 void focusDocumentView(); | 208 void focusDocumentView(); |
| 209 | 209 |
| 210 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 210 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 414 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
| 415 bool m_suppressMouseEventsFromGestures; | 415 bool m_suppressMouseEventsFromGestures; |
| 416 | 416 |
| 417 // TODO(nzolghadr): Temporary until further refactoring | 417 // TODO(nzolghadr): Temporary until further refactoring |
| 418 friend GestureManager; | 418 friend GestureManager; |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 } // namespace blink | 421 } // namespace blink |
| 422 | 422 |
| 423 #endif // EventHandler_h | 423 #endif // EventHandler_h |
| OLD | NEW |