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

Issue 1453813003: Fix a regression in checking the status of the touch events. (Closed)

Created:
5 years, 1 month ago by afakhry
Modified:
5 years, 1 month ago
Reviewers:
oshima, dtapuska, sadrul
CC:
chromium-reviews, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a regression in checking the status of the touch events. When the #touch-events flag is set to Automatic, we ought to check whether there's actually a touch device present. BUG=555390, 555746, 556390 Committed: https://crrev.com/b2794c1972bddd3fc1f3d4afcb079f8e4b504c49 Cr-Commit-Position: refs/heads/master@{#360472}

Patch Set 1 #

Total comments: 1

Patch Set 2 : alternative solution #

Patch Set 3 : #

Patch Set 4 : A third alternative fix. #

Patch Set 5 : Add new sources to gn file. #

Total comments: 6

Patch Set 6 : sadrul's comments #

Total comments: 2

Patch Set 7 : dtapuska's comments #

Total comments: 4

Patch Set 8 : Use the master switch on ozone as well. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -49 lines) Patch
M chrome/browser/chromeos/system/input_device_settings_impl_ozone.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 1 comment Download
M chrome/browser/chromeos/system/input_device_settings_impl_x11.cc View 1 2 3 7 1 chunk +1 line, -1 line 1 comment Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/base/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
A ui/base/touch/touch_enabled.h View 1 2 3 1 chunk +18 lines, -0 lines 1 comment Download
A ui/base/touch/touch_enabled.cc View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/base_event_utils.h View 1 2 3 7 1 chunk +4 lines, -7 lines 0 comments Download
M ui/events/base_event_utils.cc View 1 2 3 7 2 chunks +4 lines, -33 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 4 5 6 7 7 chunks +42 lines, -4 lines 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (6 generated)
afakhry
Hi Sadrul, could you please take a look at this CL? I would like to ...
5 years, 1 month ago (2015-11-17 19:41:45 UTC) #2
sadrul
not lgtm https://codereview.chromium.org/1453813003/diff/1/ui/events/base_event_utils.cc File ui/events/base_event_utils.cc (right): https://codereview.chromium.org/1453813003/diff/1/ui/events/base_event_utils.cc#newcode10 ui/events/base_event_utils.cc:10: #include "ui/base/touch/touch_device.h" This is in the ui_base ...
5 years, 1 month ago (2015-11-17 22:32:05 UTC) #3
afakhry
Hey Sadrul. Please check this new solution. Thanks!
5 years, 1 month ago (2015-11-18 19:04:46 UTC) #4
sadrul
+dtapuska@ mind double checking the code in touch_enabled.cc? The approach in the CL looks good ...
5 years, 1 month ago (2015-11-18 19:59:24 UTC) #7
afakhry
https://codereview.chromium.org/1453813003/diff/80001/ui/base/touch/touch_enabled.cc File ui/base/touch/touch_enabled.cc (right): https://codereview.chromium.org/1453813003/diff/80001/ui/base/touch/touch_enabled.cc#newcode19 ui/base/touch/touch_enabled.cc:19: auto command_line = base::CommandLine::ForCurrentProcess(); On 2015/11/18 19:59:24, sadrul wrote: ...
5 years, 1 month ago (2015-11-18 20:08:53 UTC) #8
dtapuska
https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc#newcode38 ui/events/devices/x11/touch_factory_x11.cc:38: return !GetTouchEventsCrOsMasterSwitch() && touch_flag_status; So the problem I have ...
5 years, 1 month ago (2015-11-18 20:13:06 UTC) #9
afakhry
https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc#newcode38 ui/events/devices/x11/touch_factory_x11.cc:38: return !GetTouchEventsCrOsMasterSwitch() && touch_flag_status; On 2015/11/18 20:13:05, dtapuska wrote: ...
5 years, 1 month ago (2015-11-18 20:36:16 UTC) #10
afakhry
Oshima, could you please review chrome/browser/chromeos/system/input_device_settings_impl_x11.cc?
5 years, 1 month ago (2015-11-18 20:46:08 UTC) #12
dtapuska
On 2015/11/18 20:36:16, afakhry wrote: > https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc > File ui/events/devices/x11/touch_factory_x11.cc (right): > > https://codereview.chromium.org/1453813003/diff/80001/ui/events/devices/x11/touch_factory_x11.cc#newcode38 > ...
5 years, 1 month ago (2015-11-18 20:46:40 UTC) #13
sadrul
https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc File ui/base/touch/touch_enabled.cc (right): https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc#newcode44 ui/base/touch/touch_enabled.cc:44: return touch_status && GetTouchEventsCrOsX11MasterSwitch(); On a chromeos device build ...
5 years, 1 month ago (2015-11-18 20:58:46 UTC) #14
afakhry
https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc File ui/base/touch/touch_enabled.cc (right): https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc#newcode44 ui/base/touch/touch_enabled.cc:44: return touch_status && GetTouchEventsCrOsX11MasterSwitch(); On 2015/11/18 20:58:46, sadrul wrote: ...
5 years, 1 month ago (2015-11-18 21:03:14 UTC) #15
sadrul
https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc File ui/base/touch/touch_enabled.cc (right): https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc#newcode44 ui/base/touch/touch_enabled.cc:44: return touch_status && GetTouchEventsCrOsX11MasterSwitch(); On 2015/11/18 21:03:13, afakhry wrote: ...
5 years, 1 month ago (2015-11-18 21:14:30 UTC) #16
afakhry
https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc File ui/base/touch/touch_enabled.cc (right): https://codereview.chromium.org/1453813003/diff/120001/ui/base/touch/touch_enabled.cc#newcode44 ui/base/touch/touch_enabled.cc:44: return touch_status && GetTouchEventsCrOsX11MasterSwitch(); On 2015/11/18 21:14:30, sadrul wrote: ...
5 years, 1 month ago (2015-11-18 21:33:04 UTC) #17
sadrul
lgtm
5 years, 1 month ago (2015-11-18 22:42:30 UTC) #18
oshima
lgtm given that sadrul is happy and we need to fix this for beta. Following ...
5 years, 1 month ago (2015-11-18 22:49:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1453813003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1453813003/140001
5 years, 1 month ago (2015-11-19 00:12:33 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 1 month ago (2015-11-19 01:50:31 UTC) #23
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 01:50:59 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b2794c1972bddd3fc1f3d4afcb079f8e4b504c49
Cr-Commit-Position: refs/heads/master@{#360472}

Powered by Google App Engine
This is Rietveld 408576698