| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 webViewImpl->resize(WebSize(pageWidth, pageHeight)); | 176 webViewImpl->resize(WebSize(pageWidth, pageHeight)); |
| 177 webViewImpl->layout(); | 177 webViewImpl->layout(); |
| 178 | 178 |
| 179 WebGestureEvent touchEvent; | 179 WebGestureEvent touchEvent; |
| 180 touchEvent.x = 50; | 180 touchEvent.x = 50; |
| 181 touchEvent.y = 310; | 181 touchEvent.y = 310; |
| 182 touchEvent.data.tap.width = 30; | 182 touchEvent.data.tap.width = 30; |
| 183 touchEvent.data.tap.height = 30; | 183 touchEvent.data.tap.height = 30; |
| 184 | 184 |
| 185 Vector<IntRect> goodTargets; | 185 Vector<IntRect> goodTargets; |
| 186 WillBeHeapVector<RawPtrWillBeMember<Node> > highlightNodes; | 186 WillBeHeapVector<RawPtrWillBeMember<Node>> highlightNodes; |
| 187 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent
.y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data.
tap.height); | 187 IntRect boundingBox(touchEvent.x - touchEvent.data.tap.width / 2, touchEvent
.y - touchEvent.data.tap.height / 2, touchEvent.data.tap.width, touchEvent.data.
tap.height); |
| 188 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo
dTargets, highlightNodes); | 188 findGoodTouchTargets(boundingBox, webViewImpl->mainFrameImpl()->frame(), goo
dTargets, highlightNodes); |
| 189 | 189 |
| 190 webViewImpl->enableTapHighlights(highlightNodes); | 190 webViewImpl->enableTapHighlights(highlightNodes); |
| 191 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); | 191 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); |
| 192 | 192 |
| 193 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); | 193 Platform::current()->unitTestSupport()->unregisterAllMockedURLs(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace | 196 } // namespace |
| OLD | NEW |