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

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

Issue 512983005: Cleanup some touch adjustment FIXMEs (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.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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&);
56 // Pass non-negative padding values to perform a rect-based hit test. 56 // Pass positive padding values to perform a rect-based hit test.
57 HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding); 57 HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding);
58 HitTestResult(const HitTestLocation&); 58 HitTestResult(const HitTestLocation&);
59 HitTestResult(const HitTestResult&); 59 HitTestResult(const HitTestResult&);
60 ~HitTestResult(); 60 ~HitTestResult();
61 HitTestResult& operator=(const HitTestResult&); 61 HitTestResult& operator=(const HitTestResult&);
62 void trace(Visitor*); 62 void trace(Visitor*);
63 63
64 // For point-based hit tests, these accessors provide information about the node 64 // For point-based hit tests, these accessors provide information about the node
65 // under the point. For rect-based hit tests they are meaningless (reflect t he 65 // under the point. For rect-based hit tests they are meaningless (reflect t he
66 // last candidate node observed in the rect). 66 // last candidate node observed in the rect).
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 RefPtr<Scrollbar> m_scrollbar; 156 RefPtr<Scrollbar> m_scrollbar;
157 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example). 157 bool m_isOverWidget; // Returns true if we are over a widget (and not in the border/padding area of a RenderWidget for example).
158 bool m_isFirstLetter; 158 bool m_isFirstLetter;
159 159
160 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult; 160 mutable OwnPtrWillBeMember<NodeSet> m_rectBasedTestResult;
161 }; 161 };
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // HitTestResult_h 165 #endif // HitTestResult_h
OLDNEW
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/core/rendering/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698