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_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ |
7 | 7 |
8 #include "content/browser/renderer_host/event_with_latency_info.h" | 8 #include "content/browser/renderer_host/event_with_latency_info.h" |
9 #include "content/common/input/input_event_ack_state.h" | 9 #include "content/common/input/input_event_ack_state.h" |
10 #include "content/public/browser/native_web_keyboard_event.h" | 10 #include "content/public/browser/native_web_keyboard_event.h" |
11 #include "third_party/WebKit/public/web/WebInputEvent.h" | 11 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // Provided customized ack response for input events. | 15 // Provided customized ack response for input events. |
16 class CONTENT_EXPORT InputAckHandler { | 16 class CONTENT_EXPORT InputAckHandler { |
17 public: | 17 public: |
18 virtual ~InputAckHandler() {} | 18 virtual ~InputAckHandler() {} |
19 | 19 |
20 // Called upon event ack receipt from the renderer. | 20 // Called upon event ack receipt from the renderer. |
21 virtual void OnKeyboardEventAck( | 21 virtual void OnKeyboardEventAck( |
(...skipping 12 matching lines...) Expand all Loading... |
34 UNEXPECTED_ACK, | 34 UNEXPECTED_ACK, |
35 UNEXPECTED_EVENT_TYPE, | 35 UNEXPECTED_EVENT_TYPE, |
36 BAD_ACK_MESSAGE | 36 BAD_ACK_MESSAGE |
37 }; | 37 }; |
38 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) = 0; | 38 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) = 0; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace content | 41 } // namespace content |
42 | 42 |
43 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ | 43 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ |
OLD | NEW |