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

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

Issue 96743003: Fix JS interface for synthetic smooth scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 e3048157dce06875268d53bdca5357d1c74fc499..a5165222d818af64b0c28402f6d2ebebd91de6ff 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -283,11 +283,11 @@ class GpuBenchmarkingWrapper : public v8::Extension {
" chrome.gpuBenchmarking.DEFAULT_INPUT;"
" speed_in_pixels_s = opt_speed_in_pixels_s || 800;"
" native function BeginSmoothScroll();"
- " if (typeof opt_mouse_event_x !== 'undefined' &&"
- " typeof opt_mouse_event_y !== 'undefined') {"
+ " if (typeof opt_start_x !== 'undefined' &&"
+ " typeof opt_start_y !== 'undefined') {"
" return BeginSmoothScroll(pixels_to_scroll, callback,"
" gesture_source_type, speed_in_pixels_s,"
- " opt_mouse_event_x, opt_mouse_event_y);"
+ " opt_start_x, opt_start_y);"
" } else {"
" return BeginSmoothScroll(pixels_to_scroll, callback,"
" gesture_source_type,"
@@ -477,7 +477,7 @@ class GpuBenchmarkingWrapper : public v8::Extension {
if (!context.Init(false))
return;
- // Account for the 2 optional arguments, mouse_event_x and mouse_event_y.
+ // Account for the 2 optional arguments, start_x and start_y.
int arglen = args.Length();
if (arglen < 4 ||
!args[0]->IsNumber() ||
« 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