Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: Source/core/page/EventWithHitTestResults.h

Issue 476303002: Remove obsolete HitTestResult.targetNode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/HitTestResult.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/HitTestResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698