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

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

Issue 2829553002: Remove the dup function (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.cpp ('k') | no next file » | 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 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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698