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