| 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 "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" | 
| 14 #include "cc/surfaces/surface_hittest_delegate.h" | 14 #include "cc/surfaces/surface_hittest_delegate.h" | 
| 15 #include "cc/surfaces/surface_id.h" | 15 #include "cc/surfaces/surface_id.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 85   using WeakTarget = base::WeakPtr<RenderWidgetHostViewBase>; | 86   using WeakTarget = base::WeakPtr<RenderWidgetHostViewBase>; | 
| 86   using SurfaceIdNamespaceOwnerMap = | 87   using SurfaceIdNamespaceOwnerMap = | 
| 87       base::hash_map<uint32_t, base::WeakPtr<RenderWidgetHostViewBase>>; | 88       base::hash_map<uint32_t, base::WeakPtr<RenderWidgetHostViewBase>>; | 
| 88 | 89 | 
| 89   RenderWidgetHostViewBase* FindEventTarget(RenderWidgetHostViewBase* root_view, | 90   RenderWidgetHostViewBase* FindEventTarget(RenderWidgetHostViewBase* root_view, | 
| 90                                             const gfx::Point& point, | 91                                             const gfx::Point& point, | 
| 91                                             gfx::Point* transformed_point); | 92                                             gfx::Point* transformed_point); | 
| 92 | 93 | 
| 93   SurfaceIdNamespaceOwnerMap owner_map_; | 94   SurfaceIdNamespaceOwnerMap owner_map_; | 
| 94   WeakTarget current_touch_target_; | 95   WeakTarget current_touch_target_; | 
|  | 96   gfx::Vector2d touch_delta_; | 
| 95   int active_touches_; | 97   int active_touches_; | 
| 96   std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 98   std::unordered_map<cc::SurfaceId, HittestData, cc::SurfaceIdHash> | 
| 97       hittest_data_; | 99       hittest_data_; | 
| 98 | 100 | 
| 99   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 101   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 
| 100 }; | 102 }; | 
| 101 | 103 | 
| 102 }  // namespace content | 104 }  // namespace content | 
| 103 | 105 | 
| 104 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
     _ | 106 #endif  // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
     _ | 
| OLD | NEW | 
|---|