OLD | NEW |
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 return isMouseEventType(other.type); | 252 return isMouseEventType(other.type); |
253 if (isGestureEventType(type)) | 253 if (isGestureEventType(type)) |
254 return isGestureEventType(other.type); | 254 return isGestureEventType(other.type); |
255 if (isTouchEventType(type)) | 255 if (isTouchEventType(type)) |
256 return isTouchEventType(other.type); | 256 return isTouchEventType(other.type); |
257 if (isKeyboardEventType(type)) | 257 if (isKeyboardEventType(type)) |
258 return isKeyboardEventType(other.type); | 258 return isKeyboardEventType(other.type); |
259 return type == other.type; | 259 return type == other.type; |
260 } | 260 } |
261 | 261 |
| 262 BLINK_COMMON_EXPORT static const char* GetName(WebInputEvent::Type); |
| 263 |
262 protected: | 264 protected: |
263 explicit WebInputEvent(unsigned sizeParam) | 265 explicit WebInputEvent(unsigned sizeParam) |
264 { | 266 { |
265 memset(this, 0, sizeParam); | 267 memset(this, 0, sizeParam); |
266 timeStampSeconds = 0.0; | 268 timeStampSeconds = 0.0; |
267 size = sizeParam; | 269 size = sizeParam; |
268 type = Undefined; | 270 type = Undefined; |
269 modifiers = 0; | 271 modifiers = 0; |
270 } | 272 } |
271 }; | 273 }; |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 , uniqueTouchEventId(0) | 639 , uniqueTouchEventId(0) |
638 { | 640 { |
639 } | 641 } |
640 }; | 642 }; |
641 | 643 |
642 #pragma pack(pop) | 644 #pragma pack(pop) |
643 | 645 |
644 } // namespace blink | 646 } // namespace blink |
645 | 647 |
646 #endif | 648 #endif |
OLD | NEW |