| 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 | 40 |
| 41 const EventType& Event() const { return event_; } | 41 const EventType& Event() const { return event_; } |
| 42 const HitTestResult& GetHitTestResult() const { return hit_test_result_; } | 42 const HitTestResult& GetHitTestResult() const { return hit_test_result_; } |
| 43 LayoutPoint LocalPoint() const { return hit_test_result_.LocalPoint(); } | 43 LayoutPoint LocalPoint() const { return hit_test_result_.LocalPoint(); } |
| 44 Scrollbar* GetScrollbar() const { return hit_test_result_.GetScrollbar(); } | 44 Scrollbar* GetScrollbar() const { return hit_test_result_.GetScrollbar(); } |
| 45 bool IsOverLink() const { return hit_test_result_.IsOverLink(); } | 45 bool IsOverLink() const { return hit_test_result_.IsOverLink(); } |
| 46 bool IsOverFrameViewBase() const { | 46 bool IsOverFrameViewBase() const { |
| 47 return hit_test_result_.IsOverFrameViewBase(); | 47 return hit_test_result_.IsOverFrameViewBase(); |
| 48 } | 48 } |
| 49 Node* InnerNode() const { return hit_test_result_.InnerNode(); } | 49 Node* InnerNode() const { return hit_test_result_.InnerNode(); } |
| 50 Element* InnerElement() const { return hit_test_result_.InnerElement(); } |
| 50 const String& CanvasRegionId() const { | 51 const String& CanvasRegionId() const { |
| 51 return hit_test_result_.CanvasRegionId(); | 52 return hit_test_result_.CanvasRegionId(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 EventType event_; | 56 EventType event_; |
| 56 HitTestResult hit_test_result_; | 57 HitTestResult hit_test_result_; |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 using MouseEventWithHitTestResults = EventWithHitTestResults<WebMouseEvent>; | 60 using MouseEventWithHitTestResults = EventWithHitTestResults<WebMouseEvent>; |
| 60 | 61 |
| 61 using GestureEventWithHitTestResults = EventWithHitTestResults<WebGestureEvent>; | 62 using GestureEventWithHitTestResults = EventWithHitTestResults<WebGestureEvent>; |
| 62 | 63 |
| 63 } // namespace blink | 64 } // namespace blink |
| 64 | 65 |
| 65 #endif // EventWithHitTestResults_h | 66 #endif // EventWithHitTestResults_h |
| OLD | NEW |