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

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

Issue 2166703003: Implement Main Thread RAF Aligned Input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_main_thread_queue
Patch Set: Created 4 years, 5 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void SetBoundHandler(const Handler& handler) override; 63 void SetBoundHandler(const Handler& handler) override;
64 void RegisterRoutingID(int routing_id) override; 64 void RegisterRoutingID(int routing_id) override;
65 void UnregisterRoutingID(int routing_id) override; 65 void UnregisterRoutingID(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 DidStartFlinging(int routing_id) override; 68 void DidStartFlinging(int routing_id) override;
69 void DidStopFlinging(int routing_id) override; 69 void DidStopFlinging(int routing_id) override;
70 void NotifyInputEventHandled(int routing_id, 70 void NotifyInputEventHandled(int routing_id,
71 blink::WebInputEvent::Type type, 71 blink::WebInputEvent::Type type,
72 InputEventAckState ack_result) override; 72 InputEventAckState ack_result) override;
73 void ProcessVSyncAlignedInput(int routing_id) override;
tdresser 2016/07/20 21:43:08 I think we want to align with rAF more than we wan
73 74
74 // IPC::MessageFilter methods: 75 // IPC::MessageFilter methods:
75 void OnFilterAdded(IPC::Sender* sender) override; 76 void OnFilterAdded(IPC::Sender* sender) override;
76 void OnFilterRemoved() override; 77 void OnFilterRemoved() override;
77 void OnChannelClosing() override; 78 void OnChannelClosing() override;
78 bool OnMessageReceived(const IPC::Message& message) override; 79 bool OnMessageReceived(const IPC::Message& message) override;
79 80
80 // MainThreadEventQueueClient methods: 81 // MainThreadEventQueueClient methods:
81 void HandleEventOnMainThread(int routing_id, 82 void HandleEventOnMainThread(int routing_id,
82 const blink::WebInputEvent* event, 83 const blink::WebInputEvent* event,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Used to intercept overscroll notifications while an event is being 123 // Used to intercept overscroll notifications while an event is being
123 // dispatched. If the event causes overscroll, the overscroll metadata can be 124 // dispatched. If the event causes overscroll, the overscroll metadata can be
124 // bundled in the event ack, saving an IPC. Note that we must continue 125 // bundled in the event ack, saving an IPC. Note that we must continue
125 // supporting overscroll IPC notifications due to fling animation updates. 126 // supporting overscroll IPC notifications due to fling animation updates.
126 std::unique_ptr<DidOverscrollParams>* current_overscroll_params_; 127 std::unique_ptr<DidOverscrollParams>* current_overscroll_params_;
127 }; 128 };
128 129
129 } // namespace content 130 } // namespace content
130 131
131 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ 132 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698