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

Side by Side Diff: ui/events/mojo/event_struct_traits.cc

Issue 2647253002: Add tangentialPressure and twist properties to PointerEvent on Windows (Closed)
Patch Set: rotation Created 3 years, 10 months 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mojo/event_struct_traits.h" 5 #include "ui/events/mojo/event_struct_traits.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/events/event_utils.h" 8 #include "ui/events/event_utils.h"
9 #include "ui/events/keycodes/dom/keycode_converter.h" 9 #include "ui/events/keycodes/dom/keycode_converter.h"
10 #include "ui/events/mojo/event_constants.mojom.h" 10 #include "ui/events/mojo/event_constants.mojom.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 case ui::mojom::PointerKind::TOUCH: { 288 case ui::mojom::PointerKind::TOUCH: {
289 out->reset(new ui::PointerEvent( 289 out->reset(new ui::PointerEvent(
290 MojoPointerEventTypeToUIEvent(event.action()), location, 290 MojoPointerEventTypeToUIEvent(event.action()), location,
291 screen_location, event.flags(), pointer_data->pointer_id, 291 screen_location, event.flags(), pointer_data->pointer_id,
292 pointer_data->changed_button_flags, 292 pointer_data->changed_button_flags,
293 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH, 293 ui::PointerDetails(ui::EventPointerType::POINTER_TYPE_TOUCH,
294 pointer_data->brush_data->width, 294 pointer_data->brush_data->width,
295 pointer_data->brush_data->height, 295 pointer_data->brush_data->height,
296 pointer_data->brush_data->pressure, 296 pointer_data->brush_data->pressure,
297 pointer_data->brush_data->tilt_x, 297 pointer_data->brush_data->tilt_x,
298 pointer_data->brush_data->tilt_y), 298 pointer_data->brush_data->tilt_y, 0.0f, 0),
299 ui::EventTimeForNow())); 299 ui::EventTimeForNow()));
300 return true; 300 return true;
301 } 301 }
302 case ui::mojom::PointerKind::PEN: 302 case ui::mojom::PointerKind::PEN:
303 NOTIMPLEMENTED(); 303 NOTIMPLEMENTED();
304 return false; 304 return false;
305 } 305 }
306 } 306 }
307 case ui::mojom::EventType::UNKNOWN: 307 case ui::mojom::EventType::UNKNOWN:
308 return false; 308 return false;
309 } 309 }
310 310
311 return false; 311 return false;
312 } 312 }
313 313
314 } // namespace mojo 314 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698