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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 AbstractView* view, | 77 AbstractView* view, |
78 const WebGestureEvent& event) | 78 const WebGestureEvent& event) |
79 : UIEventWithKeyState( | 79 : UIEventWithKeyState( |
80 eventType, | 80 eventType, |
81 true, | 81 true, |
82 true, | 82 true, |
83 view, | 83 view, |
84 0, | 84 0, |
85 static_cast<PlatformEvent::Modifiers>(event.modifiers()), | 85 static_cast<PlatformEvent::Modifiers>(event.modifiers()), |
86 TimeTicks::FromSeconds(event.timeStampSeconds()), | 86 TimeTicks::FromSeconds(event.timeStampSeconds()), |
87 nullptr), | 87 InputDeviceCapabilities::Null), |
88 m_nativeEvent(event) {} | 88 m_nativeEvent(event) {} |
89 | 89 |
90 const AtomicString& GestureEvent::interfaceName() const { | 90 const AtomicString& GestureEvent::interfaceName() const { |
91 // FIXME: when a GestureEvent.idl interface is defined, return the string | 91 // FIXME: when a GestureEvent.idl interface is defined, return the string |
92 // "GestureEvent". Until that happens, do not advertise an interface that | 92 // "GestureEvent". Until that happens, do not advertise an interface that |
93 // does not exist, since it will trip up the bindings integrity checks. | 93 // does not exist, since it will trip up the bindings integrity checks. |
94 return UIEvent::interfaceName(); | 94 return UIEvent::interfaceName(); |
95 } | 95 } |
96 | 96 |
97 bool GestureEvent::isGestureEvent() const { | 97 bool GestureEvent::isGestureEvent() const { |
98 return true; | 98 return true; |
99 } | 99 } |
100 | 100 |
101 DEFINE_TRACE(GestureEvent) { | 101 DEFINE_TRACE(GestureEvent) { |
102 UIEvent::trace(visitor); | 102 UIEvent::trace(visitor); |
103 } | 103 } |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
OLD | NEW |