| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 EXPECT_EQ(10, webGestureBuilder.x); | 268 EXPECT_EQ(10, webGestureBuilder.x); |
| 269 EXPECT_EQ(10, webGestureBuilder.y); | 269 EXPECT_EQ(10, webGestureBuilder.y); |
| 270 EXPECT_EQ(10, webGestureBuilder.globalX); | 270 EXPECT_EQ(10, webGestureBuilder.globalX); |
| 271 EXPECT_EQ(10, webGestureBuilder.globalY); | 271 EXPECT_EQ(10, webGestureBuilder.globalY); |
| 272 EXPECT_EQ(10, webGestureBuilder.data.scrollUpdate.deltaX); | 272 EXPECT_EQ(10, webGestureBuilder.data.scrollUpdate.deltaX); |
| 273 EXPECT_EQ(10, webGestureBuilder.data.scrollUpdate.deltaY); | 273 EXPECT_EQ(10, webGestureBuilder.data.scrollUpdate.deltaY); |
| 274 } | 274 } |
| 275 | 275 |
| 276 { | 276 { |
| 277 RefPtr<Touch> touch = Touch::create(webViewImpl->page()->mainFrame(), do
cument.get(), 0, 10, 10, 10, 10, 10, 10, 0, 0); | 277 RefPtrWillBeRawPtr<Touch> touch = Touch::create(webViewImpl->page()->mai
nFrame(), document.get(), 0, 10, 10, 10, 10, 10, 10, 0, 0); |
| 278 RefPtr<TouchList> touchList = TouchList::create(); | 278 RefPtrWillBeRawPtr<TouchList> touchList = TouchList::create(); |
| 279 touchList->append(touch); | 279 touchList->append(touch); |
| 280 RefPtr<TouchEvent> touchEvent = TouchEvent::create(touchList.get(), touc
hList.get(), touchList.get(), WebCore::EventTypeNames::touchmove, domWindow, 10,
10, 10, 10, false, false, false, false); | 280 RefPtr<TouchEvent> touchEvent = TouchEvent::create(touchList.get(), touc
hList.get(), touchList.get(), WebCore::EventTypeNames::touchmove, domWindow, 10,
10, 10, 10, false, false, false, false); |
| 281 | 281 |
| 282 WebTouchEventBuilder webTouchBuilder(view, docRenderer, *touchEvent); | 282 WebTouchEventBuilder webTouchBuilder(view, docRenderer, *touchEvent); |
| 283 ASSERT_EQ(1u, webTouchBuilder.touchesLength); | 283 ASSERT_EQ(1u, webTouchBuilder.touchesLength); |
| 284 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.x); | 284 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.x); |
| 285 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.y); | 285 EXPECT_EQ(10, webTouchBuilder.touches[0].screenPosition.y); |
| 286 EXPECT_EQ(10, webTouchBuilder.touches[0].position.x); | 286 EXPECT_EQ(10, webTouchBuilder.touches[0].position.x); |
| 287 EXPECT_EQ(10, webTouchBuilder.touches[0].position.y); | 287 EXPECT_EQ(10, webTouchBuilder.touches[0].position.y); |
| 288 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusX); | 288 EXPECT_EQ(10, webTouchBuilder.touches[0].radiusX); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 EXPECT_EQ(webGestureEvent.type, recreatedWebGestureEvent.type); | 479 EXPECT_EQ(webGestureEvent.type, recreatedWebGestureEvent.type); |
| 480 EXPECT_EQ(webGestureEvent.x, recreatedWebGestureEvent.x); | 480 EXPECT_EQ(webGestureEvent.x, recreatedWebGestureEvent.x); |
| 481 EXPECT_EQ(webGestureEvent.y, recreatedWebGestureEvent.y); | 481 EXPECT_EQ(webGestureEvent.y, recreatedWebGestureEvent.y); |
| 482 EXPECT_EQ(webGestureEvent.globalX, recreatedWebGestureEvent.globalX); | 482 EXPECT_EQ(webGestureEvent.globalX, recreatedWebGestureEvent.globalX); |
| 483 EXPECT_EQ(webGestureEvent.globalY, recreatedWebGestureEvent.globalY); | 483 EXPECT_EQ(webGestureEvent.globalY, recreatedWebGestureEvent.globalY); |
| 484 EXPECT_EQ(webGestureEvent.data.tap.tapCount, recreatedWebGestureEvent.da
ta.tap.tapCount); | 484 EXPECT_EQ(webGestureEvent.data.tap.tapCount, recreatedWebGestureEvent.da
ta.tap.tapCount); |
| 485 } | 485 } |
| 486 } | 486 } |
| 487 | 487 |
| 488 } // anonymous namespace | 488 } // anonymous namespace |
| OLD | NEW |