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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2209773002: Remove the blocking touch handlers for the input[type=range] and add touch-action instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move the touch event handlers to the container in the shadow dom Created 4 years, 4 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 ASSERT(document); 1272 ASSERT(document);
1273 return eventHandlerCount(*document, EventHandlerRegistry::WheelEventBlocking ); 1273 return eventHandlerCount(*document, EventHandlerRegistry::WheelEventBlocking );
1274 } 1274 }
1275 1275
1276 unsigned Internals::scrollEventHandlerCount(Document* document) 1276 unsigned Internals::scrollEventHandlerCount(Document* document)
1277 { 1277 {
1278 ASSERT(document); 1278 ASSERT(document);
1279 return eventHandlerCount(*document, EventHandlerRegistry::ScrollEvent); 1279 return eventHandlerCount(*document, EventHandlerRegistry::ScrollEvent);
1280 } 1280 }
1281 1281
1282 unsigned Internals::blockingTouchStartOrMoveEventHandlerCount(Document* document )
1283 {
1284 DCHECK(document);
1285 return eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEv entBlocking);
1286 }
1287
1288 unsigned Internals::passiveTouchStartOrMoveEventHandlerCount(Document* document)
1289 {
1290 DCHECK(document);
1291 return eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEv entPassive);
1292 }
1293
1282 unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) 1294 unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document)
1283 { 1295 {
1284 ASSERT(document); 1296 ASSERT(document);
1285 return eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEv entBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMo veEventPassive); 1297 return eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMoveEv entBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchStartOrMo veEventPassive);
1286 } 1298 }
1287 1299
1288 unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) 1300 unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document)
1289 { 1301 {
1290 ASSERT(document); 1302 ASSERT(document);
1291 return eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCancelEv entBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCanc elEventPassive); 1303 return eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCancelEv entBlocking) + eventHandlerCount(*document, EventHandlerRegistry::TouchEndOrCanc elEventPassive);
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 } 2625 }
2614 2626
2615 String Internals::getProgrammaticScrollAnimationState(Node* node) const 2627 String Internals::getProgrammaticScrollAnimationState(Node* node) const
2616 { 2628 {
2617 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) 2629 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node))
2618 return scrollableArea->programmaticScrollAnimator().runStateAsText(); 2630 return scrollableArea->programmaticScrollAnimator().runStateAsText();
2619 return String(); 2631 return String();
2620 } 2632 }
2621 2633
2622 } // namespace blink 2634 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698