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

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

Issue 2856153003: Pass TouchAction bits together with rect in SetTouchEventHandlerRegion (Closed)
Patch Set: change comments 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
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 be89186618379733becce7107e6ef7f3e41ab966..187440dfa126082b7f4b414be213fd8383bef7a5 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -786,10 +786,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);
}
}

Powered by Google App Engine
This is Rietveld 408576698