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

Side by Side Diff: Source/core/layout/HitTestResult.h

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/layout/CounterNode.cpp ('k') | Source/core/layout/HitTestResult.cpp » ('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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
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 24 matching lines...) Expand all
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class Element; 39 class Element;
40 class LocalFrame; 40 class LocalFrame;
41 class HTMLMediaElement; 41 class HTMLMediaElement;
42 class Image; 42 class Image;
43 class KURL; 43 class KURL;
44 class Node; 44 class Node;
45 class RenderObject; 45 class LayoutObject;
46 class PositionWithAffinity; 46 class PositionWithAffinity;
47 class Scrollbar; 47 class Scrollbar;
48 48
49 class HitTestResult { 49 class HitTestResult {
50 DISALLOW_ALLOCATION(); 50 DISALLOW_ALLOCATION();
51 public: 51 public:
52 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node>> NodeSet; 52 typedef WillBeHeapListHashSet<RefPtrWillBeMember<Node>> NodeSet;
53 53
54 HitTestResult(); 54 HitTestResult();
55 HitTestResult(const LayoutPoint&); 55 HitTestResult(const LayoutPoint&);
(...skipping 27 matching lines...) Expand all
83 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode. 83 // The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode.
84 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; } 84 const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNode Frame; }
85 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); } 85 IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(point InInnerNodeFrame()); }
86 LocalFrame* innerNodeFrame() const; 86 LocalFrame* innerNodeFrame() const;
87 87
88 // The hit-tested point in the coordinates of the inner node. 88 // The hit-tested point in the coordinates of the inner node.
89 const LayoutPoint& localPoint() const { return m_localPoint; } 89 const LayoutPoint& localPoint() const { return m_localPoint; }
90 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; } 90 void setLocalPoint(const LayoutPoint& p) { m_localPoint = p; }
91 91
92 PositionWithAffinity position() const; 92 PositionWithAffinity position() const;
93 RenderObject* renderer() const; 93 LayoutObject* renderer() const;
94 94
95 void setToShadowHostIfInUserAgentShadowRoot(); 95 void setToShadowHostIfInUserAgentShadowRoot();
96 96
97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; } 97 const HitTestLocation& hitTestLocation() const { return m_hitTestLocation; }
98 98
99 void setInnerNode(Node*); 99 void setInnerNode(Node*);
100 void setInnerNonSharedNode(Node*); 100 void setInnerNonSharedNode(Node*);
101 void setURLElement(Element*); 101 void setURLElement(Element*);
102 void setScrollbar(Scrollbar*); 102 void setScrollbar(Scrollbar*);
103 void setIsOverWidget(bool b) { m_isOverWidget = b; } 103 void setIsOverWidget(bool b) { m_isOverWidget = b; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 RefPtrWillBeMember<Element> m_innerURLElement; 147 RefPtrWillBeMember<Element> m_innerURLElement;
148 RefPtrWillBeMember<Scrollbar> m_scrollbar; 148 RefPtrWillBeMember<Scrollbar> m_scrollbar;
149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderPart for example). 149 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderPart for example).
150 150
151 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; 151 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult;
152 }; 152 };
153 153
154 } // namespace blink 154 } // namespace blink
155 155
156 #endif // HitTestResult_h 156 #endif // HitTestResult_h
OLDNEW
« no previous file with comments | « Source/core/layout/CounterNode.cpp ('k') | Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698