Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: Source/web/tests/WebInputEventConversionTest.cpp

Issue 185413023: Oilpan: move Touch related objects to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid MSVC local class member function restriction Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698