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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/port/browser/event_with_latency_info.h" | 9 #include "content/browser/renderer_host/event_with_latency_info.h" |
10 #include "content/port/common/input_event_ack_state.h" | 10 #include "content/common/input/input_event_ack_state.h" |
11 #include "content/public/browser/native_web_keyboard_event.h" | 11 #include "content/public/browser/native_web_keyboard_event.h" |
12 #include "third_party/WebKit/public/web/WebInputEvent.h" | 12 #include "third_party/WebKit/public/web/WebInputEvent.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // Provided customized ack response for input events. | 16 // Provided customized ack response for input events. |
17 class CONTENT_EXPORT InputAckHandler { | 17 class CONTENT_EXPORT InputAckHandler { |
18 public: | 18 public: |
19 virtual ~InputAckHandler() {} | 19 virtual ~InputAckHandler() {} |
20 | 20 |
(...skipping 11 matching lines...) Expand all Loading... |
32 UNEXPECTED_ACK, | 32 UNEXPECTED_ACK, |
33 UNEXPECTED_EVENT_TYPE, | 33 UNEXPECTED_EVENT_TYPE, |
34 BAD_ACK_MESSAGE | 34 BAD_ACK_MESSAGE |
35 }; | 35 }; |
36 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) = 0; | 36 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) = 0; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace content | 39 } // namespace content |
40 | 40 |
41 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ | 41 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ACK_HANDLER_H_ |
OLD | NEW |