| 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| 11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "cc/surfaces/surface_hittest_delegate.h" | 13 #include "cc/surfaces/surface_hittest_delegate.h" |
| 14 #include "cc/surfaces/surface_id.h" | 14 #include "cc/surfaces/surface_id.h" |
| 15 #include "content/browser/renderer_host/render_widget_host_view_base_observer.h" | 15 #include "content/browser/renderer_host/render_widget_host_view_base_observer.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "ui/gfx/geometry/vector2d.h" |
| 17 | 18 |
| 18 struct FrameHostMsg_HittestData_Params; | 19 struct FrameHostMsg_HittestData_Params; |
| 19 | 20 |
| 20 namespace blink { | 21 namespace blink { |
| 21 class WebMouseEvent; | 22 class WebMouseEvent; |
| 22 class WebMouseWheelEvent; | 23 class WebMouseWheelEvent; |
| 23 class WebTouchEvent; | 24 class WebTouchEvent; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace gfx { | 27 namespace gfx { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 base::hash_map<uint32_t, RenderWidgetHostViewBase*>; | 91 base::hash_map<uint32_t, RenderWidgetHostViewBase*>; |
| 91 | 92 |
| 92 void ClearAllObserverRegistrations(); | 93 void ClearAllObserverRegistrations(); |
| 93 | 94 |
| 94 RenderWidgetHostViewBase* FindEventTarget(RenderWidgetHostViewBase* root_view, | 95 RenderWidgetHostViewBase* FindEventTarget(RenderWidgetHostViewBase* root_view, |
| 95 const gfx::Point& point, | 96 const gfx::Point& point, |
| 96 gfx::Point* transformed_point); | 97 gfx::Point* transformed_point); |
| 97 | 98 |
| 98 SurfaceIdNamespaceOwnerMap owner_map_; | 99 SurfaceIdNamespaceOwnerMap owner_map_; |
| 99 RenderWidgetHostViewBase* current_touch_target_; | 100 RenderWidgetHostViewBase* current_touch_target_; |
| 101 gfx::Vector2d touch_delta_; |
| 100 int active_touches_; | 102 int active_touches_; |
| 101 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 103 std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> |
| 102 hittest_data_; | 104 hittest_data_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 106 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 } // namespace content | 109 } // namespace content |
| 108 | 110 |
| 109 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 111 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
| OLD | NEW |