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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 2856153003: Pass TouchAction bits together with rect in SetTouchEventHandlerRegion (Closed)
Patch Set: rebase + comment Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
index 2f0b813384a1f55ac0a07ad7b24b8bca68faedad..317da4943e75f44fa0f4f4e622d136ac0ae25b50 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -798,10 +798,13 @@ void ScrollingCoordinator::SetTouchEventTargetRects(
for (const auto& layer_rect : graphics_layer_rects) {
const GraphicsLayer* graphics_layer = layer_rect.key;
- WebVector<WebRect> web_rects(layer_rect.value.size());
- for (size_t i = 0; i < layer_rect.value.size(); ++i)
- web_rects[i] = EnclosingIntRect(layer_rect.value[i]);
- graphics_layer->PlatformLayer()->SetTouchEventHandlerRegion(web_rects);
+ WebVector<WebTouchInfo> touch(layer_rect.value.size());
+ for (size_t i = 0; i < layer_rect.value.size(); ++i) {
+ touch[i].rect = EnclosingIntRect(layer_rect.value[i]);
+ // TODO(xidachen): route the real value here
+ touch[i].touch_action = TouchAction::kTouchActionNone;
+ }
+ graphics_layer->PlatformLayer()->SetTouchEventHandlerRegion(touch);
}
}
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698