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

Side by Side Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2319623004: Add UMA for selection drag autoscroll. (Closed)
Patch Set: Add uma for selection drag autoscroll Created 4 years, 3 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 stopAutoscroll(); 173 stopAutoscroll();
174 return; 174 return;
175 } 175 }
176 176
177 m_dragAndDropAutoscrollReferencePosition = eventPosition + offset; 177 m_dragAndDropAutoscrollReferencePosition = eventPosition + offset;
178 178
179 if (m_autoscrollType == NoAutoscroll) { 179 if (m_autoscrollType == NoAutoscroll) {
180 m_autoscrollType = AutoscrollForDragAndDrop; 180 m_autoscrollType = AutoscrollForDragAndDrop;
181 m_autoscrollLayoutObject = scrollable; 181 m_autoscrollLayoutObject = scrollable;
182 m_dragAndDropAutoscrollStartTime = eventTime; 182 m_dragAndDropAutoscrollStartTime = eventTime;
183 UseCounter::count(m_page->mainFrame(), UseCounter::DragAndDropScrollStar t);
183 startAutoscroll(); 184 startAutoscroll();
184 } else if (m_autoscrollLayoutObject != scrollable) { 185 } else if (m_autoscrollLayoutObject != scrollable) {
185 m_dragAndDropAutoscrollStartTime = eventTime; 186 m_dragAndDropAutoscrollStartTime = eventTime;
186 m_autoscrollLayoutObject = scrollable; 187 m_autoscrollLayoutObject = scrollable;
187 } 188 }
188 } 189 }
189 190
190 #if OS(WIN) 191 #if OS(WIN)
191 void AutoscrollController::handleMouseReleaseForPanScrolling(LocalFrame* frame, const PlatformMouseEvent& mouseEvent) 192 void AutoscrollController::handleMouseReleaseForPanScrolling(LocalFrame* frame, const PlatformMouseEvent& mouseEvent)
192 { 193 {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 view->setCursor(eastPanningCursor()); 312 view->setCursor(eastPanningCursor());
312 } else if (west) { 313 } else if (west) {
313 view->setCursor(westPanningCursor()); 314 view->setCursor(westPanningCursor());
314 } else { 315 } else {
315 view->setCursor(middlePanningCursor()); 316 view->setCursor(middlePanningCursor());
316 } 317 }
317 } 318 }
318 #endif 319 #endif
319 320
320 } // namespace blink 321 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698