OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/renderer_host/render_widget_host_input_event_router.h" | 5 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 | |
11 #include "cc/quads/surface_draw_quad.h" | 10 #include "cc/quads/surface_draw_quad.h" |
12 #include "cc/surfaces/surface_id_allocator.h" | |
13 #include "cc/surfaces/surface_manager.h" | 11 #include "cc/surfaces/surface_manager.h" |
14 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" | 12 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
15 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 13 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
16 #include "content/browser/renderer_host/render_widget_host_impl.h" | 14 #include "content/browser/renderer_host/render_widget_host_impl.h" |
17 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
18 #include "content/common/frame_messages.h" | 16 #include "content/common/frame_messages.h" |
19 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 17 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
20 #include "ui/events/blink/web_input_event_traits.h" | 18 #include "ui/events/blink/web_input_event_traits.h" |
21 | 19 |
22 namespace { | 20 namespace { |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 if (!touchpad_gesture_target_.target) | 804 if (!touchpad_gesture_target_.target) |
807 return; | 805 return; |
808 | 806 |
809 // TODO(mohsen): Add tests to check event location. | 807 // TODO(mohsen): Add tests to check event location. |
810 event->x += touchpad_gesture_target_.delta.x(); | 808 event->x += touchpad_gesture_target_.delta.x(); |
811 event->y += touchpad_gesture_target_.delta.y(); | 809 event->y += touchpad_gesture_target_.delta.y(); |
812 touchpad_gesture_target_.target->ProcessGestureEvent(*event, latency); | 810 touchpad_gesture_target_.target->ProcessGestureEvent(*event, latency); |
813 } | 811 } |
814 | 812 |
815 } // namespace content | 813 } // namespace content |
OLD | NEW |