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

Side by Side Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/events/ozone/evdev/event_factory_evdev.h" 5 #include "ui/events/ozone/evdev/event_factory_evdev.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <linux/input.h> 8 #include <linux/input.h>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 true); 277 true);
278 } 278 }
279 } 279 }
280 280
281 void EventFactoryEvdev::WarpCursorTo(gfx::AcceleratedWidget widget, 281 void EventFactoryEvdev::WarpCursorTo(gfx::AcceleratedWidget widget,
282 const gfx::PointF& location) { 282 const gfx::PointF& location) {
283 if (cursor_) { 283 if (cursor_) {
284 cursor_->MoveCursorTo(widget, location); 284 cursor_->MoveCursorTo(widget, location);
285 PostUiEvent(make_scoped_ptr(new MouseEvent(ET_MOUSE_MOVED, 285 PostUiEvent(make_scoped_ptr(new MouseEvent(ET_MOUSE_MOVED,
286 cursor_->location(), 286 cursor_->location(),
287 cursor_->location(), 287 cursor_->root_location(),
288 modifiers_.GetModifierFlags(), 288 modifiers_.GetModifierFlags(),
289 /* changed_button_flags */ 0))); 289 /* changed_button_flags */ 0)));
290 } 290 }
291 } 291 }
292 292
293 void EventFactoryEvdev::NotifyHotplugEventObserver( 293 void EventFactoryEvdev::NotifyHotplugEventObserver(
294 const EventConverterEvdev& converter) { 294 const EventConverterEvdev& converter) {
295 // For now the only information propagated is related to touchscreens. Ignore 295 // For now the only information propagated is related to touchscreens. Ignore
296 // events for everything but touchscreens. 296 // events for everything but touchscreens.
297 if (!converter.HasTouchscreen()) 297 if (!converter.HasTouchscreen())
(...skipping 16 matching lines...) Expand all
314 } 314 }
315 315
316 observer->OnTouchscreenDevicesUpdated(touchscreens); 316 observer->OnTouchscreenDevicesUpdated(touchscreens);
317 } 317 }
318 318
319 int EventFactoryEvdev::NextDeviceId() { 319 int EventFactoryEvdev::NextDeviceId() {
320 return ++last_device_id_; 320 return ++last_device_id_;
321 } 321 }
322 322
323 } // namespace ui 323 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698