| 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 28 matching lines...) Expand all Loading... |
| 39 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 40 #include "platform/JSONValues.h" | 40 #include "platform/JSONValues.h" |
| 41 #include "platform/PlatformKeyboardEvent.h" | 41 #include "platform/PlatformKeyboardEvent.h" |
| 42 #include "platform/PlatformMouseEvent.h" | 42 #include "platform/PlatformMouseEvent.h" |
| 43 #include "platform/PlatformTouchEvent.h" | 43 #include "platform/PlatformTouchEvent.h" |
| 44 #include "platform/PlatformTouchPoint.h" | 44 #include "platform/PlatformTouchPoint.h" |
| 45 #include "platform/geometry/IntPoint.h" | 45 #include "platform/geometry/IntPoint.h" |
| 46 #include "platform/geometry/IntRect.h" | 46 #include "platform/geometry/IntRect.h" |
| 47 #include "platform/geometry/IntSize.h" | 47 #include "platform/geometry/IntSize.h" |
| 48 #include "wtf/CurrentTime.h" | 48 #include "wtf/CurrentTime.h" |
| 49 #include "wtf/text/WTFString.h" | |
| 50 | 49 |
| 51 namespace { | 50 namespace { |
| 52 | 51 |
| 53 class SyntheticInspectorTouchPoint : public WebCore::PlatformTouchPoint { | 52 class SyntheticInspectorTouchPoint : public WebCore::PlatformTouchPoint { |
| 54 public: | 53 public: |
| 55 SyntheticInspectorTouchPoint(unsigned id, State state, const WebCore::IntPoi
nt& screenPos, const WebCore::IntPoint& pos, int radiusX, int radiusY, double ro
tationAngle, double force) | 54 SyntheticInspectorTouchPoint(unsigned id, State state, const WebCore::IntPoi
nt& screenPos, const WebCore::IntPoint& pos, int radiusX, int radiusY, double ro
tationAngle, double force) |
| 56 { | 55 { |
| 57 m_id = id; | 56 m_id = id; |
| 58 m_screenPos = screenPos; | 57 m_screenPos = screenPos; |
| 59 m_pos = pos; | 58 m_pos = pos; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 m_page->mainFrame()->eventHandler().handleTouchEvent(event); | 271 m_page->mainFrame()->eventHandler().handleTouchEvent(event); |
| 273 } | 272 } |
| 274 | 273 |
| 275 void InspectorInputAgent::dispatchGestureEvent(ErrorString*, const String& type,
int x, int y, const double* timestamp, const int* deltaX, const int* deltaY, co
nst double* scale) | 274 void InspectorInputAgent::dispatchGestureEvent(ErrorString*, const String& type,
int x, int y, const double* timestamp, const int* deltaX, const int* deltaY, co
nst double* scale) |
| 276 { | 275 { |
| 277 // Handled on the browser level. | 276 // Handled on the browser level. |
| 278 } | 277 } |
| 279 | 278 |
| 280 } // namespace WebCore | 279 } // namespace WebCore |
| 281 | 280 |
| OLD | NEW |