| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return m_innerPossiblyPseudoNode.get(); | 91 return m_innerPossiblyPseudoNode.get(); |
| 92 } | 92 } |
| 93 Element* innerElement() const; | 93 Element* innerElement() const; |
| 94 | 94 |
| 95 // If innerNode is an image map or image map area, return the associated image | 95 // If innerNode is an image map or image map area, return the associated image |
| 96 // node. | 96 // node. |
| 97 Node* innerNodeOrImageMapImage() const; | 97 Node* innerNodeOrImageMapImage() const; |
| 98 | 98 |
| 99 Element* URLElement() const { return m_innerURLElement.get(); } | 99 Element* URLElement() const { return m_innerURLElement.get(); } |
| 100 Scrollbar* scrollbar() const { return m_scrollbar.get(); } | 100 Scrollbar* scrollbar() const { return m_scrollbar.get(); } |
| 101 bool isOverWidget() const { return m_isOverWidget; } | 101 bool isOverFrameViewBase() const { return m_isOverFrameViewBase; } |
| 102 | 102 |
| 103 // Forwarded from HitTestLocation | 103 // Forwarded from HitTestLocation |
| 104 bool isRectBasedTest() const { return m_hitTestLocation.isRectBasedTest(); } | 104 bool isRectBasedTest() const { return m_hitTestLocation.isRectBasedTest(); } |
| 105 | 105 |
| 106 // The hit-tested point in the coordinates of the main frame. | 106 // The hit-tested point in the coordinates of the main frame. |
| 107 const LayoutPoint& pointInMainFrame() const { | 107 const LayoutPoint& pointInMainFrame() const { |
| 108 return m_hitTestLocation.point(); | 108 return m_hitTestLocation.point(); |
| 109 } | 109 } |
| 110 IntPoint roundedPointInMainFrame() const { | 110 IntPoint roundedPointInMainFrame() const { |
| 111 return roundedIntPoint(pointInMainFrame()); | 111 return roundedIntPoint(pointInMainFrame()); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 133 | 133 |
| 134 void setToShadowHostIfInUserAgentShadowRoot(); | 134 void setToShadowHostIfInUserAgentShadowRoot(); |
| 135 | 135 |
| 136 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } | 136 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } |
| 137 const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; } | 137 const HitTestRequest& hitTestRequest() const { return m_hitTestRequest; } |
| 138 | 138 |
| 139 void setInnerNode(Node*); | 139 void setInnerNode(Node*); |
| 140 HTMLAreaElement* imageAreaForImage() const; | 140 HTMLAreaElement* imageAreaForImage() const; |
| 141 void setURLElement(Element*); | 141 void setURLElement(Element*); |
| 142 void setScrollbar(Scrollbar*); | 142 void setScrollbar(Scrollbar*); |
| 143 void setIsOverWidget(bool b) { m_isOverWidget = b; } | 143 void setIsOverFrameViewBase(bool b) { m_isOverFrameViewBase = b; } |
| 144 | 144 |
| 145 bool isSelected() const; | 145 bool isSelected() const; |
| 146 String title(TextDirection&) const; | 146 String title(TextDirection&) const; |
| 147 const AtomicString& altDisplayString() const; | 147 const AtomicString& altDisplayString() const; |
| 148 Image* image() const; | 148 Image* image() const; |
| 149 IntRect imageRect() const; | 149 IntRect imageRect() const; |
| 150 KURL absoluteImageURL() const; | 150 KURL absoluteImageURL() const; |
| 151 KURL absoluteMediaURL() const; | 151 KURL absoluteMediaURL() const; |
| 152 KURL absoluteLinkURL() const; | 152 KURL absoluteLinkURL() const; |
| 153 String textContent() const; | 153 String textContent() const; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 Member<Node> m_innerPossiblyPseudoNode; | 200 Member<Node> m_innerPossiblyPseudoNode; |
| 201 // FIXME: Nothing changes this to a value different from m_hitTestLocation! | 201 // FIXME: Nothing changes this to a value different from m_hitTestLocation! |
| 202 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode | 202 LayoutPoint m_pointInInnerNodeFrame; // The hit-tested point in innerNode |
| 203 // frame coordinates. | 203 // frame coordinates. |
| 204 LayoutPoint m_localPoint; // A point in the local coordinate space of | 204 LayoutPoint m_localPoint; // A point in the local coordinate space of |
| 205 // m_innerNode's layoutObject.Allows us to | 205 // m_innerNode's layoutObject.Allows us to |
| 206 // efficiently determine where inside the | 206 // efficiently determine where inside the |
| 207 // layoutObject we hit on subsequent operations. | 207 // layoutObject we hit on subsequent operations. |
| 208 Member<Element> m_innerURLElement; | 208 Member<Element> m_innerURLElement; |
| 209 Member<Scrollbar> m_scrollbar; | 209 Member<Scrollbar> m_scrollbar; |
| 210 bool m_isOverWidget; // Returns true if we are over a widget (and not in the | 210 bool m_isOverFrameViewBase; // Returns true if we are over a FrameViewBase |
| 211 // border/padding area of a LayoutPart for example). | 211 // (and not in the border/padding area of a |
| 212 // LayoutPart for example). |
| 212 | 213 |
| 213 mutable Member<NodeSet> m_listBasedTestResult; | 214 mutable Member<NodeSet> m_listBasedTestResult; |
| 214 String m_canvasRegionId; | 215 String m_canvasRegionId; |
| 215 }; | 216 }; |
| 216 | 217 |
| 217 } // namespace blink | 218 } // namespace blink |
| 218 | 219 |
| 219 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::HitTestResult); | 220 WTF_ALLOW_CLEAR_UNUSED_SLOTS_WITH_MEM_FUNCTIONS(blink::HitTestResult); |
| 220 | 221 |
| 221 #endif // HitTestResult_h | 222 #endif // HitTestResult_h |
| OLD | NEW |