| 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 25 matching lines...) Expand all Loading... |
| 36 public: | 36 public: |
| 37 EventWithHitTestResults(const EventType& event, | 37 EventWithHitTestResults(const EventType& event, |
| 38 const HitTestResult& hitTestResult) | 38 const HitTestResult& hitTestResult) |
| 39 : m_event(event), m_hitTestResult(hitTestResult) {} | 39 : m_event(event), m_hitTestResult(hitTestResult) {} |
| 40 | 40 |
| 41 const EventType& event() const { return m_event; } | 41 const EventType& event() const { return m_event; } |
| 42 const HitTestResult& hitTestResult() const { return m_hitTestResult; } | 42 const HitTestResult& hitTestResult() const { return m_hitTestResult; } |
| 43 LayoutPoint localPoint() const { return m_hitTestResult.localPoint(); } | 43 LayoutPoint localPoint() const { return m_hitTestResult.localPoint(); } |
| 44 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } | 44 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } |
| 45 bool isOverLink() const { return m_hitTestResult.isOverLink(); } | 45 bool isOverLink() const { return m_hitTestResult.isOverLink(); } |
| 46 bool isOverWidget() const { return m_hitTestResult.isOverWidget(); } | 46 bool isOverFrameViewBase() const { |
| 47 return m_hitTestResult.isOverFrameViewBase(); |
| 48 } |
| 47 Node* innerNode() const { return m_hitTestResult.innerNode(); } | 49 Node* innerNode() const { return m_hitTestResult.innerNode(); } |
| 48 const String& canvasRegionId() const { | 50 const String& canvasRegionId() const { |
| 49 return m_hitTestResult.canvasRegionId(); | 51 return m_hitTestResult.canvasRegionId(); |
| 50 } | 52 } |
| 51 | 53 |
| 52 private: | 54 private: |
| 53 EventType m_event; | 55 EventType m_event; |
| 54 HitTestResult m_hitTestResult; | 56 HitTestResult m_hitTestResult; |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 using MouseEventWithHitTestResults = EventWithHitTestResults<WebMouseEvent>; | 59 using MouseEventWithHitTestResults = EventWithHitTestResults<WebMouseEvent>; |
| 58 | 60 |
| 59 using GestureEventWithHitTestResults = EventWithHitTestResults<WebGestureEvent>; | 61 using GestureEventWithHitTestResults = EventWithHitTestResults<WebGestureEvent>; |
| 60 | 62 |
| 61 } // namespace blink | 63 } // namespace blink |
| 62 | 64 |
| 63 #endif // EventWithHitTestResults_h | 65 #endif // EventWithHitTestResults_h |
| OLD | NEW |