OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const IntPoint& movementDelta() const { return m_movementDelta; } | 82 const IntPoint& movementDelta() const { return m_movementDelta; } |
83 | 83 |
84 MouseButton button() const { return m_button; } | 84 MouseButton button() const { return m_button; } |
85 int clickCount() const { return m_clickCount; } | 85 int clickCount() const { return m_clickCount; } |
86 bool fromTouch() const { return m_synthesized == FromTouch; } | 86 bool fromTouch() const { return m_synthesized == FromTouch; } |
87 SyntheticEventType syntheticEventType() const { return m_synthesized; } | 87 SyntheticEventType syntheticEventType() const { return m_synthesized; } |
88 | 88 |
89 protected: | 89 protected: |
90 WebPointerProperties m_pointerProperties; | 90 WebPointerProperties m_pointerProperties; |
91 | 91 |
| 92 // In local root frame coordinates. (Except possibly if the Widget under |
| 93 // the mouse is a popup, see FIXME in PlatformMouseEventBuilder). |
92 IntPoint m_position; | 94 IntPoint m_position; |
| 95 |
| 96 // In screen coordinates. |
93 IntPoint m_globalPosition; | 97 IntPoint m_globalPosition; |
| 98 |
94 IntPoint m_movementDelta; | 99 IntPoint m_movementDelta; |
95 MouseButton m_button; | 100 MouseButton m_button; |
96 int m_clickCount; | 101 int m_clickCount; |
97 SyntheticEventType m_synthesized; | 102 SyntheticEventType m_synthesized; |
98 }; | 103 }; |
99 | 104 |
100 } // namespace blink | 105 } // namespace blink |
101 | 106 |
102 #endif // PlatformMouseEvent_h | 107 #endif // PlatformMouseEvent_h |
OLD | NEW |