| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above copyright | 9 * * 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 static PassRefPtrWillBeRawPtr<GestureEvent> create(PassRefPtrWillBeRawPtr<Ab
stractView>, const PlatformGestureEvent&); | 40 static PassRefPtrWillBeRawPtr<GestureEvent> create(PassRefPtrWillBeRawPtr<Ab
stractView>, const PlatformGestureEvent&); |
| 41 | 41 |
| 42 bool isGestureEvent() const override; | 42 bool isGestureEvent() const override; |
| 43 | 43 |
| 44 const AtomicString& interfaceName() const override; | 44 const AtomicString& interfaceName() const override; |
| 45 | 45 |
| 46 float deltaX() const { return m_deltaX; } | 46 float deltaX() const { return m_deltaX; } |
| 47 float deltaY() const { return m_deltaY; } | 47 float deltaY() const { return m_deltaY; } |
| 48 | 48 |
| 49 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; |
| 50 |
| 49 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 GestureEvent(); | 54 GestureEvent(); |
| 53 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey,
bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimeStamp); | 55 GestureEvent(const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView>,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey,
bool shiftKey, bool metaKey, float deltaX, float deltaY, double uiTimeStamp); |
| 54 | 56 |
| 55 float m_deltaX; | 57 float m_deltaX; |
| 56 float m_deltaY; | 58 float m_deltaY; |
| 57 }; | 59 }; |
| 58 | 60 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 69 GestureEvent& event() const; | 71 GestureEvent& event() const; |
| 70 | 72 |
| 71 bool dispatchEvent(EventDispatcher&) const override; | 73 bool dispatchEvent(EventDispatcher&) const override; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 DEFINE_EVENT_TYPE_CASTS(GestureEvent); | 76 DEFINE_EVENT_TYPE_CASTS(GestureEvent); |
| 75 | 77 |
| 76 } // namespace blink | 78 } // namespace blink |
| 77 | 79 |
| 78 #endif // GestureEvent_h | 80 #endif // GestureEvent_h |
| OLD | NEW |