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

Issue 800183005: Adding UMA stats for dragdrop events for both touch and mouse. (Closed)

Created:
5 years, 12 months ago by caelyn
Modified:
5 years, 11 months ago
CC:
chromium-reviews, kalyank, sadrul, asvitkine+watch_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding UMA stats for ash.dragdrop events for both touch and mouse. BUG=318948 Committed: https://crrev.com/5a2d550f7b3b9a7ff41e0bc1e7fae0607c7d8488 Cr-Commit-Position: refs/heads/master@{#312868}

Patch Set 1 #

Patch Set 2 : Adding UMA stats to track usage of DragAndDrop, on Chromeos, X11 and Windows. #

Total comments: 16

Patch Set 3 : Responding to comments, deliberate error in windows client to make sure that it is caught by the tr… #

Patch Set 4 : Rebased, still with deliberate error in windows client. #

Patch Set 5 : All errors removed, Adding UMA stats to track usage of DragAndDrop on ChromeOS, X11, and Windows. A… #

Total comments: 8

Patch Set 6 : Changed location of drag/cancel event stat collection in X11 client #

Patch Set 7 : Added move_loop_->EndMoveLoop back to DragCancel #

Patch Set 8 : Fixing issue that would have resulted in overcounting cancel events. #

Total comments: 17

Patch Set 9 : Adding DragDrop.ExternalOriginDrop, leaving in logging for teating on windows. #

Patch Set 10 : Fixes needed for windows version - still has logging statements #

Patch Set 11 : Windows now correctly identifying external origin events. #

Total comments: 2

Patch Set 12 : Moving location where ash DragDrop drop/cancel events are logged. #

Total comments: 2

Patch Set 13 : Adding an explicit value to DragEventSource enum #

Total comments: 7

Patch Set 14 : Moving location where x11 DragDrop drop/cancel events are logged. Changed DragDrop.X to Event.DragD… #

Total comments: 2

