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

Unified Diff: content/renderer/input/input_event_filter.h

Issue 2813683002: Allow MainThreadEventQueue to call the RenderWidget directly. (Closed)
Patch Set: Fix style nits Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/idle_user_detector.cc ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_event_filter.h
diff --git a/content/renderer/input/input_event_filter.h b/content/renderer/input/input_event_filter.h
index b042751901871adceca0cf950eb81034cb0da65b..675568b807fb59b88003282195c9b5fb2af7d36c 100644
--- a/content/renderer/input/input_event_filter.h
+++ b/content/renderer/input/input_event_filter.h
@@ -42,8 +42,7 @@ class Sender;
namespace content {
class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
- public IPC::MessageFilter,
- public MainThreadEventQueueClient {
+ public IPC::MessageFilter {
public:
InputEventFilter(
const base::Callback<void(const IPC::Message&)>& main_listener,
@@ -61,7 +60,9 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
// InputHostMsg_HandleInputEvent_ACK.
//
void SetInputHandlerManager(InputHandlerManager*) override;
- void RegisterRoutingID(int routing_id) override;
+ void RegisterRoutingID(
+ int routing_id,
+ const scoped_refptr<MainThreadEventQueue>& input_event_queue) override;
void UnregisterRoutingID(int routing_id) override;
void RegisterAssociatedRenderFrameRoutingID(
int render_frame_routing_id,
@@ -77,34 +78,12 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
ui::WebScopedInputEvent event,
const ui::LatencyInfo& latency_info) override;
- void NotifyInputEventHandled(int routing_id,
- blink::WebInputEvent::Type type,
- blink::WebInputEventResult result,
- InputEventAckState ack_result) override;
- void ProcessRafAlignedInput(int routing_id,
- base::TimeTicks frame_time) override;
-
// IPC::MessageFilter methods:
void OnFilterAdded(IPC::Channel* channel) override;
void OnFilterRemoved() override;
void OnChannelClosing() override;
bool OnMessageReceived(const IPC::Message& message) override;
- // MainThreadEventQueueClient methods:
- void HandleEventOnMainThread(int routing_id,
- const blink::WebCoalescedInputEvent* event,
- const ui::LatencyInfo& latency,
- InputEventDispatchType dispatch_type) override;
- // Send an InputEventAck IPC message. |touch_event_id| represents
- // the unique event id for the original WebTouchEvent and should
- // be 0 if otherwise. See WebInputEventTraits::GetUniqueTouchEventId.
- void SendInputEventAck(int routing_id,
- blink::WebInputEvent::Type type,
- InputEventAckState ack_result,
- uint32_t touch_event_id) override;
-
- void NeedsMainFrame(int routing_id) override;
-
private:
~InputEventFilter() override;
@@ -149,8 +128,6 @@ class CONTENT_EXPORT InputEventFilter : public InputHandlerManagerClient,
// Maps RenderFrame routing ids to RenderView routing ids so that
// events sent down the two routing pipes can be handled synchronously.
AssociatedRoutes associated_routes_;
-
- blink::scheduler::RendererScheduler* renderer_scheduler_;
};
} // namespace content
« no previous file with comments | « content/renderer/idle_user_detector.cc ('k') | content/renderer/input/input_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698