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

Unified Diff: content/browser/renderer_host/render_widget_host_input_event_router.h

Issue 1545683002: Use WeakPtr to RenderWidgetHostViewBase in InputEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address suggestions. Created 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_input_event_router.h
diff --git a/content/browser/renderer_host/render_widget_host_input_event_router.h b/content/browser/renderer_host/render_widget_host_input_event_router.h
index 54a10cfcf58c41f7334c880996855bbb6fcff13f..062b3f3f8246b36a1d3c02f3dabcf819fd90bcba 100644
--- a/content/browser/renderer_host/render_widget_host_input_event_router.h
+++ b/content/browser/renderer_host/render_widget_host_input_event_router.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/containers/hash_tables.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/content_export.h"
namespace blink {
@@ -55,12 +56,13 @@ class CONTENT_EXPORT RenderWidgetHostInputEventRouter {
}
private:
+ using SurfaceIdNamespaceOwnerMap =
+ base::hash_map<uint32_t, base::WeakPtr<RenderWidgetHostViewBase>>;
+
RenderWidgetHostViewBase* FindEventTarget(RenderWidgetHostViewBase* root_view,
const gfx::Point& point,
gfx::Point* transformed_point);
- typedef base::hash_map<uint32_t, RenderWidgetHostViewBase*>
- SurfaceIdNamespaceOwnerMap;
SurfaceIdNamespaceOwnerMap owner_map_;
RenderWidgetHostViewBase* current_touch_target_;
int active_touches_;
« 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