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

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

Issue 2539283002: Remove PlatformGestureEvent in favour of using WebGestureEvent (Closed)
Patch Set: Created 4 years 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 22 matching lines...) Expand all
33 #include "platform/KeyboardCodes.h" 33 #include "platform/KeyboardCodes.h"
34 #include "public/platform/WebGestureEvent.h" 34 #include "public/platform/WebGestureEvent.h"
35 #include "wtf/ASCIICType.h" 35 #include "wtf/ASCIICType.h"
36 #include "wtf/Assertions.h" 36 #include "wtf/Assertions.h"
37 #include "wtf/StringExtras.h" 37 #include "wtf/StringExtras.h"
38 #include <ctype.h> 38 #include <ctype.h>
39 39
40 namespace blink { 40 namespace blink {
41 41
42 struct SameSizeAsWebInputEvent { 42 struct SameSizeAsWebInputEvent {
43 int inputData[5]; 43 int inputData[8];
44 }; 44 };
majidvp 2016/12/01 15:46:30 At the moment the additional fields are only used
dtapuska 2016/12/01 16:26:43 I'm working on WebMouseWheelEvent now as well. So
45 45
46 struct SameSizeAsWebKeyboardEvent : public SameSizeAsWebInputEvent { 46 struct SameSizeAsWebKeyboardEvent : public SameSizeAsWebInputEvent {
47 int keyboardData[9]; 47 int keyboardData[9];
48 }; 48 };
49 49
50 struct SameSizeAsWebMouseEvent : public SameSizeAsWebInputEvent { 50 struct SameSizeAsWebMouseEvent : public SameSizeAsWebInputEvent {
51 int mouseData[15]; 51 int mouseData[15];
52 }; 52 };
53 53
54 struct SameSizeAsWebMouseWheelEvent : public SameSizeAsWebMouseEvent { 54 struct SameSizeAsWebMouseWheelEvent : public SameSizeAsWebMouseEvent {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 CASE_TYPE(TouchCancel); 119 CASE_TYPE(TouchCancel);
120 CASE_TYPE(TouchScrollStarted); 120 CASE_TYPE(TouchScrollStarted);
121 default: 121 default:
122 NOTREACHED(); 122 NOTREACHED();
123 return ""; 123 return "";
124 } 124 }
125 } 125 }
126 #undef CASE_TYPE 126 #undef CASE_TYPE
127 127
128 } // namespace blink 128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698