Patch Set 15 : Adressing nit re: unnecessary else statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -6 lines) Patch
M ash/drag_drop/drag_drop_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +34 lines, -0 lines 0 comments Download
M ui/base/dragdrop/drag_drop_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +17 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +15 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_drop_target_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 38 (7 generated)
caelyn
Draft of the change to track drag and drop usage.
5 years, 12 months ago (2014-12-22 22:21:43 UTC) #2
caelyn
5 years, 11 months ago (2015-01-08 18:46:21 UTC) #3
mfomitchev
https://codereview.chromium.org/800183005/diff/20001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/800183005/diff/20001/ash/drag_drop/drag_drop_controller.cc#newcode164 ash/drag_drop/drag_drop_controller.cc:164: UMA_HISTOGRAM_COUNTS("DragDrop.Touch.Start", 1); I think a single shared UMA_HISTOGRAM_ENUMERATION histogram ...
5 years, 11 months ago (2015-01-08 23:30:59 UTC) #4
caelyn
Responded to all comments. https://codereview.chromium.org/800183005/diff/20001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/800183005/diff/20001/ash/drag_drop/drag_drop_controller.cc#newcode164 ash/drag_drop/drag_drop_controller.cc:164: UMA_HISTOGRAM_COUNTS("DragDrop.Touch.Start", 1); On 2015/01/08 23:30:59, ...
5 years, 11 months ago (2015-01-12 22:43:10 UTC) #7
mfomitchev
https://codereview.chromium.org/800183005/diff/20001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/20001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode792 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:792: if (negotiated_operation_ != ui::DragDropTypes::DRAG_NONE) { DragCancel() is at least ...
5 years, 11 months ago (2015-01-13 17:01:25 UTC) #8
caelyn
Comments addressed. https://codereview.chromium.org/800183005/diff/20001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/20001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode792 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:792: if (negotiated_operation_ != ui::DragDropTypes::DRAG_NONE) { On 2015/01/13 ...
5 years, 11 months ago (2015-01-13 23:48:58 UTC) #9
caelyn
Belatedly realized a serious issue with patch 7. Could not continue to live with it.
5 years, 11 months ago (2015-01-14 02:03:13 UTC) #10
mfomitchev
https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc#newcode336 ash/drag_drop/drag_drop_controller.cc:336: UMA_HISTOGRAM_ENUMERATION("DragDrop.Cancel", current_drag_event_source_, There is at least one case where ...
5 years, 11 months ago (2015-01-14 17:03:41 UTC) #11
pkotwicz
I'll post some code review comments after lunch
5 years, 11 months ago (2015-01-14 17:05:02 UTC) #12
pkotwicz
Looks good, a few review comments https://codereview.chromium.org/800183005/diff/130001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/130001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode615 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:615: drag_operation = delegate->OnPerformDrop(event); ...
5 years, 11 months ago (2015-01-14 18:31:30 UTC) #14
caelyn
Some questions about drag and drop on windows and a response to why I support ...
5 years, 11 months ago (2015-01-14 20:00:26 UTC) #15
pkotwicz
Please add a bug number to the change list description. This is a convention that ...
5 years, 11 months ago (2015-01-14 20:39:55 UTC) #16
caelyn
Patch has now been tested on Windows. Drop events which originated externally from the given ...
5 years, 11 months ago (2015-01-21 16:29:53 UTC) #17
mfomitchev
https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc#newcode336 ash/drag_drop/drag_drop_controller.cc:336: UMA_HISTOGRAM_ENUMERATION("DragDrop.Cancel", current_drag_event_source_, Doesn't look like you've moved it. However ...
5 years, 11 months ago (2015-01-21 18:54:36 UTC) #18
caelyn
Moved location of logging of drop/cancel events for ash. https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc File ash/drag_drop/drag_drop_controller.cc (right): https://codereview.chromium.org/800183005/diff/130001/ash/drag_drop/drag_drop_controller.cc#newcode336 ash/drag_drop/drag_drop_controller.cc:336: ...
5 years, 11 months ago (2015-01-21 21:06:41 UTC) #19
mfomitchev
LGTM
5 years, 11 months ago (2015-01-21 21:33:54 UTC) #20
caelyn
sky@chromium.org: Please review my changes adding UMA stats to track drag and drop usage in ...
5 years, 11 months ago (2015-01-21 21:38:54 UTC) #22
sky
https://codereview.chromium.org/800183005/diff/210001/ui/base/dragdrop/drag_drop_types.h File ui/base/dragdrop/drag_drop_types.h (right): https://codereview.chromium.org/800183005/diff/210001/ui/base/dragdrop/drag_drop_types.h#newcode26 ui/base/dragdrop/drag_drop_types.h:26: DRAG_EVENT_SOURCE_COUNT It's bad to assume enumerations start with a ...
5 years, 11 months ago (2015-01-21 22:53:15 UTC) #23
caelyn
Added an explicit value to the DragEventSource enum. https://codereview.chromium.org/800183005/diff/210001/ui/base/dragdrop/drag_drop_types.h File ui/base/dragdrop/drag_drop_types.h (right): https://codereview.chromium.org/800183005/diff/210001/ui/base/dragdrop/drag_drop_types.h#newcode26 ui/base/dragdrop/drag_drop_types.h:26: DRAG_EVENT_SOURCE_COUNT ...
5 years, 11 months ago (2015-01-22 15:20:43 UTC) #24
sky
LGTM
5 years, 11 months ago (2015-01-22 18:41:36 UTC) #25
caelyn
asvitkine@chromium.org: Please review changes in histograms.xml
5 years, 11 months ago (2015-01-22 18:44:13 UTC) #27
pkotwicz
desktop_drag_drop_client_aurax11.cc LGTM modulo one important change request https://codereview.chromium.org/800183005/diff/230001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/230001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode709 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:709: if (negotiated_operation_ ...
5 years, 11 months ago (2015-01-22 19:00:30 UTC) #28
Alexei Svitkine (slow)
https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml#newcode6092 tools/metrics/histograms/histograms.xml:6092: +<histogram name="DragDrop.Cancel" enum="DragDropEventSource"> This seems to be adding a ...
5 years, 11 months ago (2015-01-22 20:02:21 UTC) #29
caelyn
Comments addressed. https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml#newcode6092 tools/metrics/histograms/histograms.xml:6092: +<histogram name="DragDrop.Cancel" enum="DragDropEventSource"> On 2015/01/22 20:02:20, Alexei ...
5 years, 11 months ago (2015-01-22 21:13:08 UTC) #30
Alexei Svitkine (slow)
https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/800183005/diff/230001/tools/metrics/histograms/histograms.xml#newcode6092 tools/metrics/histograms/histograms.xml:6092: +<histogram name="DragDrop.Cancel" enum="DragDropEventSource"> On 2015/01/22 21:13:08, caelyn wrote: > ...
5 years, 11 months ago (2015-01-22 21:32:55 UTC) #31
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-22 21:44:22 UTC) #32
pkotwicz
https://codereview.chromium.org/800183005/diff/250001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/250001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode726 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:726: } else { Nit: No need for the "else" ...
5 years, 11 months ago (2015-01-22 21:48:34 UTC) #33
caelyn
Final nit addressed. https://codereview.chromium.org/800183005/diff/250001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc File ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc (right): https://codereview.chromium.org/800183005/diff/250001/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc#newcode726 ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc:726: } else { On 2015/01/22 21:48:34, ...
5 years, 11 months ago (2015-01-22 23:46:31 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/800183005/270001
5 years, 11 months ago (2015-01-23 16:28:27 UTC) #36
commit-bot: I haz the power
Committed patchset #15 (id:270001)
5 years, 11 months ago (2015-01-23 17:22:45 UTC) #37
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 17:23:33 UTC) #38
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/5a2d550f7b3b9a7ff41e0bc1e7fae0607c7d8488
Cr-Commit-Position: refs/heads/master@{#312868}

Powered by Google App Engine
This is Rietveld 408576698