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

Side by Side Diff: Source/core/page/EventHandler.h

Issue 643143003: Reset all EventHandler data members in EventHandler::clear() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add additional comment regarding usage of clear() Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698