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

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

Issue 1052433003: Allow postponed rail application for touch scrolling - blink side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix broken test. Created 5 years, 8 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // into WebCore, so round-tripping from WebInputEvent to a WebCore 166 // into WebCore, so round-tripping from WebInputEvent to a WebCore
167 // event and back will not preserve these flags. 167 // event and back will not preserve these flags.
168 CapsLockOn = 1 << 9, 168 CapsLockOn = 1 << 9,
169 NumLockOn = 1 << 10, 169 NumLockOn = 1 << 10,
170 170
171 // Left/right modifiers for keyboard events. 171 // Left/right modifiers for keyboard events.
172 IsLeft = 1 << 11, 172 IsLeft = 1 << 11,
173 IsRight = 1 << 12, 173 IsRight = 1 << 12,
174 }; 174 };
175 175
176 // The rail mode for a wheel event specifies the axis on which scrolling is 176 // The rail mode for an event specifies the axis on which scrolling is
177 // expected to stick. If this axis is set to Free, then scrolling is not 177 // expected to stick. If this axis is set to Free, then scrolling is not
178 // stuck to any axis. 178 // stuck to any axis.
179 enum RailsMode { 179 enum RailsMode {
180 RailsModeFree = 0, 180 RailsModeFree = 0,
181 RailsModeHorizontal = 1, 181 RailsModeHorizontal = 1,
182 RailsModeVertical = 2, 182 RailsModeVertical = 2,
183 }; 183 };
184 184
185 static const int InputModifiers = ShiftKey | ControlKey | AltKey | MetaKey; 185 static const int InputModifiers = ShiftKey | ControlKey | AltKey | MetaKey;
186 186
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 float velocityX; 473 float velocityX;
474 float velocityY; 474 float velocityY;
475 // Whether any previous GestureScrollUpdate in the current scroll 475 // Whether any previous GestureScrollUpdate in the current scroll
476 // sequence was suppressed (e.g., the causal touchmove was 476 // sequence was suppressed (e.g., the causal touchmove was
477 // preventDefault'ed). This bit is particularly useful for 477 // preventDefault'ed). This bit is particularly useful for
478 // determining whether the observed scroll update sequence captures 478 // determining whether the observed scroll update sequence captures
479 // the entirety of the generative motion. 479 // the entirety of the generative motion.
480 bool previousUpdateInSequencePrevented; 480 bool previousUpdateInSequencePrevented;
481 bool preventPropagation; 481 bool preventPropagation;
482 bool inertial; 482 bool inertial;
483 RailsMode railsMode;
jdduke (slow) 2015/04/02 16:55:53 I can't say I'm thrilled with this change. Now, ev
483 } scrollUpdate; 484 } scrollUpdate;
484 485
485 struct { 486 struct {
486 float velocityX; 487 float velocityX;
487 float velocityY; 488 float velocityY;
489 RailsMode railsMode;
488 } flingStart; 490 } flingStart;
489 491
490 struct { 492 struct {
491 // If set to true, don't treat flingCancel 493 // If set to true, don't treat flingCancel
492 // as a part of fling boost events sequence. 494 // as a part of fling boost events sequence.
493 bool preventBoosting; 495 bool preventBoosting;
494 } flingCancel; 496 } flingCancel;
495 497
496 struct { 498 struct {
497 float scale; 499 float scale;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 , uniqueTouchEventId(0) 545 , uniqueTouchEventId(0)
544 { 546 {
545 } 547 }
546 }; 548 };
547 549
548 #pragma pack(pop) 550 #pragma pack(pop)
549 551
550 } // namespace blink 552 } // namespace blink
551 553
552 #endif 554 #endif
OLDNEW
« Source/web/WebViewImpl.h ('K') | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698