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

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

Issue 2126323002: Add support for touch-action: pinch-zoom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add exception for mac Created 4 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 // If true, this event will skip hit testing to find a scroll 548 // If true, this event will skip hit testing to find a scroll
549 // target and instead just scroll the viewport. 549 // target and instead just scroll the viewport.
550 bool targetViewport; 550 bool targetViewport;
551 // The state of inertial phase scrolling. OSX has unique phases for normal and 551 // The state of inertial phase scrolling. OSX has unique phases for normal and
552 // momentum scroll events. Should always be UnknownMomentumPhase for touch based 552 // momentum scroll events. Should always be UnknownMomentumPhase for touch based
553 // input as it generates GestureFlingStart instead. 553 // input as it generates GestureFlingStart instead.
554 InertialPhaseState inertialPhase; 554 InertialPhaseState inertialPhase;
555 // True if this event was synthesized in order to force a hit test; avoiding scroll 555 // True if this event was synthesized in order to force a hit test; avoiding scroll
556 // latching behavior until crbug.com/526463 is fully implemented. 556 // latching behavior until crbug.com/526463 is fully implemented.
557 bool synthetic; 557 bool synthetic;
558
559 // number of pointers down.
560 int pointerCount;
558 } scrollBegin; 561 } scrollBegin;
559 562
560 struct { 563 struct {
561 float deltaX; 564 float deltaX;
562 float deltaY; 565 float deltaY;
563 float velocityX; 566 float velocityX;
564 float velocityY; 567 float velocityY;
565 // Whether any previous GestureScrollUpdate in the current scroll 568 // Whether any previous GestureScrollUpdate in the current scroll
566 // sequence was suppressed (e.g., the causal touchmove was 569 // sequence was suppressed (e.g., the causal touchmove was
567 // preventDefault'ed). This bit is particularly useful for 570 // preventDefault'ed). This bit is particularly useful for
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 , uniqueTouchEventId(0) 668 , uniqueTouchEventId(0)
666 { 669 {
667 } 670 }
668 }; 671 };
669 672
670 #pragma pack(pop) 673 #pragma pack(pop)
671 674
672 } // namespace blink 675 } // namespace blink
673 676
674 #endif 677 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698