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

Side by Side Diff: third_party/WebKit/public/web/WebInputEvent.h

Issue 1403893003: Plumb gesture source value through Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make compilers happy. Created 5 years, 2 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 float scale; 533 float scale;
534 } pinchUpdate; 534 } pinchUpdate;
535 } data; 535 } data;
536 536
537 WebGestureEvent() 537 WebGestureEvent()
538 : WebInputEvent(sizeof(WebGestureEvent)) 538 : WebInputEvent(sizeof(WebGestureEvent))
539 , x(0) 539 , x(0)
540 , y(0) 540 , y(0)
541 , globalX(0) 541 , globalX(0)
542 , globalY(0) 542 , globalY(0)
543 , sourceDevice(WebGestureDeviceUninitialized)
543 , resendingPluginId(-1) 544 , resendingPluginId(-1)
544 { 545 {
545 memset(&data, 0, sizeof(data)); 546 memset(&data, 0, sizeof(data));
546 } 547 }
547 }; 548 };
548 549
549 // WebTouchEvent -------------------------------------------------------------- 550 // WebTouchEvent --------------------------------------------------------------
550 551
551 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283 552 // TODO(e_hakkinen): Replace with WebPointerEvent. crbug.com/508283
552 class WebTouchEvent : public WebInputEvent { 553 class WebTouchEvent : public WebInputEvent {
(...skipping 28 matching lines...) Expand all
581 , uniqueTouchEventId(0) 582 , uniqueTouchEventId(0)
582 { 583 {
583 } 584 }
584 }; 585 };
585 586
586 #pragma pack(pop) 587 #pragma pack(pop)
587 588
588 } // namespace blink 589 } // namespace blink
589 590
590 #endif 591 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698