| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef HitTestLocation_h | 22 #ifndef HitTestLocation_h |
| 23 #define HitTestLocation_h | 23 #define HitTestLocation_h |
| 24 | 24 |
| 25 #include "core/CoreExport.h" | 25 #include "core/CoreExport.h" |
| 26 #include "platform/geometry/FloatQuad.h" | 26 #include "platform/geometry/FloatQuad.h" |
| 27 #include "platform/geometry/FloatRect.h" | 27 #include "platform/geometry/FloatRect.h" |
| 28 #include "platform/geometry/LayoutRect.h" | 28 #include "platform/geometry/LayoutRect.h" |
| 29 #include "wtf/Allocator.h" |
| 29 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
| 30 #include "wtf/ListHashSet.h" | 31 #include "wtf/ListHashSet.h" |
| 31 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
| 32 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 | 36 |
| 36 class FloatRoundedRect; | 37 class FloatRoundedRect; |
| 37 | 38 |
| 38 class CORE_EXPORT HitTestLocation { | 39 class CORE_EXPORT HitTestLocation { |
| 40 DISALLOW_ALLOCATION(); |
| 39 public: | 41 public: |
| 40 | 42 |
| 41 // Note that all points are in contents (aka "page") coordinate space for th
e | 43 // Note that all points are in contents (aka "page") coordinate space for th
e |
| 42 // document that is being hit tested. | 44 // document that is being hit tested. |
| 43 HitTestLocation(); | 45 HitTestLocation(); |
| 44 HitTestLocation(const LayoutPoint&); | 46 HitTestLocation(const LayoutPoint&); |
| 45 HitTestLocation(const FloatPoint&); | 47 HitTestLocation(const FloatPoint&); |
| 46 HitTestLocation(const FloatPoint&, const FloatQuad&); | 48 HitTestLocation(const FloatPoint&, const FloatQuad&); |
| 47 // Pass non-zero padding values to perform a rect-based hit test. | 49 // Pass non-zero padding values to perform a rect-based hit test. |
| 48 HitTestLocation(const LayoutPoint& centerPoint, unsigned topPadding, unsigne
d rightPadding, unsigned bottomPadding, unsigned leftPadding); | 50 HitTestLocation(const LayoutPoint& centerPoint, unsigned topPadding, unsigne
d rightPadding, unsigned bottomPadding, unsigned leftPadding); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 FloatPoint m_transformedPoint; | 87 FloatPoint m_transformedPoint; |
| 86 FloatQuad m_transformedRect; | 88 FloatQuad m_transformedRect; |
| 87 | 89 |
| 88 bool m_isRectBased; | 90 bool m_isRectBased; |
| 89 bool m_isRectilinear; | 91 bool m_isRectilinear; |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace blink | 94 } // namespace blink |
| 93 | 95 |
| 94 #endif // HitTestLocation_h | 96 #endif // HitTestLocation_h |
| OLD | NEW |