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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 void setLastKnownMousePosition(const PlatformMouseEvent&); | 294 void setLastKnownMousePosition(const PlatformMouseEvent&); |
295 | 295 |
296 Frame* const m_frame; | 296 Frame* const m_frame; |
297 | 297 |
298 bool m_mousePressed; | 298 bool m_mousePressed; |
299 bool m_capturesDragging; | 299 bool m_capturesDragging; |
300 RefPtr<Node> m_mousePressNode; | 300 RefPtr<Node> m_mousePressNode; |
301 | 301 |
302 bool m_mouseDownMayStartSelect; | 302 bool m_mouseDownMayStartSelect; |
303 bool m_mouseDownMayStartDrag; | 303 bool m_mouseDownMayStartDrag; |
304 bool m_dragMayStartSelectionInstead; | |
305 bool m_mouseDownWasSingleClickInSelection; | 304 bool m_mouseDownWasSingleClickInSelection; |
306 enum SelectionInitiationState { HaveNotStartedSelection, PlacedCaret, Extend
edSelection }; | 305 enum SelectionInitiationState { HaveNotStartedSelection, PlacedCaret, Extend
edSelection }; |
307 SelectionInitiationState m_selectionInitiationState; | 306 SelectionInitiationState m_selectionInitiationState; |
308 | 307 |
309 LayoutPoint m_dragStartPos; | 308 LayoutPoint m_dragStartPos; |
310 | 309 |
311 bool m_panScrollButtonPressed; | 310 bool m_panScrollButtonPressed; |
312 | 311 |
313 Timer<EventHandler> m_hoverTimer; | 312 Timer<EventHandler> m_hoverTimer; |
314 Timer<EventHandler> m_cursorUpdateTimer; | 313 Timer<EventHandler> m_cursorUpdateTimer; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 bool m_longTapShouldInvokeContextMenu; | 373 bool m_longTapShouldInvokeContextMenu; |
375 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | 374 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; |
376 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | 375 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; |
377 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | 376 OwnPtr<IntPoint> m_lastSyntheticPanLocation; |
378 float m_syntheticPageScaleFactor; | 377 float m_syntheticPageScaleFactor; |
379 }; | 378 }; |
380 | 379 |
381 } // namespace WebCore | 380 } // namespace WebCore |
382 | 381 |
383 #endif // EventHandler_h | 382 #endif // EventHandler_h |
OLD | NEW |