| OLD | NEW |
| 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 20 matching lines...) Expand all Loading... |
| 31 ReadOnly = 1 << 1, | 31 ReadOnly = 1 << 1, |
| 32 Active = 1 << 2, | 32 Active = 1 << 2, |
| 33 Move = 1 << 3, | 33 Move = 1 << 3, |
| 34 Release = 1 << 4, | 34 Release = 1 << 4, |
| 35 IgnoreClipping = 1 << 5, | 35 IgnoreClipping = 1 << 5, |
| 36 SVGClipContent = 1 << 6, | 36 SVGClipContent = 1 << 6, |
| 37 TouchEvent = 1 << 7, | 37 TouchEvent = 1 << 7, |
| 38 DisallowShadowContent = 1 << 8, | 38 DisallowShadowContent = 1 << 8, |
| 39 AllowFrameScrollbars = 1 << 9, | 39 AllowFrameScrollbars = 1 << 9, |
| 40 AllowChildFrameContent = 1 << 10, | 40 AllowChildFrameContent = 1 << 10, |
| 41 ChildFrameHitTest = 1 << 11 | 41 ChildFrameHitTest = 1 << 11, |
| 42 IgnorePointerEventsNone = 1 << 12 |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 typedef unsigned HitTestRequestType; | 45 typedef unsigned HitTestRequestType; |
| 45 | 46 |
| 46 HitTestRequest(HitTestRequestType requestType) | 47 HitTestRequest(HitTestRequestType requestType) |
| 47 : m_requestType(requestType) | 48 : m_requestType(requestType) |
| 48 { | 49 { |
| 49 } | 50 } |
| 50 | 51 |
| 51 bool readOnly() const { return m_requestType & ReadOnly; } | 52 bool readOnly() const { return m_requestType & ReadOnly; } |
| 52 bool active() const { return m_requestType & Active; } | 53 bool active() const { return m_requestType & Active; } |
| 53 bool move() const { return m_requestType & Move; } | 54 bool move() const { return m_requestType & Move; } |
| 54 bool release() const { return m_requestType & Release; } | 55 bool release() const { return m_requestType & Release; } |
| 55 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } | 56 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } |
| 56 bool svgClipContent() const { return m_requestType & SVGClipContent; } | 57 bool svgClipContent() const { return m_requestType & SVGClipContent; } |
| 57 bool touchEvent() const { return m_requestType & TouchEvent; } | 58 bool touchEvent() const { return m_requestType & TouchEvent; } |
| 58 bool mouseEvent() const { return !touchEvent(); } | 59 bool mouseEvent() const { return !touchEvent(); } |
| 59 bool disallowsShadowContent() const { return m_requestType & DisallowShadowC
ontent; } | 60 bool disallowsShadowContent() const { return m_requestType & DisallowShadowC
ontent; } |
| 60 bool allowsFrameScrollbars() const { return m_requestType & AllowFrameScroll
bars; } | 61 bool allowsFrameScrollbars() const { return m_requestType & AllowFrameScroll
bars; } |
| 61 bool allowsChildFrameContent() const { return m_requestType & AllowChildFram
eContent; } | 62 bool allowsChildFrameContent() const { return m_requestType & AllowChildFram
eContent; } |
| 62 bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest;
} | 63 bool isChildFrameHitTest() const { return m_requestType & ChildFrameHitTest;
} |
| 64 bool ignorePointerEventsNone() const { return m_requestType & IgnorePointerE
ventsNone; } |
| 63 | 65 |
| 64 // Convenience functions | 66 // Convenience functions |
| 65 bool touchMove() const { return move() && touchEvent(); } | 67 bool touchMove() const { return move() && touchEvent(); } |
| 66 bool touchRelease() const { return release() && touchEvent(); } | 68 bool touchRelease() const { return release() && touchEvent(); } |
| 67 | 69 |
| 68 HitTestRequestType type() const { return m_requestType; } | 70 HitTestRequestType type() const { return m_requestType; } |
| 69 | 71 |
| 70 private: | 72 private: |
| 71 HitTestRequestType m_requestType; | 73 HitTestRequestType m_requestType; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 } // namespace WebCore | 76 } // namespace WebCore |
| 75 | 77 |
| 76 #endif // HitTestRequest_h | 78 #endif // HitTestRequest_h |
| OLD | NEW |