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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 945393002: Adding support for diagonal scrolling to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving more of the non-Chromium-binary into the other CL. Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index 591cd45e760bc63b6ed74645670aabf5ba452ec5..03fde834fcff3e8e465d2b3c144cbc2b3667850e 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -367,7 +367,19 @@ bool BeginSmoothScroll(v8::Isolate* isolate,
distance.set_x(-distance_length);
else if (direction == "left")
distance.set_x(distance_length);
- else {
+ else if (direction == "upleft") {
+ distance.set_y(distance_length);
+ distance.set_x(distance_length);
+ } else if (direction == "upright") {
+ distance.set_y(distance_length);
+ distance.set_x(-distance_length);
+ } else if (direction == "downleft") {
+ distance.set_y(-distance_length);
+ distance.set_x(distance_length);
+ } else if (direction == "downright") {
+ distance.set_y(-distance_length);
+ distance.set_x(-distance_length);
+ } else {
return false;
}
gesture_params->distances.push_back(distance);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698