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

Side by Side Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 webViewImpl->resize(WebSize(pageWidth, pageHeight)); 219 webViewImpl->resize(WebSize(pageWidth, pageHeight));
220 webViewImpl->updateAllLifecyclePhases(); 220 webViewImpl->updateAllLifecyclePhases();
221 221
222 WebGestureEvent touchEvent; 222 WebGestureEvent touchEvent;
223 touchEvent.x = 50; 223 touchEvent.x = 50;
224 touchEvent.y = 310; 224 touchEvent.y = 310;
225 touchEvent.data.tap.width = 30; 225 touchEvent.data.tap.width = 30;
226 touchEvent.data.tap.height = 30; 226 touchEvent.data.tap.height = 30;
227 227
228 Vector<IntRect> goodTargets; 228 Vector<IntRect> goodTargets;
229 WillBeHeapVector<RawPtrWillBeMember<Node>> highlightNodes; 229 HeapVector<Member<Node>> highlightNodes;
230 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent .y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data. tap.height); 230 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent .y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data. tap.height);
231 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo dTargets, highlightNodes); 231 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo dTargets, highlightNodes);
232 232
233 webViewImpl->enableTapHighlights(highlightNodes); 233 webViewImpl->enableTapHighlights(highlightNodes);
234 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); 234 EXPECT_EQ(2U, webViewImpl->numLinkHighlights());
235 235
236 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); 236 Platform::current()->unitTestSupport()->unregisterAllMockedURLs();
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698