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

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

Issue 2894963002: Gather UMA for click retarget due to DOM changes (Closed)
Patch Set: Add boolean to the type of the histogram Created 3 years, 7 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
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 #ifndef MouseEventManager_h 5 #ifndef MouseEventManager_h
6 #define MouseEventManager_h 6 #define MouseEventManager_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/SynchronousMutationObserver.h" 9 #include "core/dom/SynchronousMutationObserver.h"
10 #include "core/input/BoundaryEventDispatcher.h" 10 #include "core/input/BoundaryEventDispatcher.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 unsigned mouse_down_may_start_autoscroll_ : 1; 220 unsigned mouse_down_may_start_autoscroll_ : 1;
221 unsigned svg_pan_ : 1; 221 unsigned svg_pan_ : 1;
222 unsigned captures_dragging_ : 1; 222 unsigned captures_dragging_ : 1;
223 unsigned mouse_down_may_start_drag_ : 1; 223 unsigned mouse_down_may_start_drag_ : 1;
224 224
225 Member<Node> mouse_press_node_; 225 Member<Node> mouse_press_node_;
226 226
227 int click_count_; 227 int click_count_;
228 Member<Element> click_element_; 228 Member<Element> click_element_;
229 // This element should be mostly the same as click_element_. Only when
230 // click_element_ is set to null due to DOM manipulation mouse_down_element_
231 // remains unchanged.
232 Member<Element> mouse_down_element_;
229 233
230 IntPoint mouse_down_pos_; // In our view's coords. 234 IntPoint mouse_down_pos_; // In our view's coords.
231 TimeTicks mouse_down_timestamp_; 235 TimeTicks mouse_down_timestamp_;
232 WebMouseEvent mouse_down_; 236 WebMouseEvent mouse_down_;
233 237
234 LayoutPoint drag_start_pos_; 238 LayoutPoint drag_start_pos_;
235 239
236 TaskRunnerTimer<MouseEventManager> fake_mouse_move_event_timer_; 240 TaskRunnerTimer<MouseEventManager> fake_mouse_move_event_timer_;
237 }; 241 };
238 242
239 } // namespace blink 243 } // namespace blink
240 244
241 #endif // MouseEventManager_h 245 #endif // MouseEventManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698