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

Issue 545063006: ozone: evdev: Add gesture property provider (Closed)

Created:
6 years, 3 months ago by Shecky Lin
Modified:
6 years, 2 months ago
CC:
chromium-reviews, kalyank, tdresser+watch_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ozone: evdev: Add gesture property provider The CL does the following things: 1. Add GesturePropertyProvider which parses xorg-conf files under /etc/gesture/ upon chrome starts and sets the property values according to the device touchpad/mouse type and the file content. 2. Provides GesturesPropProvider APIs so that libgesture can expose its property values and allow Chrome to access it. Contributed by sheckylin@chromium.org BUG=400022 TEST=link_freon ChromeOS build put appropriate xorg-conf files under /etc/gesture restart chrome and check that: 1. the property values get loaded by manually logging. 2. the touchpad gesture is now smoother than before. Committed: https://crrev.com/af98f0fa02a4cfc584291ea27aecda165bbdaddb Cr-Commit-Position: refs/heads/master@{#300423}

Patch Set 1 #

Patch Set 2 : Add INFO_SEVERITY to log property activities. Useful for debugging before a property value setting … #

Total comments: 2

Patch Set 3 : Use ScopedPtrHashMap. Fix bugs with string properties and numerical array properties created with N… #

Total comments: 14

Patch Set 4 : Addressed most comments. Implemented SetProperty. #

Patch Set 5 : Implemented GetProperty and GetDeviceIdsByType. Changed to using ScopedVector and ScopedPtrHashMap … #

Patch Set 6 : Remove the use of singleton #

Total comments: 18

Patch Set 7 : Addressed all previous comments and removed pointer type-castings. #

Total comments: 30

Patch Set 8 : Addressed previous comments. Refactored the code per style guide. #

Total comments: 13

Patch Set 9 : Addressed previous comments. #

Patch Set 10 : Fix the id generation method and the memory leak. #

Patch Set 11 : Rebased the code, but base::Bind reached template parameters limitation. #

Patch Set 12 : Rebase again. Move id generation logic to EventFactoryEvdev #

Total comments: 6

Patch Set 13 : Reverted the id generation logic. Formatted the change. #

Patch Set 14 : clang format with Chromium setting #

Patch Set 15 : Rebased the code again. #

Total comments: 1

