| 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 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 bool is_registered(const cc::FrameSinkId& id) { | 80 bool is_registered(const cc::FrameSinkId& id) { |
| 81 return owner_map_.find(id) != owner_map_.end(); | 81 return owner_map_.find(id) != owner_map_.end(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void OnHittestData(const FrameHostMsg_HittestData_Params& params); | 84 void OnHittestData(const FrameHostMsg_HittestData_Params& params); |
| 85 | 85 |
| 86 // Returns the RenderWidgetHostImpl inside the |root_view| at |point| where | 86 // Returns the RenderWidgetHostImpl inside the |root_view| at |point| where |
| 87 // |point| is with respect to |root_view|'s coordinates. If a RWHI is found, | 87 // |point| is with respect to |root_view|'s coordinates. If a RWHI is found, |
| 88 // the value of |transformed_point| is the coordinate of the point with | 88 // the value of |transformed_point| is the coordinate of the point with |
| 89 // respect to the RWHI's coordinates. | 89 // respect to the RWHI's coordinates. If |root_view| is nullptr, this method |
| 90 // will return nullptr and will not modify |transformed_point|. |
| 90 RenderWidgetHostImpl* GetRenderWidgetHostAtPoint( | 91 RenderWidgetHostImpl* GetRenderWidgetHostAtPoint( |
| 91 RenderWidgetHostViewBase* root_view, | 92 RenderWidgetHostViewBase* root_view, |
| 92 const gfx::Point& point, | 93 const gfx::Point& point, |
| 93 gfx::Point* transformed_point); | 94 gfx::Point* transformed_point); |
| 94 | 95 |
| 95 private: | 96 private: |
| 96 struct HittestData { | 97 struct HittestData { |
| 97 bool ignored_for_hittest; | 98 bool ignored_for_hittest; |
| 98 }; | 99 }; |
| 99 | 100 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); | 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostInputEventRouter); |
| 179 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 180 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
| 180 InputEventRouterGestureTargetQueueTest); | 181 InputEventRouterGestureTargetQueueTest); |
| 181 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, | 182 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, |
| 182 InputEventRouterTouchpadGestureTargetTest); | 183 InputEventRouterTouchpadGestureTargetTest); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace content | 186 } // namespace content |
| 186 | 187 |
| 187 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ | 188 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_INPUT_EVENT_ROUTER_H
_ |
| OLD | NEW |