Home | History | Annotate | Download | only in Shared

Lines Matching refs:WebEvent

29 #include "WebEvent.h"
35 WebKit2PlatformMouseEvent(const WebMouseEvent& webEvent)
37 switch (webEvent.type()) {
38 case WebEvent::MouseDown:
41 case WebEvent::MouseUp:
44 case WebEvent::MouseMove:
51 switch (webEvent.button()) {
68 m_position = webEvent.position();
69 m_globalPosition = webEvent.globalPosition();
70 m_clickCount = webEvent.clickCount();
71 m_timestamp = webEvent.timestamp();
72 m_shiftKey = webEvent.shiftKey();
73 m_ctrlKey = webEvent.controlKey();
74 m_altKey = webEvent.altKey();
75 m_metaKey = webEvent.metaKey();
79 m_modifierFlags |= WebEvent::ShiftKey;
81 m_modifierFlags |= WebEvent::ControlKey;
83 m_modifierFlags |= WebEvent::AltKey;
85 m_modifierFlags |= WebEvent::MetaKey;
88 m_didActivateWebView = webEvent.didActivateWebView();
93 WebCore::PlatformMouseEvent platform(const WebMouseEvent& webEvent)
95 return WebKit2PlatformMouseEvent(webEvent);
100 WebKit2PlatformWheelEvent(const WebWheelEvent& webEvent)
102 m_position = webEvent.position();
103 m_globalPosition = webEvent.globalPosition();
104 m_deltaX = webEvent.delta().width();
105 m_deltaY = webEvent.delta().height();
106 m_wheelTicksX = webEvent.wheelTicks().width();
107 m_wheelTicksY = webEvent.wheelTicks().height();
108 m_granularity = (webEvent.granularity() == WebWheelEvent::ScrollByPageWheelEvent) ? WebCore::ScrollByPageWheelEvent : WebCore::ScrollByPixelWheelEvent;
109 m_shiftKey = webEvent.shiftKey();
110 m_ctrlKey = webEvent.controlKey();
111 m_altKey = webEvent.altKey();
112 m_metaKey = webEvent.metaKey();
114 m_phase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.phase());
115 m_momentumPhase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.momentumPhase());
116 m_hasPreciseScrollingDeltas = webEvent.hasPreciseScrollingDeltas();
117 m_timestamp = webEvent.timestamp();
122 WebCore::PlatformWheelEvent platform(const WebWheelEvent& webEvent)
124 return WebKit2PlatformWheelEvent(webEvent);
129 WebKit2PlatformKeyboardEvent(const WebKeyboardEvent& webEvent)
131 switch (webEvent.type()) {
132 case WebEvent::KeyDown:
135 case WebEvent::KeyUp:
138 case WebEvent::RawKeyDown:
141 case WebEvent::Char:
147 m_text = webEvent.text();
148 m_unmodifiedText = webEvent.unmodifiedText();
149 m_keyIdentifier = webEvent.keyIdentifier();
150 m_windowsVirtualKeyCode = webEvent.windowsVirtualKeyCode();
151 m_nativeVirtualKeyCode = webEvent.nativeVirtualKeyCode();
152 m_autoRepeat = webEvent.isAutoRepeat();
153 m_isKeypad = webEvent.isKeypad();
154 m_shiftKey = webEvent.shiftKey();
155 m_ctrlKey = webEvent.controlKey();
156 m_altKey = webEvent.altKey();
157 m_metaKey = webEvent.metaKey();
162 m_isSystemKey = webEvent.isSystemKey();
167 WebCore::PlatformKeyboardEvent platform(const WebKeyboardEvent& webEvent)
169 return WebKit2PlatformKeyboardEvent(webEvent);
175 WebKit2PlatformGestureEvent(const WebGestureEvent& webEvent)
177 switch (webEvent.type()) {
178 case WebEvent::GestureScrollBegin:
181 case WebEvent::GestureScrollEnd:
188 m_position = webEvent.position();
189 m_globalPosition = webEvent.globalPosition();
190 m_timestamp = webEvent.timestamp();
194 WebCore::PlatformGestureEvent platform(const WebGestureEvent& webEvent)
196 return WebKit2PlatformGestureEvent(webEvent);
234 WebKit2PlatformTouchEvent(const WebTouchEvent& webEvent)
236 switch (webEvent.type()) {
237 case WebEvent::TouchStart:
240 case WebEvent::TouchMove:
243 case WebEvent::TouchEnd:
246 case WebEvent::TouchCancel:
253 for (int i = 0; i < webEvent.touchPoints().size(); ++i)
254 m_touchPoints.append(WebKit2PlatformTouchPoint(webEvent.touchPoints().at(i)));
256 m_ctrlKey = webEvent.controlKey();
257 m_altKey = webEvent.altKey();
258 m_shiftKey = webEvent.shiftKey();
259 m_metaKey = webEvent.metaKey();
263 WebCore::PlatformTouchEvent platform(const WebTouchEvent& webEvent)
265 return WebKit2PlatformTouchEvent(webEvent);