| OLD | NEW |
| 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/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "cc/output/compositor_frame_metadata.h" | 9 #include "cc/output/compositor_frame_metadata.h" |
| 10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 10 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 11 #include "content/common/input/synthetic_pinch_gesture_params.h" | 11 #include "content/common/input/synthetic_pinch_gesture_params.h" |
| 12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
| 13 #include "content/common/input/synthetic_tap_gesture_params.h" | 13 #include "content/common/input/synthetic_tap_gesture_params.h" |
| 14 #include "third_party/WebKit/public/web/WebInputEvent.h" | 14 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 15 #include "ui/events/keycodes/dom4/keycode_converter.h" | 15 #include "ui/events/keycodes/dom/keycode_converter.h" |
| 16 #include "ui/gfx/geometry/point.h" | 16 #include "ui/gfx/geometry/point.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 namespace devtools { | 19 namespace devtools { |
| 20 namespace input { | 20 namespace input { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 gfx::Point CssPixelsToPoint(int x, int y, float page_scale_factor) { | 24 gfx::Point CssPixelsToPoint(int x, int y, float page_scale_factor) { |
| 25 return gfx::Point(x * page_scale_factor, y * page_scale_factor); | 25 return gfx::Point(x * page_scale_factor, y * page_scale_factor); |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 } else { | 455 } else { |
| 456 client_->SendError(command_id, | 456 client_->SendError(command_id, |
| 457 Response::InternalError(base::StringPrintf( | 457 Response::InternalError(base::StringPrintf( |
| 458 "Synthetic tap failed, result was %d", result))); | 458 "Synthetic tap failed, result was %d", result))); |
| 459 } | 459 } |
| 460 } | 460 } |
| 461 | 461 |
| 462 } // namespace input | 462 } // namespace input |
| 463 } // namespace devtools | 463 } // namespace devtools |
| 464 } // namespace content | 464 } // namespace content |
| OLD | NEW |