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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // When using list-based testing, this flag causes us to continue hit | 49 // When using list-based testing, this flag causes us to continue hit |
50 // testing after a hit has been found. | 50 // testing after a hit has been found. |
51 PenetratingList = 1 << 12, | 51 PenetratingList = 1 << 12, |
52 AvoidCache = 1 << 13, | 52 AvoidCache = 1 << 13, |
53 }; | 53 }; |
54 | 54 |
55 typedef unsigned HitTestRequestType; | 55 typedef unsigned HitTestRequestType; |
56 | 56 |
57 HitTestRequest(HitTestRequestType requestType) : m_requestType(requestType) { | 57 HitTestRequest(HitTestRequestType requestType) : m_requestType(requestType) { |
58 // Penetrating lists should also be list-based. | 58 // Penetrating lists should also be list-based. |
59 ASSERT(!(requestType & PenetratingList) || (requestType & ListBased)); | 59 DCHECK(!(requestType & PenetratingList) || (requestType & ListBased)); |
60 } | 60 } |
61 | 61 |
62 bool readOnly() const { return m_requestType & ReadOnly; } | 62 bool readOnly() const { return m_requestType & ReadOnly; } |
63 bool active() const { return m_requestType & Active; } | 63 bool active() const { return m_requestType & Active; } |
64 bool move() const { return m_requestType & Move; } | 64 bool move() const { return m_requestType & Move; } |
65 bool release() const { return m_requestType & Release; } | 65 bool release() const { return m_requestType & Release; } |
66 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } | 66 bool ignoreClipping() const { return m_requestType & IgnoreClipping; } |
67 bool svgClipContent() const { return m_requestType & SVGClipContent; } | 67 bool svgClipContent() const { return m_requestType & SVGClipContent; } |
68 bool touchEvent() const { return m_requestType & TouchEvent; } | 68 bool touchEvent() const { return m_requestType & TouchEvent; } |
69 bool allowsChildFrameContent() const { | 69 bool allowsChildFrameContent() const { |
(...skipping 23 matching lines...) Expand all Loading... |
93 (value.m_requestType | CacheabilityBits); | 93 (value.m_requestType | CacheabilityBits); |
94 } | 94 } |
95 | 95 |
96 private: | 96 private: |
97 HitTestRequestType m_requestType; | 97 HitTestRequestType m_requestType; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
101 | 101 |
102 #endif // HitTestRequest_h | 102 #endif // HitTestRequest_h |
OLD | NEW |