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

Issue 806693009: Port ScopedDisableInternalMouseAndKeyboardX11 to Ozone (Closed)

Created:
6 years ago by pkotwicz
Modified:
5 years, 11 months ago
Reviewers:
spang, oshima, kpschoedel
CC:
chromium-reviews, kalyank, jdduke+watch_chromium.org, tdresser+watch_chromium.org, sadrul, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Port ScopedDisableInternalMouseAndKeyboardX11 to Ozone BUG=401598 TEST=Manual, see bug Committed: https://crrev.com/62e31ac2ddce4ae5fbbc2f1275e7b0da9819a408 Cr-Commit-Position: refs/heads/master@{#311505}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -9 lines) Patch
M ash/BUILD.gn View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ash/ash.gyp View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev.h View 1 4 chunks +19 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev.cc View 1 3 chunks +14 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.h View 1 4 chunks +10 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 2 5 chunks +26 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_device_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_device_info.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 2 chunks +45 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/input_controller_evdev.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/input_controller_evdev.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h View 1 3 chunks +10 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc View 1 2 3 3 chunks +23 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/public/input_controller.h View 1 3 chunks +17 lines, -0 lines 0 comments Download
M ui/ozone/public/input_controller.cc View 1 2 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
pkotwicz
spang@ PTAL We need to block events in ozone instead of in EventRewriter because when ...
6 years ago (2014-12-17 04:29:46 UTC) #4
spang
Any reason not to do the filtering by installing an EventRewriter (or using the existing ...
6 years ago (2014-12-19 18:24:15 UTC) #5
pkotwicz
The problem is that we need to block modifier keys as well. For instance, I ...
6 years ago (2014-12-19 19:58:27 UTC) #6
spang
On 2014/12/19 19:58:27, pkotwicz wrote: > The problem is that we need to block modifier ...
6 years ago (2014-12-20 06:21:25 UTC) #7
pkotwicz
crbug.com/374002 has discussion on how this works under X11. Under X11, modifiers from the blocked ...
6 years ago (2014-12-21 02:03:21 UTC) #8
pkotwicz
For the sake of clarity: "Under X11, modifiers from the blocked internal keyboard are ignored ...
6 years ago (2014-12-21 02:04:09 UTC) #9
spang
+kpschoedel
6 years ago (2014-12-22 18:46:29 UTC) #11
spang
Thanks for the explanation.. didn't realize we were tracking the ctrl/shift modifiers on x11 ourselves. ...
6 years ago (2014-12-22 18:56:16 UTC) #12
kpschoedel
https://codereview.chromium.org/806693009/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/806693009/diff/40001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode108 ui/events/ozone/evdev/event_converter_evdev_impl.cc:108: KeyboardCode key_code = KeyboardEvdev::KeyboardCodeFromEvdevKey(input.code); On 2014/12/22 18:56:16, spang wrote: ...
6 years ago (2014-12-22 19:17:56 UTC) #13
pkotwicz
kpschoedel@ can you please take another look? I have rebased the CL and have switched ...
6 years ago (2014-12-23 01:53:09 UTC) #15
kpschoedel
Non-owning LGTM for the keystroke parts, with one suggestion. https://codereview.chromium.org/806693009/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/806693009/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode118 ui/events/ozone/evdev/event_converter_evdev_impl.cc:118: ...
5 years, 12 months ago (2014-12-25 18:14:17 UTC) #16
spang
lgtm https://codereview.chromium.org/806693009/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc File ui/events/ozone/evdev/event_converter_evdev_impl.cc (right): https://codereview.chromium.org/806693009/diff/80001/ui/events/ozone/evdev/event_converter_evdev_impl.cc#newcode61 ui/events/ozone/evdev/event_converter_evdev_impl.cc:61: if (ignore_events_) Add a TODO(spang): Re-implement this by ...
5 years, 11 months ago (2015-01-02 22:49:57 UTC) #17
pkotwicz
oshima@ can you take a look at the changes in ash/
5 years, 11 months ago (2015-01-13 22:25:49 UTC) #19
oshima
ash lgtm with nits and q. https://codereview.chromium.org/806693009/diff/100001/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc File ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc (right): https://codereview.chromium.org/806693009/diff/100001/ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc#newcode1 ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc:1: // Copyright 2014 ...
5 years, 11 months ago (2015-01-13 23:16:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806693009/140001
5 years, 11 months ago (2015-01-14 16:25:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/806693009/180001
5 years, 11 months ago (2015-01-14 16:52:46 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:180001)
5 years, 11 months ago (2015-01-14 17:52:20 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/62e31ac2ddce4ae5fbbc2f1275e7b0da9819a408 Cr-Commit-Position: refs/heads/master@{#311505}
5 years, 11 months ago (2015-01-14 17:53:19 UTC) #30
pkotwicz
5 years, 11 months ago (2015-01-14 18:01:42 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/806693009/diff/100001/ash/wm/maximize_mode/sc...
File ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc
(right):

https://codereview.chromium.org/806693009/diff/100001/ash/wm/maximize_mode/sc...
ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc:24:
->HideCursor();
Yes, moving an external mouse while in maximized mode will make the cursor
reappear.

Powered by Google App Engine
This is Rietveld 408576698