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

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

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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 | « Source/core/rendering/FloatingObjects.h ('k') | Source/core/rendering/InlineFlowBox.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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 3 * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 { 47 {
48 } 48 }
49 49
50 bool readOnly() const { return m_requestType & ReadOnly; } 50 bool readOnly() const { return m_requestType & ReadOnly; }
51 bool active() const { return m_requestType & Active; } 51 bool active() const { return m_requestType & Active; }
52 bool move() const { return m_requestType & Move; } 52 bool move() const { return m_requestType & Move; }
53 bool release() const { return m_requestType & Release; } 53 bool release() const { return m_requestType & Release; }
54 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } 54 bool ignoreClipping() const { return m_requestType & IgnoreClipping; }
55 bool svgClipContent() const { return m_requestType & SVGClipContent; } 55 bool svgClipContent() const { return m_requestType & SVGClipContent; }
56 bool touchEvent() const { return m_requestType & TouchEvent; } 56 bool touchEvent() const { return m_requestType & TouchEvent; }
57 bool mouseEvent() const { return !touchEvent(); }
58 bool allowsChildFrameContent() const { return m_requestType & AllowChildFram eContent; } 57 bool allowsChildFrameContent() const { return m_requestType & AllowChildFram eContent; }
59 bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest; } 58 bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest; }
60 bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerE ventsNone; } 59 bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerE ventsNone; }
61 60
62 // Convenience functions 61 // Convenience functions
63 bool touchMove() const { return move() && touchEvent(); } 62 bool touchMove() const { return move() && touchEvent(); }
64 bool touchRelease() const { return release() && touchEvent(); }
65 63
66 HitTestRequestType type() const { return m_requestType; } 64 HitTestRequestType type() const { return m_requestType; }
67 65
68 private: 66 private:
69 HitTestRequestType m_requestType; 67 HitTestRequestType m_requestType;
70 }; 68 };
71 69
72 } // namespace blink 70 } // namespace blink
73 71
74 #endif // HitTestRequest_h 72 #endif // HitTestRequest_h
OLDNEW
« no previous file with comments | « Source/core/rendering/FloatingObjects.h ('k') | Source/core/rendering/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698