OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |