Chromium Code Reviews| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 const LayoutPoint& pointInMainFrame() const { return m_hitTestLocation.point (); } | 84 const LayoutPoint& pointInMainFrame() const { return m_hitTestLocation.point (); } |
| 85 IntPoint roundedPointInMainFrame() const { return roundedIntPoint(pointInMai nFrame()); } | 85 IntPoint roundedPointInMainFrame() const { return roundedIntPoint(pointInMai nFrame()); } |
| 86 | 86 |
| 87 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode. | 87 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode. |
| 88 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; } | 88 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; } |
| 89 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); } | 89 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); } |
| 90 LocalFrame* innerNodeFrame() const; | 90 LocalFrame* innerNodeFrame() const; |
| 91 | 91 |
| 92 // The hit-tested point in the coordinates of the inner node. | 92 // The hit-tested point in the coordinates of the inner node. |
| 93 const LayoutPoint& localPoint() const { return m_localPoint; } | 93 const LayoutPoint& localPoint() const { return m_localPoint; } |
| 94 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; } | 94 void setNodeAndPosition(Node* node, const LayoutPoint& p) { m_localPoint = p ; setInnerNode(node); } |
|
pdr.
2015/04/24 21:48:23
I like this cleanup.
| |
| 95 | 95 |
| 96 PositionWithAffinity position() const; | 96 PositionWithAffinity position() const; |
| 97 LayoutObject* layoutObject() const; | 97 LayoutObject* layoutObject() const; |
| 98 | 98 |
| 99 void setToShadowHostIfInUserAgentShadowRoot(); | 99 void setToShadowHostIfInUserAgentShadowRoot(); |
| 100 | 100 |
| 101 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } | 101 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } |
| 102 const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; } | 102 const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; } |
| 103 | 103 |
| 104 void setInnerNode(Node*); | 104 void setInnerNode(Node*); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 RefPtrWillBeMember<Element> m_innerURLElement; | 151 RefPtrWillBeMember<Element> m_innerURLElement; |
| 152 RefPtrWillBeMember<Scrollbar> m_scrollbar; | 152 RefPtrWillBeMember<Scrollbar> m_scrollbar; |
| 153 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a LayoutPart for example). | 153 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a LayoutPart for example). |
| 154 | 154 |
| 155 mutable OwnPtrWillBeMember<NodeSet> m_listBasedTestResult; | 155 mutable OwnPtrWillBeMember<NodeSet> m_listBasedTestResult; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace blink | 158 } // namespace blink |
| 159 | 159 |
| 160 #endif // HitTestResult_h | 160 #endif // HitTestResult_h |
| OLD | NEW |