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

Issue 889403003: Make PointerDeviceObserver work under Ozone (Closed)

Created:
5 years, 10 months ago by pkotwicz
Modified:
5 years, 10 months ago
Reviewers:
oshima, sadrul, spang
CC:
chromium-reviews, ozone-reviews_chromium.org, sadrul, 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

Make PointerDeviceObserver work under Ozone This CL: - Makes PointerDeviceObserver get notified when a mouse or touchpad is plugged in or removed by making PointerDeviceObserver an InputDeviceEventObserver on ozone only. - Adds InputDeviceEventObserver::OnMouseDeviceConfigurationChanged() and InputDeviceEventObserver::OnTouchpadDeviceConfigurationChanged(). - Adds the plumbing from EventFactoryEvdev to notify InputDeviceEventObservers when a mouse or touchpad is plugged in or removed. In a later CL I will make PointerDeviceObserver an InputDeviceEventObserver on X11 and add the X11 plumbing BUG=450899 TEST=Manual, see bug Committed: https://crrev.com/b726eb10541ccd17e678202bc7e502feb0854742 Cr-Commit-Position: refs/heads/master@{#314400}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -4 lines) Patch
M ash/display/display_change_observer_chromeos.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/display/display_change_observer_chromeos.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/virtual_keyboard_controller.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/virtual_keyboard_controller.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/pointer_device_observer.h View 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system/pointer_device_observer.cc View 4 chunks +13 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M ui/events/devices/device_hotplug_event_observer.h View 2 chunks +13 lines, -2 lines 0 comments Download
M ui/events/devices/input_device_event_observer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 chunk +4 lines, -0 lines 2 comments Download
M ui/events/platform/x11/x11_hotplug_event_handler.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (6 generated)
pkotwicz
spang@ PTAL I tried to keep this CL as simple as possible so that it ...
5 years, 10 months ago (2015-02-03 00:08:19 UTC) #3
spang
On 2015/02/03 00:08:19, pkotwicz wrote: > spang@ PTAL > > I tried to keep this ...
5 years, 10 months ago (2015-02-03 00:27:13 UTC) #4
pkotwicz
Oshima for ash/ and chrome/browser/chromeos OWNERS
5 years, 10 months ago (2015-02-03 01:21:01 UTC) #6
pkotwicz
sadrul@ for ui/events OWNERS
5 years, 10 months ago (2015-02-03 01:22:38 UTC) #8
sadrul
Please update the CL description to include a brief description of the changes this CL ...
5 years, 10 months ago (2015-02-03 01:29:13 UTC) #9
pkotwicz
Sadrul, can you please take another look? Added a brief description.
5 years, 10 months ago (2015-02-03 14:46:56 UTC) #10
oshima
ash, c/b/chromeos lgtm
5 years, 10 months ago (2015-02-03 14:54:32 UTC) #11
sadrul
https://codereview.chromium.org/889403003/diff/20001/chrome/browser/chromeos/system/pointer_device_observer.cc File chrome/browser/chromeos/system/pointer_device_observer.cc (right): https://codereview.chromium.org/889403003/diff/20001/chrome/browser/chromeos/system/pointer_device_observer.cc#newcode32 chrome/browser/chromeos/system/pointer_device_observer.cc:32: ui::DeviceDataManager::GetInstance()->RemoveObserver(this); There's no reason to add this ifdef. We ...
5 years, 10 months ago (2015-02-03 15:29:04 UTC) #12
pkotwicz
https://codereview.chromium.org/889403003/diff/20001/chrome/browser/chromeos/system/pointer_device_observer.cc File chrome/browser/chromeos/system/pointer_device_observer.cc (right): https://codereview.chromium.org/889403003/diff/20001/chrome/browser/chromeos/system/pointer_device_observer.cc#newcode32 chrome/browser/chromeos/system/pointer_device_observer.cc:32: ui::DeviceDataManager::GetInstance()->RemoveObserver(this); I completely agree. I am not doing this ...
5 years, 10 months ago (2015-02-03 16:50:14 UTC) #14
sadrul
If we want to merge this back for 41, then this makes sense for now. ...
5 years, 10 months ago (2015-02-03 17:33:04 UTC) #15
pkotwicz
Sadrul, can you please take another look? https://codereview.chromium.org/889403003/diff/20001/ui/events/platform/x11/x11_hotplug_event_handler.cc File ui/events/platform/x11/x11_hotplug_event_handler.cc (right): https://codereview.chromium.org/889403003/diff/20001/ui/events/platform/x11/x11_hotplug_event_handler.cc#newcode344 ui/events/platform/x11/x11_hotplug_event_handler.cc:344: // lists ...
5 years, 10 months ago (2015-02-03 18:09:33 UTC) #16
pkotwicz
Sadrul, can you please take another look?
5 years, 10 months ago (2015-02-03 18:09:34 UTC) #17
sadrul
lgtm
5 years, 10 months ago (2015-02-03 18:10:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889403003/80001
5 years, 10 months ago (2015-02-03 19:34:14 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:80001)
5 years, 10 months ago (2015-02-03 20:33:35 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/b726eb10541ccd17e678202bc7e502feb0854742 Cr-Commit-Position: refs/heads/master@{#314400}
5 years, 10 months ago (2015-02-03 20:35:27 UTC) #22
spang
https://codereview.chromium.org/889403003/diff/80001/ui/events/ozone/evdev/event_factory_evdev.cc File ui/events/ozone/evdev/event_factory_evdev.cc (left): https://codereview.chromium.org/889403003/diff/80001/ui/events/ozone/evdev/event_factory_evdev.cc#oldcode255 ui/events/ozone/evdev/event_factory_evdev.cc:255: // There's no list of mice in DeviceDataManager. Just ...
5 years, 10 months ago (2015-02-03 20:43:23 UTC) #23
pkotwicz
5 years, 10 months ago (2015-02-04 03:33:42 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/889403003/diff/80001/ui/events/ozone/evdev/ev...
File ui/events/ozone/evdev/event_factory_evdev.cc (left):

https://codereview.chromium.org/889403003/diff/80001/ui/events/ozone/evdev/ev...
ui/events/ozone/evdev/event_factory_evdev.cc:255: // There's no list of mice in
DeviceDataManager.
There still isn't a list of mice in DeviceDataManager. However, it probably
should have a list and we should check whether it has changed in
DeviceDataManager::OnMouseDevicesUpdated() for consistency

Powered by Google App Engine
This is Rietveld 408576698