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

Side by Side Diff: content/browser/devtools/protocol/input_handler.cc

Issue 1285133008: Remove obsolete SynthesizeScrollGesture method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/devtools/protocol/input_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/devtools/protocol/input_handler.h" 5 #include "content/browser/devtools/protocol/input_handler.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 Response InputHandler::SynthesizeScrollGesture( 340 Response InputHandler::SynthesizeScrollGesture(
341 DevToolsCommandId command_id, 341 DevToolsCommandId command_id,
342 int x, 342 int x,
343 int y, 343 int y,
344 const int* x_distance, 344 const int* x_distance,
345 const int* y_distance, 345 const int* y_distance,
346 const int* x_overscroll, 346 const int* x_overscroll,
347 const int* y_overscroll, 347 const int* y_overscroll,
348 const bool* prevent_fling, 348 const bool* prevent_fling,
349 const int* speed, 349 const int* speed,
350 const std::string* gesture_source_type) {
351 return SynthesizeScrollGesture(
352 command_id, x, y, x_distance, y_distance, x_overscroll, y_overscroll,
353 prevent_fling, speed, gesture_source_type, nullptr, nullptr, nullptr);
354 }
355
356 Response InputHandler::SynthesizeScrollGesture(
357 DevToolsCommandId command_id,
358 int x,
359 int y,
360 const int* x_distance,
361 const int* y_distance,
362 const int* x_overscroll,
363 const int* y_overscroll,
364 const bool* prevent_fling,
365 const int* speed,
366 const std::string* gesture_source_type, 350 const std::string* gesture_source_type,
367 const int* repeat_count, 351 const int* repeat_count,
368 const int* repeat_delay_ms, 352 const int* repeat_delay_ms,
369 const std::string* interaction_marker_name) { 353 const std::string* interaction_marker_name) {
370 if (!host_) 354 if (!host_)
371 return Response::ServerError("Could not connect to view"); 355 return Response::ServerError("Could not connect to view");
372 356
373 SyntheticSmoothScrollGestureParams gesture_params; 357 SyntheticSmoothScrollGestureParams gesture_params;
374 const bool kDefaultPreventFling = true; 358 const bool kDefaultPreventFling = true;
375 const int kDefaultSpeed = 800; 359 const int kDefaultSpeed = 800;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } else { 515 } else {
532 client_->SendError(command_id, 516 client_->SendError(command_id,
533 Response::InternalError(base::StringPrintf( 517 Response::InternalError(base::StringPrintf(
534 "Synthetic tap failed, result was %d", result))); 518 "Synthetic tap failed, result was %d", result)));
535 } 519 }
536 } 520 }
537 521
538 } // namespace input 522 } // namespace input
539 } // namespace devtools 523 } // namespace devtools
540 } // namespace content 524 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/input_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698