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

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

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add fling flag to WebTouchEvent Created 4 years, 7 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 DispatchType dispatchType; 629 DispatchType dispatchType;
630 630
631 // For a single touch, this is true after the touch-point has moved beyond 631 // For a single touch, this is true after the touch-point has moved beyond
632 // the platform slop region. For a multitouch, this is true after any 632 // the platform slop region. For a multitouch, this is true after any
633 // touch-point has moved (by whatever amount). 633 // touch-point has moved (by whatever amount).
634 bool movedBeyondSlopRegion; 634 bool movedBeyondSlopRegion;
635 635
636 // A unique identifier for the touch event. 636 // A unique identifier for the touch event.
637 uint32_t uniqueTouchEventId; 637 uint32_t uniqueTouchEventId;
638 638
639 bool isFlingInProgress;
dtapuska 2016/04/28 18:59:09 move this beside the other boolean and the struct
lanwei 2016/04/28 20:25:18 Nice, thanks!
640
639 WebTouchEvent() 641 WebTouchEvent()
640 : WebInputEvent(sizeof(WebTouchEvent)) 642 : WebInputEvent(sizeof(WebTouchEvent))
641 , touchesLength(0) 643 , touchesLength(0)
642 , dispatchType(Blocking) 644 , dispatchType(Blocking)
643 , movedBeyondSlopRegion(false) 645 , movedBeyondSlopRegion(false)
644 , uniqueTouchEventId(0) 646 , uniqueTouchEventId(0)
647 , isFlingInProgress(false)
645 { 648 {
646 } 649 }
647 }; 650 };
648 651
649 #pragma pack(pop) 652 #pragma pack(pop)
650 653
651 } // namespace blink 654 } // namespace blink
652 655
653 #endif 656 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698