| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 : WebTouchPoint::StateCancelled); | 382 : WebTouchPoint::StateCancelled); |
| 383 webTouchEvent.touches[0].id = kfakeTouchId; | 383 webTouchEvent.touches[0].id = kfakeTouchId; |
| 384 webTouchEvent.touches[0].screenPosition.x = clientPoint.x(); | 384 webTouchEvent.touches[0].screenPosition.x = clientPoint.x(); |
| 385 webTouchEvent.touches[0].screenPosition.y = clientPoint.y(); | 385 webTouchEvent.touches[0].screenPosition.y = clientPoint.y(); |
| 386 webTouchEvent.touches[0].position.x = clientPoint.x(); | 386 webTouchEvent.touches[0].position.x = clientPoint.x(); |
| 387 webTouchEvent.touches[0].position.y = clientPoint.y(); | 387 webTouchEvent.touches[0].position.y = clientPoint.y(); |
| 388 webTouchEvent.touches[0].radiusX = 10; | 388 webTouchEvent.touches[0].radiusX = 10; |
| 389 webTouchEvent.touches[0].radiusY = 10; | 389 webTouchEvent.touches[0].radiusY = 10; |
| 390 webTouchEvent.touches[0].force = 1.0; | 390 webTouchEvent.touches[0].force = 1.0; |
| 391 | 391 |
| 392 webView->handleInputEvent(webTouchEvent); | 392 webView->handleInputEvent(WebCoalescedInputEvent(webTouchEvent)); |
| 393 runPendingTasks(); | 393 runPendingTasks(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 // crbug.com/411038 | 396 // crbug.com/411038 |
| 397 TEST_F(TouchActionTest, Simple) { | 397 TEST_F(TouchActionTest, Simple) { |
| 398 runTouchActionTest("touch-action-simple.html"); | 398 runTouchActionTest("touch-action-simple.html"); |
| 399 } | 399 } |
| 400 | 400 |
| 401 TEST_F(TouchActionTest, Overflow) { | 401 TEST_F(TouchActionTest, Overflow) { |
| 402 runTouchActionTest("touch-action-overflow.html"); | 402 runTouchActionTest("touch-action-overflow.html"); |
| 403 } | 403 } |
| 404 | 404 |
| 405 TEST_F(TouchActionTest, IFrame) { | 405 TEST_F(TouchActionTest, IFrame) { |
| 406 runIFrameTest("touch-action-iframe.html"); | 406 runIFrameTest("touch-action-iframe.html"); |
| 407 } | 407 } |
| 408 | 408 |
| 409 TEST_F(TouchActionTest, ShadowDOM) { | 409 TEST_F(TouchActionTest, ShadowDOM) { |
| 410 runShadowDOMTest("touch-action-shadow-dom.html"); | 410 runShadowDOMTest("touch-action-shadow-dom.html"); |
| 411 } | 411 } |
| 412 | 412 |
| 413 TEST_F(TouchActionTest, Pan) { | 413 TEST_F(TouchActionTest, Pan) { |
| 414 runTouchActionTest("touch-action-pan.html"); | 414 runTouchActionTest("touch-action-pan.html"); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace blink | 417 } // namespace blink |
| OLD | NEW |