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

Issue 2331093002: UMA stats for stylus usage (Closed)

Created:
4 years, 3 months ago by xiaoyinh(OOO Sep 11-29)
Modified:
4 years, 2 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, kalyank, oshima+watch_chromium.org, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

UMA stats for stylus usage Adding the following uma: Number of “down” events received by (1) default note-taking app (2) web browser (3) ARC++ app (4) regular chrome app (5) Others, everything except browser and apps Also refactor stylus_metrics_recorder to derive from PointerWatcher for better practice. BUG=630070 Committed: https://crrev.com/1e2779e1871c89d04eb03cfe271cc4267be8cadb Cr-Commit-Position: refs/heads/master@{#422161}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Incorporate comments. #

Patch Set 3 : fix enum value in histograms.xml #

Total comments: 23

Patch Set 4 : Incorporate comments from xiyuan@ and mpearson@ #

Total comments: 23

Patch Set 5 : Incorporate comments from sky@ #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : Incorporate comments from sky@ and add unit tests #

Patch Set 8 : Changed ash/BUILD.gn #

Total comments: 37

Patch Set 9 : Incorporate comments. #

Patch Set 10 : rebase #

Total comments: 15

Patch Set 11 : run PointerMetricsRecorderTest in all platforms #

Total comments: 4

Patch Set 12 : Incorporate comments. #

