OLD | NEW |
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 void DidOverscroll(int routing_id, | 68 void DidOverscroll(int routing_id, |
69 const ui::DidOverscrollParams& params) override; | 69 const ui::DidOverscrollParams& params) override; |
70 void DidStartFlinging(int routing_id) override; | 70 void DidStartFlinging(int routing_id) override; |
71 void DidStopFlinging(int routing_id) override; | 71 void DidStopFlinging(int routing_id) override; |
72 void NotifyInputEventHandled(int routing_id, | 72 void NotifyInputEventHandled(int routing_id, |
73 blink::WebInputEvent::Type type, | 73 blink::WebInputEvent::Type type, |
74 InputEventAckState ack_result) override; | 74 InputEventAckState ack_result) override; |
75 void ProcessRafAlignedInput(int routing_id) override; | 75 void ProcessRafAlignedInput(int routing_id) override; |
76 | 76 |
77 // IPC::MessageFilter methods: | 77 // IPC::MessageFilter methods: |
78 void OnFilterAdded(IPC::Sender* sender) override; | 78 void OnFilterAdded(IPC::Channel* channel) override; |
79 void OnFilterRemoved() override; | 79 void OnFilterRemoved() override; |
80 void OnChannelClosing() override; | 80 void OnChannelClosing() override; |
81 bool OnMessageReceived(const IPC::Message& message) override; | 81 bool OnMessageReceived(const IPC::Message& message) override; |
82 | 82 |
83 // MainThreadEventQueueClient methods: | 83 // MainThreadEventQueueClient methods: |
84 void HandleEventOnMainThread(int routing_id, | 84 void HandleEventOnMainThread(int routing_id, |
85 const blink::WebInputEvent* event, | 85 const blink::WebInputEvent* event, |
86 const ui::LatencyInfo& latency, | 86 const ui::LatencyInfo& latency, |
87 InputEventDispatchType dispatch_type) override; | 87 InputEventDispatchType dispatch_type) override; |
88 // Send an InputEventAck IPC message. |touch_event_id| represents | 88 // Send an InputEventAck IPC message. |touch_event_id| represents |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 using RouteQueueMap = | 132 using RouteQueueMap = |
133 std::unordered_map<int, scoped_refptr<MainThreadEventQueue>>; | 133 std::unordered_map<int, scoped_refptr<MainThreadEventQueue>>; |
134 RouteQueueMap route_queues_; | 134 RouteQueueMap route_queues_; |
135 | 135 |
136 blink::scheduler::RendererScheduler* renderer_scheduler_; | 136 blink::scheduler::RendererScheduler* renderer_scheduler_; |
137 }; | 137 }; |
138 | 138 |
139 } // namespace content | 139 } // namespace content |
140 | 140 |
141 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ | 141 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ |
OLD | NEW |