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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 315 |
316 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 316 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
317 | 317 |
318 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, RenderObjec
t*); | 318 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, RenderObjec
t*); |
319 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); | 319 bool sendScrollEventToView(const PlatformGestureEvent&, const FloatSize&); |
320 | 320 |
321 AutoscrollController* autoscrollController() const; | 321 AutoscrollController* autoscrollController() const; |
322 bool panScrollInProgress() const; | 322 bool panScrollInProgress() const; |
323 void setLastKnownMousePosition(const PlatformMouseEvent&); | 323 void setLastKnownMousePosition(const PlatformMouseEvent&); |
324 | 324 |
| 325 // NOTE: If adding a new field to this class please ensure that it is |
| 326 // cleared in |EventHandler::clear()|. |
| 327 |
325 LocalFrame* const m_frame; | 328 LocalFrame* const m_frame; |
326 | 329 |
327 bool m_mousePressed; | 330 bool m_mousePressed; |
328 bool m_capturesDragging; | 331 bool m_capturesDragging; |
329 RefPtrWillBeMember<Node> m_mousePressNode; | 332 RefPtrWillBeMember<Node> m_mousePressNode; |
330 | 333 |
331 bool m_mouseDownMayStartSelect; | 334 bool m_mouseDownMayStartSelect; |
332 bool m_mouseDownMayStartDrag; | 335 bool m_mouseDownMayStartDrag; |
333 bool m_mouseDownWasSingleClickInSelection; | 336 bool m_mouseDownWasSingleClickInSelection; |
334 enum SelectionInitiationState { HaveNotStartedSelection, PlacedCaret, Extend
edSelection }; | 337 enum SelectionInitiationState { HaveNotStartedSelection, PlacedCaret, Extend
edSelection }; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 bool m_longTapShouldInvokeContextMenu; | 403 bool m_longTapShouldInvokeContextMenu; |
401 | 404 |
402 Timer<EventHandler> m_activeIntervalTimer; | 405 Timer<EventHandler> m_activeIntervalTimer; |
403 double m_lastShowPressTimestamp; | 406 double m_lastShowPressTimestamp; |
404 RefPtrWillBeMember<Element> m_lastDeferredTapElement; | 407 RefPtrWillBeMember<Element> m_lastDeferredTapElement; |
405 }; | 408 }; |
406 | 409 |
407 } // namespace blink | 410 } // namespace blink |
408 | 411 |
409 #endif // EventHandler_h | 412 #endif // EventHandler_h |
OLD | NEW |