Patch Set 16 : Rebase code again. Fix #ifdef. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1876 lines, -14 lines) Patch
M ui/events/ozone/evdev/event_factory_evdev.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +9 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +13 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +22 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +42 lines, -12 lines 0 comments Download
A ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h View 1 2 3 4 5 6 7 8 9 10 11 13 1 chunk +263 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1525 lines, -0 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (3 generated)
Shecky Lin
Hey guys, Please take a look of the patch. I am still doing some more ...
6 years, 3 months ago (2014-09-16 08:49:52 UTC) #2
Shecky Lin
Done some more checking today and it looks really well. Please review it and let ...
6 years, 3 months ago (2014-09-17 09:04:01 UTC) #3
alexst (slow to review)
https://codereview.chromium.org/545063006/diff/20001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h (right): https://codereview.chromium.org/545063006/diff/20001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h#newcode210 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h:210: typedef std::map<DeviceId, PropertyMap*> DevicePropertyMap; Just a drive-by comment, could ...
6 years, 3 months ago (2014-09-17 14:39:53 UTC) #5
Shecky Lin
On 2014/09/17 14:39:53, alexst wrote: > https://codereview.chromium.org/545063006/diff/20001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h > File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h (right): > > https://codereview.chromium.org/545063006/diff/20001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h#newcode210 > ...
6 years, 3 months ago (2014-09-18 09:44:26 UTC) #6
alexst (slow to review)
https://codereview.chromium.org/545063006/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): https://codereview.chromium.org/545063006/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc#newcode278 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc:278: delete configurations_[i].criterias[j]; Thank you for the scoped_ptr_hash map change. ...
6 years, 3 months ago (2014-09-18 16:13:29 UTC) #7
spang
Thanks for doing this! I think we'll need a bit of change to better match ...
6 years, 3 months ago (2014-09-18 18:06:17 UTC) #8
spang
https://codereview.chromium.org/545063006/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): https://codereview.chromium.org/545063006/diff/40001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc#newcode30 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc:30: #define INFO_SEVERITY INFO Please don't rename this. You shouldn't ...
6 years, 3 months ago (2014-09-18 21:23:16 UTC) #9
Shecky Lin
On 2014/09/18 18:06:17, spang wrote: > Thanks for doing this! > > I think we'll ...
6 years, 3 months ago (2014-09-19 03:24:18 UTC) #10
Shecky Lin
Address most comments. At the next patch, I will: 1. Finish the GetProperty API. 2. ...
6 years, 3 months ago (2014-09-19 09:31:09 UTC) #11
spang
On 2014/09/19 03:24:18, Shecky Lin wrote: > On 2014/09/18 18:06:17, spang wrote: > > Thanks ...
6 years, 3 months ago (2014-09-19 18:28:38 UTC) #12
Shecky Lin
Got it. Unfortunately, I found that I still need a globally available object that I ...
6 years, 3 months ago (2014-09-22 09:57:32 UTC) #13
Shecky Lin
I've uploaded a new patch which addressed all issues besides the singleton problem. Please take ...
6 years, 3 months ago (2014-09-23 08:41:25 UTC) #14
spang
On 2014/09/22 09:57:32, Shecky Lin wrote: > Got it. Unfortunately, I found that I still ...
6 years, 3 months ago (2014-09-23 16:49:55 UTC) #15
spang
On 2014/09/23 08:41:25, Shecky Lin wrote: > I've uploaded a new patch which addressed all ...
6 years, 3 months ago (2014-09-23 16:58:05 UTC) #16
Shecky Lin
On 2014/09/23 16:49:55, spang wrote: > On 2014/09/22 09:57:32, Shecky Lin wrote: > > Got ...
6 years, 3 months ago (2014-09-24 08:34:46 UTC) #17
Shecky Lin
On 2014/09/23 16:58:05, spang wrote: > On 2014/09/23 08:41:25, Shecky Lin wrote: > > I've ...
6 years, 3 months ago (2014-09-24 08:36:41 UTC) #18
Shecky Lin
Hey guys, I've uploaded a new patch which addressed all comments before. Could you take ...
6 years, 3 months ago (2014-09-24 08:39:05 UTC) #19
spang
https://codereview.chromium.org/545063006/diff/100001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): https://codereview.chromium.org/545063006/diff/100001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc#newcode36 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc:36: struct GesturesProp { This interface needs work to avoid ...
6 years, 2 months ago (2014-09-26 15:15:32 UTC) #20
Shecky Lin
I agree with other comments so I just reply to this one quickly to avoid ...
6 years, 2 months ago (2014-09-26 16:13:37 UTC) #21
spang
On 2014/09/26 16:13:37, Shecky Lin wrote: > I agree with other comments so I just ...
6 years, 2 months ago (2014-09-26 16:29:53 UTC) #22
Shecky Lin
Hey guys, please take another look of the new patch. Thanks! https://codereview.chromium.org/545063006/diff/100001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): ...
6 years, 2 months ago (2014-10-03 03:58:55 UTC) #23
spang
https://codereview.chromium.org/545063006/diff/120001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): https://codereview.chromium.org/545063006/diff/120001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc#newcode36 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc:36: struct GesturesProp { This is nontrivial and should not ...
6 years, 2 months ago (2014-10-03 21:40:11 UTC) #24
alexst (slow to review)
Hi Shecky, thank you for working through this! I made some comments on code style ...
6 years, 2 months ago (2014-10-03 22:32:02 UTC) #25
Shecky Lin
Hey guys, I have addressed your previous comments and re-factored the code per the style ...
6 years, 2 months ago (2014-10-08 10:51:00 UTC) #26
spang
This is looking much better. I do have a few more concerns. https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc ...
6 years, 2 months ago (2014-10-08 19:09:15 UTC) #27
alexst (slow to review)
just a nit. https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (right): https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/event_factory_evdev.cc#newcode160 ui/events/ozone/evdev/event_factory_evdev.cc:160: gesture_prop_provider_(new GesturePropertyProvider), please use full name ...
6 years, 2 months ago (2014-10-08 20:21:47 UTC) #28
Shecky Lin
Done the comments. Responses inline. Please take another look, thanks! https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (right): https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/event_factory_evdev.cc#newcode160 ...
6 years, 2 months ago (2014-10-09 09:19:31 UTC) #29
spang
On 2014/10/09 09:19:31, Shecky Lin wrote: > Done the comments. Responses inline. Please take another ...
6 years, 2 months ago (2014-10-09 16:57:19 UTC) #30
spang
On 2014/10/09 16:57:19, spang wrote: > On 2014/10/09 09:19:31, Shecky Lin wrote: > > Done ...
6 years, 2 months ago (2014-10-09 17:00:06 UTC) #31
spang
On 2014/10/09 17:00:06, spang wrote: > On 2014/10/09 16:57:19, spang wrote: > > On 2014/10/09 ...
6 years, 2 months ago (2014-10-09 17:06:47 UTC) #32
spang
https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc File ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc (right): https://codereview.chromium.org/545063006/diff/140001/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc#newcode742 ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc:742: std::string path = GetDeviceNodePath(device); On 2014/10/09 09:19:31, Shecky Lin ...
6 years, 2 months ago (2014-10-09 17:20:48 UTC) #33
Shecky Lin
Done fixing the memory leak. Please take another look. Thanks!
6 years, 2 months ago (2014-10-13 09:12:55 UTC) #34
Shecky Lin
I've re-based the code but unfortunately we now reached the number limit of template parameters ...
6 years, 2 months ago (2014-10-14 07:16:20 UTC) #35
spang
On 2014/10/14 07:16:20, Shecky Lin wrote: > I've re-based the code but unfortunately we now ...
6 years, 2 months ago (2014-10-14 13:41:19 UTC) #36
Shecky Lin
On 2014/10/14 13:41:19, spang wrote: > On 2014/10/14 07:16:20, Shecky Lin wrote: > > I've ...
6 years, 2 months ago (2014-10-15 09:28:30 UTC) #37
spang
https://codereview.chromium.org/545063006/diff/330001/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (right): https://codereview.chromium.org/545063006/diff/330001/ui/events/ozone/evdev/event_factory_evdev.cc#newcode310 ui/events/ozone/evdev/event_factory_evdev.cc:310: id = (id + 1) & kMaxDeviceNum; This is ...
6 years, 2 months ago (2014-10-15 11:36:42 UTC) #38
Shecky Lin
On 2014/10/15 11:36:42, spang wrote: > https://codereview.chromium.org/545063006/diff/330001/ui/events/ozone/evdev/event_factory_evdev.cc > File ui/events/ozone/evdev/event_factory_evdev.cc (right): > > https://codereview.chromium.org/545063006/diff/330001/ui/events/ozone/evdev/event_factory_evdev.cc#newcode310 > ...
6 years, 2 months ago (2014-10-15 11:51:32 UTC) #39
Shecky Lin
Hey guys, Could you take another look and see if this is good to land? ...
6 years, 2 months ago (2014-10-16 04:53:53 UTC) #40
spang
On 2014/10/16 04:53:53, Shecky Lin wrote: > Hey guys, > > Could you take another ...
6 years, 2 months ago (2014-10-16 13:58:55 UTC) #41
alexst (slow to review)
git cl format does the trick too.
6 years, 2 months ago (2014-10-16 14:03:24 UTC) #42
Shecky Lin
On 2014/10/16 13:58:55, spang (OOO Oct 15 - Oct 17) wrote: > On 2014/10/16 04:53:53, ...
6 years, 2 months ago (2014-10-17 04:26:03 UTC) #43
Shecky Lin
I've rebased the code again. Could you take a look? Thanks.
6 years, 2 months ago (2014-10-20 06:42:02 UTC) #44
alexst (slow to review)
lgtm, thank you!
6 years, 2 months ago (2014-10-20 14:22:33 UTC) #45
spang
lgtm with a nit please remove the extra semicolons that are causing clang-format to screw ...
6 years, 2 months ago (2014-10-20 14:32:57 UTC) #46
spang
On 2014/10/20 14:32:57, spang wrote: > lgtm with a nit > > please remove the ...
6 years, 2 months ago (2014-10-20 15:40:55 UTC) #47
alexst (slow to review)
On 2014/10/20 15:40:55, spang wrote: > On 2014/10/20 14:32:57, spang wrote: > > lgtm with ...
6 years, 2 months ago (2014-10-20 20:36:41 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/545063006/410001
6 years, 2 months ago (2014-10-21 04:57:59 UTC) #50
commit-bot: I haz the power
Committed patchset #16 (id:410001)
6 years, 2 months ago (2014-10-21 05:39:14 UTC) #51
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 05:40:04 UTC) #52
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/af98f0fa02a4cfc584291ea27aecda165bbdaddb
Cr-Commit-Position: refs/heads/master@{#300423}

Powered by Google App Engine
This is Rietveld 408576698