| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 Node* node() const { return m_node; } | 56 Node* node() const { return m_node; } |
| 57 FloatQuad quad() const { return m_quad; } | 57 FloatQuad quad() const { return m_quad; } |
| 58 IntRect boundingBox() const { return m_quad.enclosingBoundingBox(); } | 58 IntRect boundingBox() const { return m_quad.enclosingBoundingBox(); } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 RawPtrWillBeMember<Node> m_node; | 61 RawPtrWillBeMember<Node> m_node; |
| 62 FloatQuad m_quad; | 62 FloatQuad m_quad; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } | 65 } // namespace TouchAdjustment |
| 66 | 66 |
| 67 } | 67 } // namespace blink |
| 68 | 68 |
| 69 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::TouchAdjustment::Subta
rgetGeometry) | 69 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::TouchAdjustment::Subta
rgetGeometry) |
| 70 | 70 |
| 71 namespace blink { | 71 namespace blink { |
| 72 | 72 |
| 73 namespace TouchAdjustment { | 73 namespace TouchAdjustment { |
| 74 | 74 |
| 75 typedef WillBeHeapVector<SubtargetGeometry> SubtargetGeometryList; | 75 typedef WillBeHeapVector<SubtargetGeometry> SubtargetGeometryList; |
| 76 typedef bool (*NodeFilter)(Node*); | 76 typedef bool (*NodeFilter)(Node*); |
| 77 typedef void (*AppendSubtargetsForNode)(Node*, SubtargetGeometryList&); | 77 typedef void (*AppendSubtargetsForNode)(Node*, SubtargetGeometryList&); |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 497 |
| 498 bool findBestZoomableArea(Node*& targetNode, IntRect& targetArea, const IntPoint
& touchHotspot, const IntRect& touchArea, const WillBeHeapVector<RefPtrWillBeMem
ber<Node>>& nodes) | 498 bool findBestZoomableArea(Node*& targetNode, IntRect& targetArea, const IntPoint
& touchHotspot, const IntRect& touchArea, const WillBeHeapVector<RefPtrWillBeMem
ber<Node>>& nodes) |
| 499 { | 499 { |
| 500 IntPoint targetPoint; | 500 IntPoint targetPoint; |
| 501 TouchAdjustment::SubtargetGeometryList subtargets; | 501 TouchAdjustment::SubtargetGeometryList subtargets; |
| 502 TouchAdjustment::compileZoomableSubtargets(nodes, subtargets); | 502 TouchAdjustment::compileZoomableSubtargets(nodes, subtargets); |
| 503 return TouchAdjustment::findNodeWithLowestDistanceMetric(targetNode, targetP
oint, targetArea, touchHotspot, touchArea, subtargets, TouchAdjustment::zoomable
IntersectionQuotient); | 503 return TouchAdjustment::findNodeWithLowestDistanceMetric(targetNode, targetP
oint, targetArea, touchHotspot, touchArea, subtargets, TouchAdjustment::zoomable
IntersectionQuotient); |
| 504 } | 504 } |
| 505 | 505 |
| 506 } // namespace blink | 506 } // namespace blink |
| OLD | NEW |