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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 1910173003: Remove unnecessary use of HeapHashMap for EventHandler::TouchRegionMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 | third_party/WebKit/Source/core/input/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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 IntPoint m_lastKnownMousePosition; 459 IntPoint m_lastKnownMousePosition;
460 IntPoint m_lastKnownMouseGlobalPosition; 460 IntPoint m_lastKnownMouseGlobalPosition;
461 IntPoint m_mouseDownPos; // In our view's coords. 461 IntPoint m_mouseDownPos; // In our view's coords.
462 double m_mouseDownTimestamp; 462 double m_mouseDownTimestamp;
463 PlatformMouseEvent m_mouseDown; 463 PlatformMouseEvent m_mouseDown;
464 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; 464 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken;
465 465
466 // The target of each active touch point indexed by the touch ID. 466 // The target of each active touch point indexed by the touch ID.
467 using TouchTargetMap = HeapHashMap<unsigned, Member<EventTarget>, DefaultHas h<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; 467 using TouchTargetMap = HeapHashMap<unsigned, Member<EventTarget>, DefaultHas h<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
468 TouchTargetMap m_targetForTouchID; 468 TouchTargetMap m_targetForTouchID;
469 using TouchRegionMap = HeapHashMap<unsigned, String, DefaultHash<unsigned>:: Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; 469 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash , WTF::UnsignedWithZeroKeyHashTraits<unsigned>>;
470 TouchRegionMap m_regionForTouchID; 470 TouchRegionMap m_regionForTouchID;
471 471
472 // If set, the document of the active touch sequence. Unset if no touch sequ ence active. 472 // If set, the document of the active touch sequence. Unset if no touch sequ ence active.
473 Member<Document> m_touchSequenceDocument; 473 Member<Document> m_touchSequenceDocument;
474 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; 474 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken;
475 475
476 bool m_touchPressed; 476 bool m_touchPressed;
477 477
478 PointerEventManager m_pointerEventManager; 478 PointerEventManager m_pointerEventManager;
479 479
(...skipping 22 matching lines...) Expand all
502 // scroll which shouldn't propagate can't cause any element to 502 // scroll which shouldn't propagate can't cause any element to
503 // scroll other than the |m_previousGestureScrolledNode|. 503 // scroll other than the |m_previousGestureScrolledNode|.
504 bool m_deltaConsumedForScrollSequence; 504 bool m_deltaConsumedForScrollSequence;
505 }; 505 };
506 506
507 } // namespace blink 507 } // namespace blink
508 508
509 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 509 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
510 510
511 #endif // EventHandler_h 511 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698