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, |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
31 #include "wtf/ListHashSet.h" | 31 #include "wtf/ListHashSet.h" |
32 #include "wtf/OwnPtr.h" | 32 #include "wtf/OwnPtr.h" |
33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class FloatRoundedRect; | 37 class FloatRoundedRect; |
38 | 38 |
39 class CORE_EXPORT HitTestLocation { | 39 class CORE_EXPORT HitTestLocation { |
40 DISALLOW_ALLOCATION(); | 40 DISALLOW_NEW(); |
41 public: | 41 public: |
42 | 42 |
43 // 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 |
44 // document that is being hit tested. | 44 // document that is being hit tested. |
45 HitTestLocation(); | 45 HitTestLocation(); |
46 HitTestLocation(const LayoutPoint&); | 46 HitTestLocation(const LayoutPoint&); |
47 HitTestLocation(const FloatPoint&); | 47 HitTestLocation(const FloatPoint&); |
48 HitTestLocation(const FloatPoint&, const FloatQuad&); | 48 HitTestLocation(const FloatPoint&, const FloatQuad&); |
49 // 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. |
50 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... |
87 FloatPoint m_transformedPoint; | 87 FloatPoint m_transformedPoint; |
88 FloatQuad m_transformedRect; | 88 FloatQuad m_transformedRect; |
89 | 89 |
90 bool m_isRectBased; | 90 bool m_isRectBased; |
91 bool m_isRectilinear; | 91 bool m_isRectilinear; |
92 }; | 92 }; |
93 | 93 |
94 } // namespace blink | 94 } // namespace blink |
95 | 95 |
96 #endif // HitTestLocation_h | 96 #endif // HitTestLocation_h |
OLD | NEW |