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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 class PositionWithAffinity; | 46 class PositionWithAffinity; |
47 class Scrollbar; | 47 class Scrollbar; |
48 | 48 |
49 class HitTestResult { | 49 class HitTestResult { |
50 DISALLOW_ALLOCATION(); | 50 DISALLOW_ALLOCATION(); |
51 public: | 51 public: |
52 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node> > NodeSet; | 52 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node> > NodeSet; |
53 | 53 |
54 HitTestResult(); | 54 HitTestResult(); |
55 HitTestResult(const LayoutPoint&); | 55 HitTestResult(const LayoutPoint&); |
56 // Pass non-negative padding values to perform a rect-based hit test. | 56 // Pass positive padding values to perform a rect-based hit test. |
57 HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding, unsigned
rightPadding, unsigned bottomPadding, unsigned leftPadding); | 57 HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding, unsigned
rightPadding, unsigned bottomPadding, unsigned leftPadding); |
58 HitTestResult(const HitTestLocation&); | 58 HitTestResult(const HitTestLocation&); |
59 HitTestResult(const HitTestResult&); | 59 HitTestResult(const HitTestResult&); |
60 ~HitTestResult(); | 60 ~HitTestResult(); |
61 HitTestResult& operator=(const HitTestResult&); | 61 HitTestResult& operator=(const HitTestResult&); |
62 void trace(Visitor*); | 62 void trace(Visitor*); |
63 | 63 |
64 // For point-based hit tests, these accessors provide information about the
node | 64 // For point-based hit tests, these accessors provide information about the
node |
65 // under the point. For rect-based hit tests they are meaningless (reflect t
he | 65 // under the point. For rect-based hit tests they are meaningless (reflect t
he |
66 // last candidate node observed in the rect). | 66 // last candidate node observed in the rect). |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 RefPtr<Scrollbar> m_scrollbar; | 156 RefPtr<Scrollbar> m_scrollbar; |
157 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderWidget for example). | 157 bool m_isOverWidget; // Returns true if we are over a widget (and not in the
border/padding area of a RenderWidget for example). |
158 bool m_isFirstLetter; | 158 bool m_isFirstLetter; |
159 | 159 |
160 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; | 160 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; |
161 }; | 161 }; |
162 | 162 |
163 } // namespace blink | 163 } // namespace blink |
164 | 164 |
165 #endif // HitTestResult_h | 165 #endif // HitTestResult_h |
OLD | NEW |