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

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

Issue 19220002: [WIP] BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix client assignment Created 7 years, 3 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_
7
8 #include "base/basictypes.h"
9 #include "content/port/browser/event_with_latency_info.h"
10 #include "content/port/common/input_event_ack_state.h"
11 #include "content/public/browser/native_web_keyboard_event.h"
12 #include "third_party/WebKit/public/web/WebInputEvent.h"
13
14 namespace content {
15
16 // Provided customized ack response for input events.
17 class InputAckHandler {
18 public:
19 virtual ~InputAckHandler() { }
20
21 // Called upon event ack receipt from the renderer.
22 // TODO(jdduke): These should return a vector of follow-up events.
23 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
24 InputEventAckState ack_result) = 0;
25 virtual void OnWheelEventAck(const WebKit::WebMouseWheelEvent& event,
26 InputEventAckState ack_result) = 0;
27 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
28 InputEventAckState ack_result) = 0;
29 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event,
30 InputEventAckState ack_result) = 0;
31 virtual void OnUnexpectedEventAck(bool bad_message) = 0;
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698