Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Side by Side Diff: content/browser/renderer_host/render_widget_host_input_event_router.h

Issue 2547213002: Cancel drag operation when the tab RenderWidgetHostView does not exist (Mac) (Closed)
Patch Set: Added TODOs Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 _
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_input_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698