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

Side by Side Diff: sky/engine/platform/exported/WebInputEvent.cpp

Issue 868133003: Remove touch events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/platform/PlatformTouchPoint.h ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 }; 43 };
44 44
45 struct SameSizeAsWebKeyboardEvent : public SameSizeAsWebInputEvent { 45 struct SameSizeAsWebKeyboardEvent : public SameSizeAsWebInputEvent {
46 int keyboardData[12]; 46 int keyboardData[12];
47 }; 47 };
48 48
49 struct SameSizeAsWebGestureEvent : public SameSizeAsWebInputEvent { 49 struct SameSizeAsWebGestureEvent : public SameSizeAsWebInputEvent {
50 int gestureData[9]; 50 int gestureData[9];
51 }; 51 };
52 52
53 struct SameSizeAsWebTouchEvent : public SameSizeAsWebInputEvent {
54 WebTouchPoint touchPoints[3 * WebTouchEvent::touchesLengthCap];
55 int touchData[4];
56 };
57
58 COMPILE_ASSERT(sizeof(WebInputEvent) == sizeof(SameSizeAsWebInputEvent), WebInpu tEvent_has_gaps); 53 COMPILE_ASSERT(sizeof(WebInputEvent) == sizeof(SameSizeAsWebInputEvent), WebInpu tEvent_has_gaps);
59 COMPILE_ASSERT(sizeof(WebKeyboardEvent) == sizeof(SameSizeAsWebKeyboardEvent), W ebKeyboardEvent_has_gaps); 54 COMPILE_ASSERT(sizeof(WebKeyboardEvent) == sizeof(SameSizeAsWebKeyboardEvent), W ebKeyboardEvent_has_gaps);
60 COMPILE_ASSERT(sizeof(WebGestureEvent) == sizeof(SameSizeAsWebGestureEvent), Web GestureEvent_has_gaps); 55 COMPILE_ASSERT(sizeof(WebGestureEvent) == sizeof(SameSizeAsWebGestureEvent), Web GestureEvent_has_gaps);
61 COMPILE_ASSERT(sizeof(WebTouchEvent) == sizeof(SameSizeAsWebTouchEvent), WebTouc hEvent_has_gaps);
62 56
63 static const char* staticKeyIdentifiers(unsigned short keyCode) 57 static const char* staticKeyIdentifiers(unsigned short keyCode)
64 { 58 {
65 switch (keyCode) { 59 switch (keyCode) {
66 case VKEY_MENU: 60 case VKEY_MENU:
67 return "Alt"; 61 return "Alt";
68 case VKEY_CONTROL: 62 case VKEY_CONTROL:
69 return "Control"; 63 return "Control";
70 case VKEY_SHIFT: 64 case VKEY_SHIFT:
71 return "Shift"; 65 return "Shift";
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 case VK_RSHIFT: 212 case VK_RSHIFT:
219 case VK_RMENU: 213 case VK_RMENU:
220 case VK_RWIN: 214 case VK_RWIN:
221 return IsRight; 215 return IsRight;
222 default: 216 default:
223 return 0; 217 return 0;
224 } 218 }
225 } 219 }
226 220
227 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/platform/PlatformTouchPoint.h ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698