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

Side by Side Diff: content/browser/renderer_host/input/immediate_input_router.h

Issue 20356003: Provided batched input delivery with a BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BufferedInputRouter unit tests Created 7 years, 4 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_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 class CONTENT_EXPORT ImmediateInputRouter 30 class CONTENT_EXPORT ImmediateInputRouter
31 : public NON_EXPORTED_BASE(InputRouter), 31 : public NON_EXPORTED_BASE(InputRouter),
32 public NON_EXPORTED_BASE(TouchEventQueueClient) { 32 public NON_EXPORTED_BASE(TouchEventQueueClient) {
33 public: 33 public:
34 ImmediateInputRouter(RenderProcessHost* process, 34 ImmediateInputRouter(RenderProcessHost* process,
35 InputRouterClient* client, 35 InputRouterClient* client,
36 int routing_id); 36 int routing_id);
37 virtual ~ImmediateInputRouter(); 37 virtual ~ImmediateInputRouter();
38 38
39 // InputRouter 39 // InputRouter
40 virtual void Flush() OVERRIDE;
40 virtual bool SendInput(IPC::Message* message) OVERRIDE; 41 virtual bool SendInput(IPC::Message* message) OVERRIDE;
41 virtual void SendMouseEvent( 42 virtual void SendMouseEvent(
42 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE; 43 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE;
43 virtual void SendWheelEvent( 44 virtual void SendWheelEvent(
44 const MouseWheelEventWithLatencyInfo& wheel_event) OVERRIDE; 45 const MouseWheelEventWithLatencyInfo& wheel_event) OVERRIDE;
45 virtual void SendKeyboardEvent( 46 virtual void SendKeyboardEvent(
46 const NativeWebKeyboardEvent& key_event, 47 const NativeWebKeyboardEvent& key_event,
47 const ui::LatencyInfo& latency_info) OVERRIDE; 48 const ui::LatencyInfo& latency_info) OVERRIDE;
48 virtual void SendGestureEvent( 49 virtual void SendGestureEvent(
49 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; 50 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 189
189 scoped_ptr<TouchEventQueue> touch_event_queue_; 190 scoped_ptr<TouchEventQueue> touch_event_queue_;
190 scoped_ptr<GestureEventFilter> gesture_event_filter_; 191 scoped_ptr<GestureEventFilter> gesture_event_filter_;
191 192
192 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); 193 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter);
193 }; 194 };
194 195
195 } // namespace content 196 } // namespace content
196 197
197 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ 198 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698