/external/chromium_org/ash/touch/ |
H A D | touch_hud_debug.cc | 5 #include "ash/touch/touch_hud_debug.h" 97 // A TouchPointLog represents a single touch-event of a touch point. 100 explicit TouchPointLog(const ui::TouchEvent& touch) argument 101 : id(touch.touch_id()), 102 type(touch.type()), 103 location(touch.root_location()), 104 timestamp(touch.time_stamp().InMillisecondsF()), 105 radius_x(touch.radius_x()), 106 radius_y(touch 154 AddTouchPoint(const ui::TouchEvent& touch) argument 189 AddTouchPoint(const ui::TouchEvent& touch) argument 219 StartTrace(const ui::TouchEvent& touch) argument 234 AddToTrace(const ui::TouchEvent& touch) argument [all...] |
H A D | touch_hud_projection.cc | 5 #include "ash/touch/touch_hud_projection.h" 26 // TouchPointView draws a single touch point. This object manages its own 56 void UpdateTouch(const ui::TouchEvent& touch) { argument 57 if (touch.type() == ui::ET_TOUCH_RELEASED || 58 touch.type() == ui::ET_TOUCH_CANCELLED) { 64 SetX(parent()->GetMirroredXInView(touch.root_location().x()) - 66 SetY(touch.root_location().y() - kPointRadius - 1); 158 // If a |TouchPointView| is already mapped to the touch id, remove it and
|
/external/chromium_org/content/browser/frame_host/ |
H A D | render_widget_host_view_child_frame.cc | 247 const TouchEventWithLatencyInfo& touch, 246 ProcessAckedTouchEvent( const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) argument
|
H A D | render_widget_host_view_guest.cc | 130 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { 132 // requested touch events. A better solution is to always forward touchpresses 134 // subsequent touch points of that touchdown to the appropriate guest until 135 // that touch point is released. 137 if (!MakeUITouchEventsFromWebTouchEvents(touch, &events, LOCAL_COORDINATES)) 129 ProcessAckedTouchEvent( const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) argument
|
/external/chromium_org/content/browser/renderer_host/input/ |
H A D | input_router_impl_perftest.cc | 143 WebTouchEvent touch; local 144 touch.touchesLength = 1; 145 touch.type = WebInputEvent::TouchStart; 146 touch.touches[0].id = 0; 147 touch.touches[0].state = WebTouchPoint::StatePressed; 148 touch.touches[0].position.x = origin.x(); 149 touch.touches[0].position.y = origin.y(); 150 touch.touches[0].screenPosition.x = origin.x(); 151 touch.touches[0].screenPosition.y = origin.y(); 152 touches.push_back(touch); 230 SendEvent(const WebTouchEvent& touch, const ui::LatencyInfo& latency) argument [all...] |
H A D | input_router_impl_unittest.cc | 63 static WebTouchEvent touch; local 64 event = &touch; 587 // Tests that touch-events are queued properly. 597 // The second touch should not be sent since one is already in queue. 604 // Receive an ACK for the first touch-event. 622 // Tests that the touch-queue is emptied after a page stops listening for touch 632 // Send a touch-press event. 640 // The page stops listening for touch-events. Note that flushing is deferred 648 // After the ack, the touch [all...] |
H A D | touch_event_queue.cc | 62 // Cancels a touch sequence if a touchstart or touchmove ack response is 202 // How long to wait on a touch ack before cancelling the touch sequence. 205 // The touch event source for which we expect the next ack. 218 // Provides touchmove slop suppression for a single touch that remains within 278 // This class represents a single coalesced touch event. However, it also keeps 279 // track of all the original touch-events that were coalesced into a single 281 // touch-events are sent to the Client (on ACK for the coalesced event) so that 402 // Optimization of the case without touch handlers. Removing this path 413 // There is no touch even 475 TouchEventWithLatencyInfo touch = touch_queue_.front()->coalesced_event(); local 704 SendTouchEventImmediately( const TouchEventWithLatencyInfo& touch) argument [all...] |
H A D | touch_input_browsertest.cc | 178 SyntheticWebTouchEvent touch; local 181 // no touch-handler on it. 182 touch.PressPoint(25, 25); 183 GetWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo()); 189 // If a touch-press is acked with NO_CONSUMER_EXISTS, then subsequent 190 // touch-points don't need to be dispatched until the touch point is released. 191 touch.ReleasePoint(0); 192 GetWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo()); 193 touch 198 SyntheticWebTouchEvent touch; local 215 SyntheticWebTouchEvent touch; local 237 SyntheticWebTouchEvent touch; local [all...] |
H A D | web_input_event_util.cc | 188 WebTouchPoint touch; local 189 touch.id = event.GetPointerId(pointer_index); 190 touch.state = ToWebTouchPointState( 193 touch.position.x = event.GetX(pointer_index); 194 touch.position.y = event.GetY(pointer_index); 195 touch.screenPosition.x = event.GetRawX(pointer_index); 196 touch.screenPosition.y = event.GetRawY(pointer_index); 198 // A note on touch ellipse specifications: 200 // Android MotionEvent provides the major and minor axes of the touch ellipse, 205 // The proposed extension to W3C Touch Events specifies the touch ellips [all...] |
/external/chromium_org/content/browser/renderer_host/ |
H A D | render_widget_host_view_android.cc | 720 // This is good enough as long as the first touch event has Begin semantics 1394 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { 1393 ProcessAckedTouchEvent( const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) argument
|
H A D | render_widget_host_view_aura.cc | 1172 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { 1174 if (!MakeUITouchEventsFromWebTouchEvents(touch, &events, 2052 // Update the touch event first. 2056 // Forward the touch event only if a touch point was updated, and there's a 2057 // touch-event handler in the page, and no other touch-event is in the queue. 2058 // It is important to always consume the event if there is a touch-event 2059 // handler in the page, or some touch-event is already in the queue, even if 1171 ProcessAckedTouchEvent( const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) argument
|
H A D | render_widget_host_view_base.h | 174 // prevent-default on a dispatched touch event, the touch events are queued in 178 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, argument 253 // indicates the direction at which the selection was made on touch devices.
|
H A D | ui_events_helper.cc | 100 const blink::WebTouchEvent& touch = touch_with_latency.event; local 102 switch (touch.type) { 120 int flags = WebModifiersToUIFlags(touch.modifiers); 122 static_cast<int64>(touch.timeStampSeconds * 1000000)); 123 for (unsigned i = 0; i < touch.touchesLength; ++i) { 124 const blink::WebTouchPoint& point = touch.touches[i]; 252 // Add a new touch point. 261 // The touch point should have been added to the event from an earlier 263 // At the moment, only a maximum of 4 touch-points are allowed. So a 274 DLOG(WARNING) << "Unknown touch even [all...] |
/external/chromium_org/content/browser/web_contents/ |
H A D | web_contents_view_aura_browsertest.cc | 925 // Tests that touch moves are not throttled when performing a scroll gesture on 951 // Send touch press. 952 SyntheticWebTouchEvent touch; local 953 touch.PressPoint(bounds.x() + 2, bounds.y() + 10); 954 GetRenderWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, 963 // Send first touch move, and then a scroll begin. 964 touch.MovePoint(0, bounds.x() + 20 + 1 * dx, bounds.y() + 100); 965 GetRenderWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, 979 // Send a touch move, followed by a scroll update 980 touch [all...] |
/external/chromium_org/content/common/input/ |
H A D | input_event_stream_validator.cc | 42 const WebTouchEvent& touch = static_cast<const WebTouchEvent&>(event); local 43 return touch_validator_.Validate(touch, error_msg);
|
H A D | web_input_event_traits_unittest.cc | 24 WebTouchPoint touch; local 25 touch.state = state; 26 touch.id = id; 27 return touch; 57 // Non touch-moves won't coalesce. 63 // Touch moves with idential touch lengths and touch ids should coalesce. 66 // Touch moves with different touch ids should not coalesce. 77 // Touch moves with different touch lengths should not coalesce. 82 // Touch moves with identical touch id [all...] |
/external/chromium_org/content/renderer/input/ |
H A D | input_handler_proxy_unittest.cc | 144 // touch any member variables after making that call. 1422 // None of the three touch points fall in the touch region. So the event 1436 WebTouchEvent touch; local 1437 touch.type = WebInputEvent::TouchStart; 1439 touch.touchesLength = 3; 1440 touch.touches[0] = CreateWebTouchPoint(WebTouchPoint::StateStationary, 0, 0); 1441 touch.touches[1] = CreateWebTouchPoint(WebTouchPoint::StatePressed, 10, 10); 1442 touch.touches[2] = CreateWebTouchPoint(WebTouchPoint::StatePressed, -10, 10); 1443 EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(touch)); 1463 WebTouchEvent touch; local [all...] |
/external/chromium_org/content/renderer/pepper/ |
H A D | event_conversion_unittest.cc | 41 SyntheticWebTouchEvent touch; local 42 touch.PressPoint(1.f, 2.f); 45 CreateInputEventData(touch, &pp_events); 58 EXPECT_EQ(touch.type, touch_out->type); 59 EXPECT_EQ(touch.touchesLength, touch_out->touchesLength); 60 CompareWebTouchEvents(touch, *touch_out); 64 SyntheticWebTouchEvent touch; local 65 touch.PressPoint(1.f, 2.f); 66 touch.ResetPoints(); 67 touch 91 SyntheticWebTouchEvent touch; local 118 SyntheticWebTouchEvent touch; local [all...] |
/external/chromium_org/content/renderer/ |
H A D | render_widget_unittest.cc | 80 SyntheticWebTouchEvent touch; local 81 touch.PressPoint(10, 10); 83 widget->SendInputEvent(touch); 86 // Since there's currently no touch-event handling region, the response should 101 widget->SendInputEvent(touch); 118 SyntheticWebTouchEvent touch; local 119 touch.PressPoint(25, 25); 121 widget->SendInputEvent(touch); 124 // Since there's currently no touch-event handling region, the response should 134 // Press a second touch poin [all...] |
/external/chromium_org/content/shell/renderer/test_runner/ |
H A D | test_plugin.cc | 99 const blink::WebTouchEvent& touch = local 101 PrintTouchList(delegate, touch.touches, touch.touchesLength); 159 blink::WebString, kAttributeAcceptsTouch, ("accepts-touch")); 161 blink::WebString, kAttributeReRequestTouchEvents, ("re-request-touch"));
|
/external/chromium_org/native_client_sdk/src/examples/demo/life/ |
H A D | life.c | 131 struct PP_TouchPoint touch = g_pTouchInput->GetTouchByIndex( local 133 int radius = (int)touch.radius.x; 134 int x = (int)touch.position.x; 135 int y = (int)touch.position.y; 136 /* num = 1/100th the area of touch point */ 141 /* only plot random cells within the touch area */
|
/external/chromium_org/native_client_sdk/src/examples/demo/life_simd/ |
H A D | life.cc | 200 pp::TouchPoint touch = local 202 int radius = (int)(touch.radii().x()); 203 int x = (int)(touch.position().x()); 204 int y = (int)(touch.position().y()); 205 // num = 1/100th the area of touch point 210 // only plot random cells within the touch area
|
/external/chromium_org/native_client_sdk/src/examples/demo/voronoi/ |
H A D | voronoi.cc | 458 pp::TouchPoint touch = local 460 pp::FloatPoint point = touch.position();
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/life/ |
H A D | life.c | 138 struct PP_TouchPoint touch = g_pTouchInput->GetTouchByIndex( local 140 int radius = (int)touch.radius.x; 141 int x = (int)touch.position.x; 142 int y = (int)touch.position.y; 143 /* num = 1/100th the area of touch point */ 148 /* only plot random cells within the touch area */
|
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/voronoi/ |
H A D | voronoi.cc | 429 pp::TouchPoint touch = local 431 pp::FloatPoint point = touch.position();
|