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

Side by Side Diff: third_party/WebKit/Source/core/input/MouseEventManager.cpp

Issue 2514733003: Move EventHandler timers to per-frame task queues. (Closed)
Patch Set: Remove stray brace Created 4 years 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/input/MouseEventManager.h" 5 #include "core/input/MouseEventManager.h"
6 6
7 #include "core/clipboard/DataObject.h" 7 #include "core/clipboard/DataObject.h"
8 #include "core/clipboard/DataTransfer.h" 8 #include "core/clipboard/DataTransfer.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/ElementTraversal.h" 10 #include "core/dom/ElementTraversal.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #else 67 #else
68 const int kDragThresholdX = 4; 68 const int kDragThresholdX = 4;
69 const int kDragThresholdY = 4; 69 const int kDragThresholdY = 4;
70 const double kTextDragDelay = 0.0; 70 const double kTextDragDelay = 0.0;
71 #endif 71 #endif
72 72
73 } // namespace 73 } // namespace
74 74
75 enum class DragInitiator { Mouse, Touch }; 75 enum class DragInitiator { Mouse, Touch };
76 76
77 MouseEventManager::MouseEventManager(LocalFrame* frame, 77 MouseEventManager::MouseEventManager(LocalFrame& frame,
78 ScrollManager* scrollManager) 78 ScrollManager& scrollManager)
79 : m_frame(frame), 79 : m_frame(frame),
80 m_scrollManager(scrollManager), 80 m_scrollManager(scrollManager),
81 m_fakeMouseMoveEventTimer( 81 m_fakeMouseMoveEventTimer(
82 this, 82 this,
83 &MouseEventManager::fakeMouseMoveEventTimerFired) { 83 &MouseEventManager::fakeMouseMoveEventTimerFired) {
84 clear(); 84 clear();
85 } 85 }
86 86
87 void MouseEventManager::clear() { 87 void MouseEventManager::clear() {
88 m_nodeUnderMouse = nullptr; 88 m_nodeUnderMouse = nullptr;
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 989
990 void MouseEventManager::setClickCount(int clickCount) { 990 void MouseEventManager::setClickCount(int clickCount) {
991 m_clickCount = clickCount; 991 m_clickCount = clickCount;
992 } 992 }
993 993
994 bool MouseEventManager::mouseDownMayStartDrag() { 994 bool MouseEventManager::mouseDownMayStartDrag() {
995 return m_mouseDownMayStartDrag; 995 return m_mouseDownMayStartDrag;
996 } 996 }
997 997
998 } // namespace blink 998 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.h ('k') | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698