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

Side by Side Diff: content/renderer/input/input_event_filter.h

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync the fling states Created 4 years, 7 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // the thread where the InputEventFilter was constructed.) The responsibility 59 // the thread where the InputEventFilter was constructed.) The responsibility
60 // is left to the eventual handler to deliver the corresponding 60 // is left to the eventual handler to deliver the corresponding
61 // InputHostMsg_HandleInputEvent_ACK. 61 // InputHostMsg_HandleInputEvent_ACK.
62 // 62 //
63 void SetBoundHandler(const Handler& handler) override; 63 void SetBoundHandler(const Handler& handler) override;
64 void DidAddInputHandler(int routing_id) override; 64 void DidAddInputHandler(int routing_id) override;
65 void DidRemoveInputHandler(int routing_id) override; 65 void DidRemoveInputHandler(int routing_id) override;
66 void DidOverscroll(int routing_id, 66 void DidOverscroll(int routing_id,
67 const DidOverscrollParams& params) override; 67 const DidOverscrollParams& params) override;
68 void DidStopFlinging(int routing_id) override; 68 void DidStopFlinging(int routing_id) override;
69 void DidStartFlinging(bool is_on_impl) override;
69 void NotifyInputEventHandled(int routing_id, 70 void NotifyInputEventHandled(int routing_id,
70 blink::WebInputEvent::Type type) override; 71 blink::WebInputEvent::Type type) override;
71 72
72 // IPC::MessageFilter methods: 73 // IPC::MessageFilter methods:
73 void OnFilterAdded(IPC::Sender* sender) override; 74 void OnFilterAdded(IPC::Sender* sender) override;
74 void OnFilterRemoved() override; 75 void OnFilterRemoved() override;
75 void OnChannelClosing() override; 76 void OnChannelClosing() override;
76 bool OnMessageReceived(const IPC::Message& message) override; 77 bool OnMessageReceived(const IPC::Message& message) override;
77 78
78 // MainThreadEventQueueClient methods: 79 // MainThreadEventQueueClient methods:
(...skipping 28 matching lines...) Expand all
107 108
108 using RouteQueueMap = 109 using RouteQueueMap =
109 std::unordered_map<int, std::unique_ptr<MainThreadEventQueue>>; 110 std::unordered_map<int, std::unique_ptr<MainThreadEventQueue>>;
110 RouteQueueMap route_queues_; 111 RouteQueueMap route_queues_;
111 112
112 // Used to intercept overscroll notifications while an event is being 113 // Used to intercept overscroll notifications while an event is being
113 // dispatched. If the event causes overscroll, the overscroll metadata can be 114 // dispatched. If the event causes overscroll, the overscroll metadata can be
114 // bundled in the event ack, saving an IPC. Note that we must continue 115 // bundled in the event ack, saving an IPC. Note that we must continue
115 // supporting overscroll IPC notifications due to fling animation updates. 116 // supporting overscroll IPC notifications due to fling animation updates.
116 std::unique_ptr<DidOverscrollParams>* current_overscroll_params_; 117 std::unique_ptr<DidOverscrollParams>* current_overscroll_params_;
118
119 bool is_flinging_on_main_;
120 bool is_flinging_on_impl_;
117 }; 121 };
118 122
119 } // namespace content 123 } // namespace content
120 124
121 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 125 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698