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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "cc/output/compositor_frame_metadata.h" | 13 #include "cc/output/compositor_frame_metadata.h" |
14 #include "content/browser/renderer_host/render_widget_host_impl.h" | 14 #include "content/browser/renderer_host/render_widget_host_impl.h" |
15 #include "content/common/input/synthetic_pinch_gesture_params.h" | 15 #include "content/common/input/synthetic_pinch_gesture_params.h" |
16 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 16 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
17 #include "content/common/input/synthetic_tap_gesture_params.h" | 17 #include "content/common/input/synthetic_tap_gesture_params.h" |
18 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
19 #include "ui/events/keycodes/dom/keycode_converter.h" | 19 #include "ui/events/keycodes/dom/keycode_converter.h" |
20 #include "ui/gfx/geometry/point.h" | 20 #include "ui/gfx/geometry/point.h" |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 namespace devtools { | 23 namespace devtools { |
24 namespace input { | 24 namespace input { |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 gfx::PointF CssPixelsToPointF(int x, int y, float page_scale_factor) { | 28 gfx::PointF CssPixelsToPointF(int x, int y, float page_scale_factor) { |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 } else { | 517 } else { |
518 client_->SendError(command_id, | 518 client_->SendError(command_id, |
519 Response::InternalError(base::StringPrintf( | 519 Response::InternalError(base::StringPrintf( |
520 "Synthetic tap failed, result was %d", result))); | 520 "Synthetic tap failed, result was %d", result))); |
521 } | 521 } |
522 } | 522 } |
523 | 523 |
524 } // namespace input | 524 } // namespace input |
525 } // namespace devtools | 525 } // namespace devtools |
526 } // namespace content | 526 } // namespace content |
OLD | NEW |