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

Issue 269633005: Only block internal touchpad and allow external mice to continue working in maximize mode. (Closed)

Created:
6 years, 7 months ago by flackr
Modified:
6 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Only block internal touchpad and allow external mice to continue working in maximize mode. BUG=362881 TEST=Manual, plug in an external mouse and observe it continues working when device is in maximize mode while internal touchpad does not. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272254

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move includes #

Total comments: 8

Patch Set 3 : Move internal device tracking to a separate class with only an X11 implementation. #

Total comments: 2

Patch Set 4 : Comment overridden class. #

Patch Set 5 : Merge with master and allow tests to override internal device detection. #

Patch Set 6 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -13 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/internal_input_device_list.h View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/internal_input_device_list_x11.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/internal_input_device_list_x11.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 4 5 4 chunks +25 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_event_blocker.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_event_blocker.cc View 1 2 3 4 6 chunks +61 lines, -13 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
flackr
Please take a look. It looks like the test event generation infrastructure doesn't currently support ...
6 years, 7 months ago (2014-05-01 12:36:41 UTC) #1
sadrul
Can you use DeviceDataManager::IsCMTDeviceEvent() instead to detect events coming from the internal touchpad? https://codereview.chromium.org/269633005/diff/1/ash/wm/maximize_mode/maximize_mode_event_blocker.cc File ...
6 years, 7 months ago (2014-05-02 01:44:47 UTC) #2
flackr
Oddly enough DeviceDataManager::IsCMTDeviceEvent() returns true. DeviceDataManager::IsTouchpadXInputEvent works to discriminate the internal touchpad from external regular ...
6 years, 7 months ago (2014-05-07 01:39:23 UTC) #3
flackr
On 2014/05/07 01:39:23, flackr wrote: > Oddly enough DeviceDataManager::IsCMTDeviceEvent() returns true. To clarify, I mean ...
6 years, 7 months ago (2014-05-07 01:45:00 UTC) #4
sadrul
This looks reasonable ... but how difficult would it be to separate out the device-id ...
6 years, 7 months ago (2014-05-07 13:59:22 UTC) #5
flackr
Separated out the device detection into an X11 only file. https://codereview.chromium.org/269633005/diff/20001/ash/wm/maximize_mode/maximize_mode_event_blocker.cc File ash/wm/maximize_mode/maximize_mode_event_blocker.cc (right): https://codereview.chromium.org/269633005/diff/20001/ash/wm/maximize_mode/maximize_mode_event_blocker.cc#newcode52 ...
6 years, 7 months ago (2014-05-14 16:46:56 UTC) #6
sadrul
LGTM. Thanks! +kpschoedel@ FYI. The newly added InternalInputDeviceList will need to be merged with the ...
6 years, 7 months ago (2014-05-14 18:26:08 UTC) #7
flackr
https://codereview.chromium.org/269633005/diff/40001/ash/wm/maximize_mode/internal_input_device_list_x11.h File ash/wm/maximize_mode/internal_input_device_list_x11.h (right): https://codereview.chromium.org/269633005/diff/40001/ash/wm/maximize_mode/internal_input_device_list_x11.h#newcode22 ash/wm/maximize_mode/internal_input_device_list_x11.h:22: virtual bool IsEventFromInternalDevice(const ui::Event* event) OVERRIDE; On 2014/05/14 18:26:09, ...
6 years, 7 months ago (2014-05-14 18:41:56 UTC) #8
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 7 months ago (2014-05-14 18:43:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/269633005/60001
6 years, 7 months ago (2014-05-14 18:43:47 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 21:55:05 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 22:10:14 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31554)
6 years, 7 months ago (2014-05-14 22:10:15 UTC) #13
flackr
Hey, after merging I had to modify how the internal input device list is accessed ...
6 years, 7 months ago (2014-05-16 21:18:59 UTC) #14
flackr
ping, do the changes in maximize_mode_controller_unittest.cc and maximize_mode_event_blocker.h/cc in patch set 5 look reasonable? (Pardon ...
6 years, 7 months ago (2014-05-20 20:41:54 UTC) #15
sadrul
sorry about the delay. slgtm
6 years, 7 months ago (2014-05-21 15:29:17 UTC) #16
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 7 months ago (2014-05-21 15:30:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/269633005/80001
6 years, 7 months ago (2014-05-21 19:56:31 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 01:15:38 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 01:21:13 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/69070) linux_chromium_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_clang_dbg/builds/27438) linux_chromium_gn_rel ...
6 years, 7 months ago (2014-05-22 01:21:14 UTC) #21
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 7 months ago (2014-05-22 14:15:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/269633005/100001
6 years, 7 months ago (2014-05-22 14:16:49 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 18:49:04 UTC) #24
Message was sent while issue was closed.
Change committed as 272254

Powered by Google App Engine
This is Rietveld 408576698