OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/window_tree_host_x11.h" | 5 #include "ui/aura/window_tree_host_x11.h" |
6 | 6 |
7 #include <strings.h> | 7 #include <strings.h> |
8 #include <X11/cursorfont.h> | 8 #include <X11/cursorfont.h> |
9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
10 #include <X11/extensions/Xrandr.h> | 10 #include <X11/extensions/Xrandr.h> |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 204 |
205 private: | 205 private: |
206 // ui::PlatformEventObserver: | 206 // ui::PlatformEventObserver: |
207 virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE { | 207 virtual void WillProcessEvent(const ui::PlatformEvent& event) OVERRIDE { |
208 #if defined(USE_XI2_MT) | 208 #if defined(USE_XI2_MT) |
209 if (event->type == GenericEvent && | 209 if (event->type == GenericEvent && |
210 (event->xgeneric.evtype == XI_TouchBegin || | 210 (event->xgeneric.evtype == XI_TouchBegin || |
211 event->xgeneric.evtype == XI_TouchUpdate || | 211 event->xgeneric.evtype == XI_TouchUpdate || |
212 event->xgeneric.evtype == XI_TouchEnd)) { | 212 event->xgeneric.evtype == XI_TouchEnd)) { |
213 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event->xcookie.data); | 213 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event->xcookie.data); |
214 LOG(ERROR) << "Raw " << xievent->event_x << " " << xievent->event_y | |
215 << " " << xievent->root_x << " " << xievent->root_y; | |
216 xievent->event = xievent->root; | 214 xievent->event = xievent->root; |
217 xievent->event_x = xievent->root_x; | 215 xievent->event_x = xievent->root_x; |
218 xievent->event_y = xievent->root_y; | 216 xievent->event_y = xievent->root_y; |
219 } | 217 } |
220 #endif // defined(USE_XI2_MT) | 218 #endif // defined(USE_XI2_MT) |
221 } | 219 } |
222 | 220 |
223 virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE {} | 221 virtual void DidProcessEvent(const ui::PlatformEvent& event) OVERRIDE {} |
224 | 222 |
225 // The difference in screen's native resolution pixels between | 223 // The difference in screen's native resolution pixels between |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 } | 721 } |
724 | 722 |
725 namespace test { | 723 namespace test { |
726 | 724 |
727 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { | 725 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { |
728 default_override_redirect = override_redirect; | 726 default_override_redirect = override_redirect; |
729 } | 727 } |
730 | 728 |
731 } // namespace test | 729 } // namespace test |
732 } // namespace aura | 730 } // namespace aura |
OLD | NEW |