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

Issue 893753002: Dump touchpad event logs for touch log source (Closed)

Created:
5 years, 10 months ago by Shecky Lin
Modified:
5 years, 10 months ago
CC:
chromium-reviews, ozone-reviews_chromium.org, nkostylev+watch_chromium.org, tdresser+watch_chromium.org, jdduke+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dump touchpad event logs for touch log source The CL dumps event logs for devices that run with the CrOS gesture library. It is designed to be backward-compatible with the X11 behaviour. Contributed by sheckylin@chromium.org BUG=450159 TEST=samus ChromeOS build Committed: https://crrev.com/e1fd503701a7499e6e634ad13d114e7de07936bf Cr-Commit-Position: refs/heads/master@{#318182}

Patch Set 1 #

Patch Set 2 : Rebased codes. However, seems to have some problems. #

Total comments: 24

Patch Set 3 : Refactored the code per previous comments. #

Total comments: 10

Patch Set 4 : change functions to Chromium counterparts and cleanup stuff #

Total comments: 31

Patch Set 5 : Refined per comments. #

Patch Set 6 : Rebase and fixed nits #

Total comments: 8

Patch Set 7 : Fix nits #

Patch Set 8 : tot rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+453 lines, -73 lines) Patch
M chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc View 1 2 3 4 5 6 2 chunks +112 lines, -5 lines 0 comments Download
M ui/events/ozone/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_controller_evdev.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_controller_evdev.cc View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -66 lines 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev_proxy.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc View 1 2 3 4 1 chunk +220 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/public/input_controller.h View 3 chunks +6 lines, -0 lines 0 comments Download
M ui/ozone/public/input_controller.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
Shecky Lin
Hey guys, please take a look. Thanks!
5 years, 10 months ago (2015-01-31 02:37:45 UTC) #2
spang
https://codereview.chromium.org/893753002/diff/20001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/20001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode55 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:55: std::string log_dir(kTouchEventLogDir); Don't need this, you can concatenate a ...
5 years, 10 months ago (2015-02-02 21:43:17 UTC) #3
Shecky Lin
Thanks for the kind suggestion! I haven't got time to form the next patch but ...
5 years, 10 months ago (2015-02-03 08:20:14 UTC) #4
Shecky Lin
https://codereview.chromium.org/893753002/diff/20001/ui/events/ozone/evdev/input_device_factory_evdev.cc File ui/events/ozone/evdev/input_device_factory_evdev.cc (right): https://codereview.chromium.org/893753002/diff/20001/ui/events/ozone/evdev/input_device_factory_evdev.cc#newcode50 ui/events/ozone/evdev/input_device_factory_evdev.cc:50: const char kTouchpadEvdevLogPath[] = "/var/log/xorg/cmt_input_events.dat"; On 2015/02/03 08:20:14, Shecky ...
5 years, 10 months ago (2015-02-03 11:29:22 UTC) #5
spang
https://codereview.chromium.org/893753002/diff/20001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/20001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode55 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:55: std::string log_dir(kTouchEventLogDir); On 2015/02/03 08:20:14, Shecky Lin wrote: > ...
5 years, 10 months ago (2015-02-03 16:31:20 UTC) #6
Shecky Lin
spang: I've addressed your previous comments. Could you take another look? Thanks! https://codereview.chromium.org/893753002/diff/20001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc ...
5 years, 10 months ago (2015-02-10 08:21:22 UTC) #7
Shecky Lin
Pinging spang@/alexst@. Thanks!
5 years, 10 months ago (2015-02-11 08:36:16 UTC) #8
spang
oops, thanks for ping Just a couple more concerns. https://codereview.chromium.org/893753002/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc File ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc (right): https://codereview.chromium.org/893753002/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc#newcode91 ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc:91: ...
5 years, 10 months ago (2015-02-11 19:31:46 UTC) #9
Shecky Lin
spang@: please take another look. Thanks! achuith@ Seems like the patch is now good enough ...
5 years, 10 months ago (2015-02-12 06:51:54 UTC) #10
spang
lgtm https://codereview.chromium.org/893753002/diff/60001/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc File ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc (right): https://codereview.chromium.org/893753002/diff/60001/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc#newcode95 ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc:95: strftime(buffer, kTouchLogTimestampMaxSize, "%Y%m%d-%H%M%S", &timeinfo); It looks like buffer ...
5 years, 10 months ago (2015-02-12 18:10:38 UTC) #11
achuithb
https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode36 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:36: const char kTouchEventLogDir[] = "/home/chronos/user/log"; Shouldn't this be kTouchpadEventLogDir? ...
5 years, 10 months ago (2015-02-12 22:42:05 UTC) #12
spang
https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode114 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:114: base::Closure pack_closure = On 2015/02/12 22:42:05, achuithb wrote: > ...
5 years, 10 months ago (2015-02-13 02:15:13 UTC) #13
Shecky Lin
achuith@: please take another look. Thanks! https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode36 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:36: const char kTouchEventLogDir[] ...
5 years, 10 months ago (2015-02-13 05:12:23 UTC) #15
achuithb
https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/60001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode81 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:81: std::vector<std::pair<std::string, base::CommandLine>> commands; On 2015/02/13 05:12:22, Shecky Lin wrote: ...
5 years, 10 months ago (2015-02-17 21:21:06 UTC) #16
Shecky Lin
achuith@: Sorry for the delay. I've addressed your comments. Could you take another look of ...
5 years, 10 months ago (2015-02-24 08:28:40 UTC) #17
achuithb
https://codereview.chromium.org/893753002/diff/100001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/100001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode85 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:85: CHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); Let's just make this a DCHECK similar to ...
5 years, 10 months ago (2015-02-24 19:32:07 UTC) #18
Shecky Lin
achuith@: Could you take another look? Thanks! https://codereview.chromium.org/893753002/diff/100001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc File chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc (right): https://codereview.chromium.org/893753002/diff/100001/chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc#newcode85 chrome/browser/chromeos/system_logs/touch_log_source_ozone.cc:85: CHECK(BrowserThread::GetBlockingPool()->RunsTasksOnCurrentThread()); On ...
5 years, 10 months ago (2015-02-25 06:21:46 UTC) #19
achuithb
lgtm. THanks for your patience
5 years, 10 months ago (2015-02-25 20:35:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893753002/140001
5 years, 10 months ago (2015-02-26 01:53:00 UTC) #23
commit-bot: I haz the power
Failed to commit the patch.
5 years, 10 months ago (2015-02-26 02:27:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893753002/140001
5 years, 10 months ago (2015-02-26 04:08:06 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-26 04:09:31 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 04:10:19 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e1fd503701a7499e6e634ad13d114e7de07936bf
Cr-Commit-Position: refs/heads/master@{#318182}

Powered by Google App Engine
This is Rietveld 408576698