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

Unified Diff: ui/events/devices/x11/device_data_manager_x11.h

Issue 749063003: Fix grabbing capture when the mouse is pressed on Desktop Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/devices/x11/device_data_manager_x11.h
diff --git a/ui/events/devices/x11/device_data_manager_x11.h b/ui/events/devices/x11/device_data_manager_x11.h
index ec580cbd4ddc77fbc51c22771f63e3e9a7fb175f..dd2d3cf9dc7b2cda3e36d168aac45dee4d98712c 100644
--- a/ui/events/devices/x11/device_data_manager_x11.h
+++ b/ui/events/devices/x11/device_data_manager_x11.h
@@ -239,6 +239,10 @@ class EVENTS_DEVICES_EXPORT DeviceDataManagerX11 : public DeviceDataManager {
// Returns true if |native_event| should be blocked.
bool IsEventBlocked(const base::NativeEvent& native_event);
+ const std::vector<int>& master_pointers() const {
+ return master_pointers_;
+ }
+
protected:
// DeviceHotplugEventObserver:
void OnKeyboardDevicesUpdated(
@@ -274,6 +278,9 @@ class EVENTS_DEVICES_EXPORT DeviceDataManagerX11 : public DeviceDataManager {
std::bitset<kMaxDeviceNum> cmt_devices_;
std::bitset<kMaxDeviceNum> touchpads_;
+ // List of the master pointer devices. Used for grabbing mouse capture.
sadrul 2014/12/22 21:08:59 Remove the second sentence. (let's not require fut
pkotwicz 2014/12/23 00:29:49 Done.
+ std::vector<int> master_pointers_;
+
// A quick lookup table for determining if events from the XI device
// should be blocked.
std::bitset<kMaxDeviceNum> blocked_devices_;

Powered by Google App Engine
This is Rietveld 408576698