Patch Set 13 : nit and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -140 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 5 chunks +4 lines, -4 lines 0 comments Download
M ash/aura/wm_window_aura.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ash/aura/wm_window_aura.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A ash/common/metrics/pointer_metrics_recorder.h View 1 2 3 4 5 6 7 8 9 1 chunk +39 lines, -0 lines 0 comments Download
A ash/common/metrics/pointer_metrics_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +107 lines, -0 lines 0 comments Download
A ash/common/metrics/pointer_metrics_recorder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +191 lines, -0 lines 0 comments Download
M ash/common/wm_window.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ash/metrics/user_metrics_recorder.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/bridge/wm_window_mus.cc View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
A + ash/shared/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
A ash/shared/app_types.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 4 chunks +0 lines, -13 lines 0 comments Download
D ash/wm/stylus_metrics_recorder.h View 1 chunk +0 lines, -33 lines 0 comments Download
D ash/wm/stylus_metrics_recorder.cc View 1 chunk +0 lines, -84 lines 0 comments Download
M chrome/browser/chromeos/note_taking_app_utils.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/note_taking_app_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +22 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 87 (49 generated)
xiaoyinh(OOO Sep 11-29)
4 years, 3 months ago (2016-09-12 18:35:32 UTC) #2
sky
On 2016/09/12 18:35:32, xiaoyinh wrote: Can you please indicate which files the reviewers should look ...
4 years, 3 months ago (2016-09-12 20:11:26 UTC) #3
xiyuan
https://codereview.chromium.org/2331093002/diff/1/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/1/chrome/browser/chromeos/note_taking_app_utils.cc#newcode91 chrome/browser/chromeos/note_taking_app_utils.cc:91: for (const char* id : kExtensionIds) { Line 46-54 ...
4 years, 3 months ago (2016-09-12 20:15:48 UTC) #4
xiaoyinh(OOO Sep 11-29)
On 2016/09/12 20:11:26, sky wrote: > On 2016/09/12 18:35:32, xiaoyinh wrote: > > Can you ...
4 years, 3 months ago (2016-09-12 20:43:39 UTC) #5
xiaoyinh(OOO Sep 11-29)
On 2016/09/12 20:15:48, xiyuan wrote: > https://codereview.chromium.org/2331093002/diff/1/chrome/browser/chromeos/note_taking_app_utils.cc > File chrome/browser/chromeos/note_taking_app_utils.cc (right): > > https://codereview.chromium.org/2331093002/diff/1/chrome/browser/chromeos/note_taking_app_utils.cc#newcode91 > ...
4 years, 3 months ago (2016-09-12 21:05:16 UTC) #6
sky
Can you better clarify what you mean by system ui? There are a bunch of ...
4 years, 3 months ago (2016-09-13 00:03:26 UTC) #7
Mark P
As sky@ says, it'd be good to clarify the system UI category, as well as ...
4 years, 3 months ago (2016-09-13 21:57:11 UTC) #8
xiaoyinh(OOO Sep 11-29)
Sorry about the confusion. System UI initially means that everything except browser/apps that has an ...
4 years, 3 months ago (2016-09-16 18:41:16 UTC) #11
xiyuan
https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/chromeos/note_taking_app_utils.cc#newcode62 chrome/browser/chromeos/note_taking_app_utils.cc:62: ids = GetAppIds(); nit: Move the declaration in L58 ...
4 years, 3 months ago (2016-09-16 20:07:54 UTC) #12
Mark P
https://codereview.chromium.org/2331093002/diff/40001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2331093002/diff/40001/tools/metrics/histograms/histograms.xml#newcode12795 tools/metrics/histograms/histograms.xml:12795: + <summary>Counts the number of down events received per ...
4 years, 3 months ago (2016-09-16 20:27:02 UTC) #13
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/chromeos/note_taking_app_utils.cc#newcode62 chrome/browser/chromeos/note_taking_app_utils.cc:62: ids = GetAppIds(); On 2016/09/16 20:07:53, xiyuan wrote: > ...
4 years, 3 months ago (2016-09-16 22:34:26 UTC) #16
xiyuan
lgtm https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc File chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc (right): https://codereview.chromium.org/2331093002/diff/40001/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc#newcode22 chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc:22: #include "chrome/browser/ui/ash/metrics/stylus_metrics_recorder.h" On 2016/09/16 22:34:25, xiaoyinh wrote: > ...
4 years, 3 months ago (2016-09-16 22:38:57 UTC) #17
Mark P
histograms.xml lgtm with a correction below https://codereview.chromium.org/2331093002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2331093002/diff/60001/tools/metrics/histograms/histograms.xml#newcode12797 tools/metrics/histograms/histograms.xml:12797: + targeted to ...
4 years, 3 months ago (2016-09-16 22:51:06 UTC) #18
Mark P
P.S. the changelist description is out-of-date. You may want to revise it.
4 years, 3 months ago (2016-09-16 22:51:39 UTC) #19
sky
https://codereview.chromium.org/2331093002/diff/60001/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/60001/chrome/browser/chromeos/note_taking_app_utils.cc#newcode60 chrome/browser/chromeos/note_taking_app_utils.cc:60: std::vector<std::string> ids = GetAppIds(); Move into for loop (see ...
4 years, 3 months ago (2016-09-16 23:20:17 UTC) #21
xiaoyinh(OOO Sep 11-29)
sky@, thank you for your comments. I'm not familiar with window code and might have ...
4 years, 3 months ago (2016-09-19 21:19:53 UTC) #24
Daniel Erat
https://codereview.chromium.org/2331093002/diff/100001/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/100001/chrome/browser/chromeos/note_taking_app_utils.cc#newcode95 chrome/browser/chromeos/note_taking_app_utils.cc:95: for (const auto& id : GetAppIds()) { the changelist ...
4 years, 3 months ago (2016-09-19 22:08:47 UTC) #32
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2331093002/diff/100001/chrome/browser/chromeos/note_taking_app_utils.cc File chrome/browser/chromeos/note_taking_app_utils.cc (right): https://codereview.chromium.org/2331093002/diff/100001/chrome/browser/chromeos/note_taking_app_utils.cc#newcode95 chrome/browser/chromeos/note_taking_app_utils.cc:95: for (const auto& id : GetAppIds()) { On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 22:45:49 UTC) #33
sky
Your change has lots of similarities with DesktopTaskSwitchMetricRecorder. I'm wondering if we can get rid ...
4 years, 3 months ago (2016-09-19 23:36:53 UTC) #34
sky
On 2016/09/19 23:36:53, sky wrote: > Your change has lots of similarities with DesktopTaskSwitchMetricRecorder. I'm ...
4 years, 3 months ago (2016-09-19 23:56:46 UTC) #35
xiaoyinh(OOO Sep 11-29)
sky@, could you take a look at the new patch(patch 7)? reveman@, Could you take ...
4 years, 2 months ago (2016-09-27 17:57:44 UTC) #41
Daniel Erat
https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.cc File ash/metrics/pointer_metrics_recorder.cc (right): https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.cc#newcode24 ash/metrics/pointer_metrics_recorder.cc:24: CLAM_SHELL = 0, nit: "CLAMSHELL" instead of "CLAM_SHELL" (since ...
4 years, 2 months ago (2016-09-27 19:15:10 UTC) #48
reveman
https://codereview.chromium.org/2331093002/diff/140001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2331093002/diff/140001/components/exo/shell_surface.cc#newcode949 components/exo/shell_surface.cc:949: static_cast<int>(ash::AppType::ARC_APP)); This is incorrect. All shell surfaces are not ...
4 years, 2 months ago (2016-09-27 20:39:00 UTC) #49
sky
https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.h File ash/metrics/pointer_metrics_recorder.h (right): https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.h#newcode19 ash/metrics/pointer_metrics_recorder.h:19: namespace ash { Please move this class to ash/common/metrics. ...
4 years, 2 months ago (2016-09-27 22:08:59 UTC) #50
Daniel Erat
https://codereview.chromium.org/2331093002/diff/140001/ash/shared/app_types.h File ash/shared/app_types.h (right): https://codereview.chromium.org/2331093002/diff/140001/ash/shared/app_types.h#newcode17 ash/shared/app_types.h:17: DEFAULT_NOTE_TAKING_APP, On 2016/09/27 22:08:59, sky wrote: > Why the ...
4 years, 2 months ago (2016-09-27 23:34:09 UTC) #51
sky
Ah, ok, in that case DEFAULT_ makes sense. On Tue, Sep 27, 2016 at 4:34 ...
4 years, 2 months ago (2016-09-28 15:22:12 UTC) #52
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.cc File ash/metrics/pointer_metrics_recorder.cc (right): https://codereview.chromium.org/2331093002/diff/140001/ash/metrics/pointer_metrics_recorder.cc#newcode24 ash/metrics/pointer_metrics_recorder.cc:24: CLAM_SHELL = 0, On 2016/09/27 19:15:10, Daniel Erat wrote: ...
4 years, 2 months ago (2016-09-29 20:37:44 UTC) #57
sky
One minor question, otherwise nearly there. https://codereview.chromium.org/2331093002/diff/180001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2331093002/diff/180001/ash/BUILD.gn#newcode1619 ash/BUILD.gn:1619: "common/metrics/pointer_metrics_recorder_unittest.cc", What is ...
4 years, 2 months ago (2016-09-29 21:25:21 UTC) #58
xiaoyinh(OOO Sep 11-29)
On 2016/09/29 21:25:21, sky wrote: > One minor question, otherwise nearly there. > > https://codereview.chromium.org/2331093002/diff/180001/ash/BUILD.gn ...
4 years, 2 months ago (2016-09-29 21:48:08 UTC) #59
sky
On 2016/09/29 21:48:08, xiaoyinh wrote: > On 2016/09/29 21:25:21, sky wrote: > > One minor ...
4 years, 2 months ago (2016-09-29 22:19:38 UTC) #60
Daniel Erat
thanks, i mostly just have nits now. feel free to submit based on scott's l-g-t-m ...
4 years, 2 months ago (2016-09-29 22:58:47 UTC) #65
xiaoyinh(OOO Sep 11-29)
sky@, PointerMetricsRecorderTest passed in all platforms. See Patch 11. Also incorporated comments from derat@. Thanks ...
4 years, 2 months ago (2016-09-30 00:25:40 UTC) #70
bruthig
lgtm https://codereview.chromium.org/2331093002/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2331093002/diff/200001/tools/metrics/histograms/histograms.xml#newcode13045 tools/metrics/histograms/histograms.xml:13045: + <owner>xiaoyinh@chromium.org</owner> nit: Might be a good idea ...
4 years, 2 months ago (2016-09-30 00:30:25 UTC) #72
sky
LGTM
4 years, 2 months ago (2016-09-30 03:08:14 UTC) #75
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2331093002/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2331093002/diff/200001/tools/metrics/histograms/histograms.xml#newcode13045 tools/metrics/histograms/histograms.xml:13045: + <owner>xiaoyinh@chromium.org</owner> On 2016/09/30 00:30:25, bruthig wrote: > nit: ...
4 years, 2 months ago (2016-09-30 16:53:05 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2331093002/240001
4 years, 2 months ago (2016-09-30 18:27:27 UTC) #83
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-09-30 18:36:48 UTC) #85
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 18:38:33 UTC) #87
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/1e2779e1871c89d04eb03cfe271cc4267be8cadb
Cr-Commit-Position: refs/heads/master@{#422161}

Powered by Google App Engine
This is Rietveld 408576698