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

Side by Side Diff: Source/core/inspector/InspectorInputAgent.cpp

Issue 1192563002: Pass real tilt information to PointerEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Spelling, passing expected.txt Created 5 years, 4 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
« no previous file with comments | « Source/core/input/EventHandler.cpp ('k') | Source/platform/PlatformTouchPoint.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "platform/geometry/IntRect.h" 45 #include "platform/geometry/IntRect.h"
46 #include "platform/geometry/IntSize.h" 46 #include "platform/geometry/IntSize.h"
47 #include "wtf/CurrentTime.h" 47 #include "wtf/CurrentTime.h"
48 48
49 namespace { 49 namespace {
50 50
51 class SyntheticInspectorTouchPoint : public blink::PlatformTouchPoint { 51 class SyntheticInspectorTouchPoint : public blink::PlatformTouchPoint {
52 public: 52 public:
53 SyntheticInspectorTouchPoint(int id, State state, const blink::IntPoint& scr eenPos, const blink::IntPoint& pos, int radiusX, int radiusY, double rotationAng le, double force) 53 SyntheticInspectorTouchPoint(int id, State state, const blink::IntPoint& scr eenPos, const blink::IntPoint& pos, int radiusX, int radiusY, double rotationAng le, double force)
54 { 54 {
55 m_id = id; 55 m_pointerProperties.id = id;
56 m_screenPos = screenPos; 56 m_screenPos = screenPos;
57 m_pos = pos; 57 m_pos = pos;
58 m_state = state; 58 m_state = state;
59 m_radius = blink::FloatSize(radiusX, radiusY); 59 m_radius = blink::FloatSize(radiusX, radiusY);
60 m_rotationAngle = rotationAngle; 60 m_rotationAngle = rotationAngle;
61 m_force = force; 61 m_pointerProperties.force = force;
62 } 62 }
63 }; 63 };
64 64
65 class SyntheticInspectorTouchEvent : public blink::PlatformTouchEvent { 65 class SyntheticInspectorTouchEvent : public blink::PlatformTouchEvent {
66 public: 66 public:
67 SyntheticInspectorTouchEvent(const blink::PlatformEvent::Type type, unsigned modifiers, double timestamp) 67 SyntheticInspectorTouchEvent(const blink::PlatformEvent::Type type, unsigned modifiers, double timestamp)
68 { 68 {
69 m_type = type; 69 m_type = type;
70 m_modifiers = modifiers; 70 m_modifiers = modifiers;
71 m_timestamp = timestamp; 71 m_timestamp = timestamp;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 DEFINE_TRACE(InspectorInputAgent) 185 DEFINE_TRACE(InspectorInputAgent)
186 { 186 {
187 visitor->trace(m_pageAgent); 187 visitor->trace(m_pageAgent);
188 InspectorBaseAgent::trace(visitor); 188 InspectorBaseAgent::trace(visitor);
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
192 192
OLDNEW
« no previous file with comments | « Source/core/input/EventHandler.cpp ('k') | Source/platform/PlatformTouchPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698