Home
last modified time | relevance | path

Searched refs:deltaY (Results 1 – 25 of 98) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/Source/platform/scroll/
DScrollAnimator.cpp82 float deltaY = canScrollY ? e.deltaY() : 0; in handleWheelEvent() local
96 || (deltaY < 0 && maxForwardScrollDelta.height() > 0) in handleWheelEvent()
97 || (deltaY > 0 && maxBackwardScrollDelta.height() > 0)) { in handleWheelEvent()
100 if (deltaY) { in handleWheelEvent()
102 bool negative = deltaY < 0; in handleWheelEvent()
103 deltaY = m_scrollableArea->pageStep(VerticalScrollbar); in handleWheelEvent()
105 deltaY = -deltaY; in handleWheelEvent()
108 … scroll(VerticalScrollbar, granularity, m_scrollableArea->pixelStep(VerticalScrollbar), -deltaY); in handleWheelEvent()
/external/chromium_org/third_party/WebKit/Source/platform/mac/
DScrollElasticityController.mm164 float deltaY = m_overflowScrollDelta.height();
181 eventCoalescedDeltaY = -wheelEvent.deltaY();
185 deltaY += eventCoalescedDeltaY;
187 // Slightly prefer scrolling vertically by applying the = case to deltaY
188 if (fabsf(deltaY) >= fabsf(deltaX))
191 deltaY = 0;
220 if (deltaY != 0 && (fabsf(deltaX / deltaY) < rubberbandDirectionLockStretchRatio))
230 if (m_client->pinnedInDirection(FloatSize(0, deltaY))) {
231 if (deltaX != 0 && (fabsf(deltaY / deltaX) < rubberbandDirectionLockStretchRatio))
232 deltaY = 0;
[all …]
/external/chromium_org/third_party/WebKit/Source/core/events/
DGestureEvent.cpp37 float deltaY = 0; in create() local
49 deltaY = event.deltaY(); in create()
68 …sition().y(), event.ctrlKey(), event.altKey(), event.shiftKey(), event.metaKey(), deltaX, deltaY)); in create()
90 …X, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY) in GestureEvent() argument
93 , m_deltaY(deltaY) in GestureEvent()
DWheelEvent.cpp34 , deltaY(0) in WheelEventInit()
54 …taX : -initializer.deltaX, initializer.wheelDeltaY ? initializer.wheelDeltaY : -initializer.deltaY) in WheelEvent()
56 , m_deltaY(initializer.deltaY ? initializer.deltaY : -initializer.wheelDeltaY) in WheelEvent()
145 if (!(event.deltaX() || event.deltaY())) in WheelEventDispatchMediator()
148 …e(FloatPoint(event.wheelTicksX(), event.wheelTicksY()), FloatPoint(event.deltaX(), event.deltaY()), in WheelEventDispatchMediator()
DGestureEvent.h46 float deltaY() const { return m_deltaY; } in deltaY() function
52 …, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, float deltaX, float deltaY);
DWheelEvent.h40 double deltaY; member
85 double deltaY() const { return m_deltaY; } // Positive when scrolling down. in deltaY() function
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAwScrollOffsetManager.java36 void overScrollContainerViewBy(int deltaX, int deltaY, int scrollX, int scrollY, in overScrollContainerViewBy() argument
156 final int deltaY = y - scrollY; in scrollContainerViewTo() local
162 mDelegate.overScrollContainerViewBy(deltaX, deltaY, scrollX, scrollY, in scrollContainerViewTo()
173 public void overScrollBy(int deltaX, int deltaY) { in overScrollBy() argument
179 scrollBy(deltaX, deltaY); in overScrollBy()
182 private void scrollBy(int deltaX, int deltaY) { in scrollBy() argument
183 if (deltaX == 0 && deltaY == 0) return; in scrollBy()
192 mDelegate.overScrollContainerViewBy(deltaX, deltaY, scrollX, scrollY, in scrollBy()
/external/replicaisland/src/com/replica/replicaisland/
DCollisionSystem.java279 final int deltaX, final int deltaY, in executeStraigtRay() argument
292 } else if (deltaY != 0) { in executeStraigtRay()
293 distance = Math.abs(deltaY) + 1; in executeStraigtRay()
294 yIncrement = Utils.sign(deltaY); in executeStraigtRay()
346 final int deltaY = endTileY - startTileY; in executeRay() local
350 if (deltaX == 0 || deltaY == 0) { in executeRay()
352 endTileX, endTileY, deltaX, deltaY, hitPoint, hitNormal, visitor); in executeRay()
356 final int yIncrement = deltaY != 0 ? Utils.sign(deltaY) : 0; in executeRay()
361 …icalDelta = (endTileY > 0 && endTileY < worldHeight - 1) ? Math.abs(deltaY) + 1 : Math.abs(deltaY); in executeRay()
773 final float deltaY = y2 - y1; in calculateIntersectionBox() local
[all …]
DSphereCollisionVolume.java107 final float deltaY = other.getMaxYPosition(otherFlip) in intersects() local
110 final float centerY = deltaY / 2.0f; in intersects()
115 otherRadius = Math.max(deltaX, deltaY); in intersects()
/external/chromium_org/tools/perf/page_sets/tough_canvas_cases/canvas2d_balls_common/
Dbouncing_balls.js139 var deltaY = alive ? velocityY*timeStep+gravity*timeStep*timeStep/2 : 0;
143 while ((y + deltaY) > (1 - borderY) && alive) {
160 deltaY = 0;
162 deltaY = velocityY*remainingTime+gravity*remainingTime*remainingTime/2;
167 y += deltaY;
/external/chromium_org/content/browser/renderer_host/
Dweb_input_event_aura.cc141 webkit_event.deltaY = 0; in MakeWebMouseWheelEventFromAuraEvent()
146 webkit_event.deltaY = event->y_offset(); in MakeWebMouseWheelEventFromAuraEvent()
154 webkit_event.wheelTicksY = webkit_event.deltaY / kPixelsPerTick; in MakeWebMouseWheelEventFromAuraEvent()
155 if (offset_ordinal_y != 0.f && webkit_event.deltaY != 0.f) in MakeWebMouseWheelEventFromAuraEvent()
156 webkit_event.accelerationRatioY = offset_ordinal_y / webkit_event.deltaY; in MakeWebMouseWheelEventFromAuraEvent()
404 webkit_event.deltaY = 0; in MakeWebMouseWheelEventFromAuraEvent()
407 webkit_event.deltaY = event->y_offset(); in MakeWebMouseWheelEventFromAuraEvent()
411 webkit_event.wheelTicksY = webkit_event.deltaY / kPixelsPerTick; in MakeWebMouseWheelEventFromAuraEvent()
/external/chromium_org/content/browser/renderer_host/input/
Dtouch_action_filter_unittest.cc36 EXPECT_EQ(kDeltaY, scroll_update.data.scrollUpdate.deltaY); in TEST()
47 EXPECT_EQ(kDeltaY, scroll_update.data.scrollUpdate.deltaY); in TEST()
58 EXPECT_EQ(kDeltaY, scroll_update.data.scrollUpdate.deltaY); in TEST()
87 EXPECT_EQ(kDeltaY, scroll_update.data.scrollUpdate.deltaY); in TEST()
147 EXPECT_EQ(0, scroll_update.data.scrollUpdate.deltaY); in TEST()
164 EXPECT_EQ(0, scroll_update.data.scrollUpdate.deltaY); in TEST()
170 EXPECT_EQ(0, scroll_update2.data.scrollUpdate.deltaY); in TEST()
191 EXPECT_EQ(kDY, scroll_update.data.scrollUpdate.deltaY); in TEST()
220 EXPECT_EQ(kDY, scroll_update.data.scrollUpdate.deltaY); in TEST()
237 EXPECT_EQ(kDY, scroll_update.data.scrollUpdate.deltaY); in TEST()
[all …]
Dgesture_event_queue_unittest.cc238 EXPECT_EQ(-11, merged_event.data.scrollUpdate.deltaY); in TEST_F()
363 EXPECT_EQ(-4, merged_event.data.scrollUpdate.deltaY); in TEST_F()
380 EXPECT_EQ(-6, merged_event.data.scrollUpdate.deltaY); in TEST_F()
397 EXPECT_EQ(-6, merged_event.data.scrollUpdate.deltaY); in TEST_F()
414 EXPECT_EQ(-6, merged_event.data.scrollUpdate.deltaY); in TEST_F()
440 EXPECT_EQ(-7, merged_event.data.scrollUpdate.deltaY); in TEST_F()
464 EXPECT_EQ(-1, merged_event.data.scrollUpdate.deltaY); in TEST_F()
481 EXPECT_EQ(-3, merged_event.data.scrollUpdate.deltaY); in TEST_F()
503 EXPECT_EQ(-3, merged_event.data.scrollUpdate.deltaY); in TEST_F()
524 EXPECT_EQ(-2, merged_event.data.scrollUpdate.deltaY); in TEST_F()
[all …]
Dweb_input_event_builders_android.cc100 result.deltaY = scrollbar_pixels_per_tick; in Build()
104 result.deltaY = -scrollbar_pixels_per_tick; in Build()
Dinput_router_impl_unittest.cc518 EXPECT_EQ(-5, wheel_event->deltaY); in TEST_F()
535 EXPECT_EQ(-10 + -6, wheel_event->deltaY); // coalesced in TEST_F()
549 EXPECT_EQ(-7, wheel_event->deltaY); in TEST_F()
563 EXPECT_EQ(-10, wheel_event->deltaY); in TEST_F()
576 EXPECT_EQ(0, wheel_event->deltaY); in TEST_F()
752 EXPECT_EQ(ack_handler_->acked_wheel_event().deltaY, -5); in TEST_F()
760 EXPECT_EQ(ack_handler_->acked_wheel_event().deltaY, -5); in TEST_F()
1446 EXPECT_EQ(PinchScaleToWheelDelta(1.5), wheel_event->deltaY); in TEST_F()
1470 EXPECT_FLOAT_EQ(PinchScaleToWheelDelta(0.3f), wheel_event->deltaY); in TEST_F()
1499 EXPECT_EQ(PinchScaleToWheelDelta(1.5f), wheel_event->deltaY); in TEST_F()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/
DPlatformGestureEvent.h46 …l shiftKey, bool ctrlKey, bool altKey, bool metaKey, float deltaX, float deltaY, float velocityX, … in PlatformGestureEvent() argument
58 m_data.m_scrollUpdate.m_deltaY = deltaY; in PlatformGestureEvent()
75 float deltaY() const in deltaY() function
DPlatformWheelEvent.h82 …PlatformWheelEvent(IntPoint position, IntPoint globalPosition, float deltaX, float deltaY, float w… in PlatformWheelEvent() argument
87 , m_deltaY(deltaY) in PlatformWheelEvent()
109 float deltaY() const { return m_deltaY; } in deltaY() function
/external/chromium_org/content/common/input/
Dweb_input_event_traits.cc80 GetUnacceleratedDelta(event->deltaY, in Coalesce()
82 GetUnacceleratedDelta(event_to_coalesce.deltaY, in Coalesce()
85 event->deltaY += event_to_coalesce.deltaY; in Coalesce()
91 GetAccelerationRatio(event->deltaY, unaccelerated_y); in Coalesce()
174 event->data.scrollUpdate.deltaY += in Coalesce()
175 event_to_coalesce.data.scrollUpdate.deltaY; in Coalesce()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DTapGestureDetector.java167 float deltaY = currentY - downPoint.y; in trackMoveEvent() local
168 if (deltaX * deltaX + deltaY * deltaY > mTouchSlopSquare) { in trackMoveEvent()
DDesktopViewInterface.java15 void injectMouseWheelDeltaEvent(int deltaX, int deltaY); in injectMouseWheelDeltaEvent() argument
/external/chromium_org/third_party/WebKit/public/web/
DWebInputEvent.h357 float deltaY; variable
393 , deltaY(0.0f) in WebMouseWheelEvent()
456 float deltaY; member
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/data/rebaselineserver/
Dloupe.js64 var deltaY = Math.floor(event.offsetY/LOUPE_MAGNIFICATION_FACTOR);
67 this._currentCornerX + deltaX, this._currentCornerY + deltaY);
/external/chromium_org/ui/app_list/cocoa/
Dscroll_view_with_no_scrollbars.mm56 else if ([event deltaY] != 0)
57 downOrRight = [event deltaY] > 0;
/external/chromium_org/mojo/apps/js/
Dmain.js106 var deltaY = top - bottom;
109 if (nearZ < 0 || farZ < 0 || deltaZ < 0 || deltaY < 0 || deltaX < 0) {
116 frust.set(1, 1, 2 * nearZ / deltaY);
119 frust.set(2, 1, (top + bottom) / deltaY);
/external/chromium_org/content/renderer/input/
Dinput_handler_proxy.cc70 scroll_update_event.data.scrollUpdate.deltaY); in ShouldSuppressScrollForFlingBoosting()
222 -wheel_event.deltaY); in HandleInputEvent()
225 gfx::Vector2dF(-wheel_event.deltaX, -wheel_event.deltaY)); in HandleInputEvent()
285 -gesture_event.data.scrollUpdate.deltaY)); in HandleInputEvent()
705 synthetic_wheel.deltaY = increment.height; in TouchpadFlingScroll()

1234