Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: third_party/WebKit/Source/web/WebInputEventConversion.cpp

Issue 2009283002: Fix touch accessibility events in WebViews and iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable cross-site test temporarily Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 m_button = static_cast<MouseButton>(e.button); 180 m_button = static_cast<MouseButton>(e.button);
181 m_modifiers = e.modifiers; 181 m_modifiers = e.modifiers;
182 182
183 m_timestamp = e.timeStampSeconds; 183 m_timestamp = e.timeStampSeconds;
184 m_clickCount = e.clickCount; 184 m_clickCount = e.clickCount;
185 185
186 m_pointerProperties = static_cast<WebPointerProperties>(e); 186 m_pointerProperties = static_cast<WebPointerProperties>(e);
187 187
188 switch (e.type) { 188 switch (e.type) {
189 case WebInputEvent::MouseMove: 189 case WebInputEvent::MouseMove:
190 case WebInputEvent::MouseLeave: // synthesize a move event 190 case WebInputEvent::MouseEnter: // synthesize a move event
191 case WebInputEvent::MouseLeave: // synthesize a move event
191 m_type = PlatformEvent::MouseMoved; 192 m_type = PlatformEvent::MouseMoved;
192 break; 193 break;
193 194
194 case WebInputEvent::MouseDown: 195 case WebInputEvent::MouseDown:
195 m_type = PlatformEvent::MousePressed; 196 m_type = PlatformEvent::MousePressed;
196 break; 197 break;
197 198
198 case WebInputEvent::MouseUp: 199 case WebInputEvent::MouseUp:
199 m_type = PlatformEvent::MouseReleased; 200 m_type = PlatformEvent::MouseReleased;
200 201
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 break; 818 break;
818 case GestureSourceTouchscreen: 819 case GestureSourceTouchscreen:
819 sourceDevice = WebGestureDeviceTouchscreen; 820 sourceDevice = WebGestureDeviceTouchscreen;
820 break; 821 break;
821 case GestureSourceUninitialized: 822 case GestureSourceUninitialized:
822 NOTREACHED(); 823 NOTREACHED();
823 } 824 }
824 } 825 }
825 826
826 } // namespace blink 827 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698