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

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

Issue 1645613007: Redefined the bit WebTouchEvent.causesScrollingIfUncanceled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed an aura unittest. Created 4 years, 10 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 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 enum { touchesLengthCap = 16 }; 575 enum { touchesLengthCap = 16 };
576 576
577 unsigned touchesLength; 577 unsigned touchesLength;
578 // List of all touches, regardless of state. 578 // List of all touches, regardless of state.
579 WebTouchPoint touches[touchesLengthCap]; 579 WebTouchPoint touches[touchesLengthCap];
580 580
581 // Whether the event can be canceled (with preventDefault). If true then the browser 581 // Whether the event can be canceled (with preventDefault). If true then the browser
582 // must wait for an ACK for this event. If false then no ACK IPC is expected . 582 // must wait for an ACK for this event. If false then no ACK IPC is expected .
583 bool cancelable; 583 bool cancelable;
584 584
585 // Whether the event will produce scroll-inducing events if uncanceled. This 585 // For a single touch, this is true after the touch-point has moved beyond
586 // will be true for touchmove events after the platform slop region has been 586 // the platform slop region. For a multitouch, this is true after any
587 // exceeded and fling-generating touchend events. Note that this doesn't 587 // touch-point has moved (by whatever amount).
588 // necessarily mean content will scroll, only that scroll events will be 588 bool movedBeyondSlopRegion;
589 // generated.
590 bool causesScrollingIfUncanceled;
591 589
592 // A unique identifier for the touch event. 590 // A unique identifier for the touch event.
593 uint32_t uniqueTouchEventId; 591 uint32_t uniqueTouchEventId;
594 592
595 WebTouchEvent() 593 WebTouchEvent()
596 : WebInputEvent(sizeof(WebTouchEvent)) 594 : WebInputEvent(sizeof(WebTouchEvent))
597 , touchesLength(0) 595 , touchesLength(0)
598 , cancelable(true) 596 , cancelable(true)
599 , causesScrollingIfUncanceled(false) 597 , movedBeyondSlopRegion(false)
600 , uniqueTouchEventId(0) 598 , uniqueTouchEventId(0)
601 { 599 {
602 } 600 }
603 }; 601 };
604 602
605 #pragma pack(pop) 603 #pragma pack(pop)
606 604
607 } // namespace blink 605 } // namespace blink
608 606
609 #endif 607 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698