OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2000 Simon Hausmann <hausmann@kde.org> | 2 Copyright (C) 2000 Simon Hausmann <hausmann@kde.org> |
3 Copyright (C) 2006 Apple Computer, Inc. | 3 Copyright (C) 2006 Apple Computer, Inc. |
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 29 matching lines...) Expand all Loading... |
40 , m_hitTestResult(hitTestResult) | 40 , m_hitTestResult(hitTestResult) |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 const EventType& event() const { return m_event; } | 44 const EventType& event() const { return m_event; } |
45 const HitTestResult& hitTestResult() const { return m_hitTestResult; } | 45 const HitTestResult& hitTestResult() const { return m_hitTestResult; } |
46 LayoutPoint localPoint() const { return m_hitTestResult.localPoint(); } | 46 LayoutPoint localPoint() const { return m_hitTestResult.localPoint(); } |
47 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } | 47 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } |
48 bool isOverLink() const { return m_hitTestResult.isOverLink(); } | 48 bool isOverLink() const { return m_hitTestResult.isOverLink(); } |
49 bool isOverWidget() const { return m_hitTestResult.isOverWidget(); } | 49 bool isOverWidget() const { return m_hitTestResult.isOverWidget(); } |
50 Node* targetNode() const { return m_hitTestResult.targetNode(); } | 50 Node* innerNode() const { return m_hitTestResult.innerNode(); } |
51 | 51 |
52 private: | 52 private: |
53 EventType m_event; | 53 EventType m_event; |
54 HitTestResult m_hitTestResult; | 54 HitTestResult m_hitTestResult; |
55 }; | 55 }; |
56 | 56 |
57 typedef EventWithHitTestResults<PlatformMouseEvent> MouseEventWithHitTestResults
; | 57 typedef EventWithHitTestResults<PlatformMouseEvent> MouseEventWithHitTestResults
; |
58 | 58 |
59 typedef EventWithHitTestResults<PlatformGestureEvent> GestureEventWithHitTestRes
ults; | 59 typedef EventWithHitTestResults<PlatformGestureEvent> GestureEventWithHitTestRes
ults; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // EventWithHitTestResults_h | 63 #endif // EventWithHitTestResults_h |
OLD | NEW |