| 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 | 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 Loading... |
| 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 |
| OLD | NEW |