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

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

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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_MOCK_INPUT_ACK_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/renderer_host/input/input_ack_handler.h" 9 #include "content/browser/renderer_host/input/input_ack_handler.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class InputRouter; 13 class InputRouter;
14 14
15 class MockInputAckHandler : public InputAckHandler { 15 class MockInputAckHandler : public InputAckHandler {
16 public: 16 public:
17 MockInputAckHandler(); 17 MockInputAckHandler();
18 virtual ~MockInputAckHandler(); 18 virtual ~MockInputAckHandler();
19 19
20 // InputAckHandler 20 // InputAckHandler
21 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, 21 virtual void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
22 InputEventAckState ack_result) OVERRIDE; 22 InputEventAckState ack_result) override;
23 virtual void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 23 virtual void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
24 InputEventAckState ack_result) OVERRIDE; 24 InputEventAckState ack_result) override;
25 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 25 virtual void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
26 InputEventAckState ack_result) OVERRIDE; 26 InputEventAckState ack_result) override;
27 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 27 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
28 InputEventAckState ack_result) OVERRIDE; 28 InputEventAckState ack_result) override;
29 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; 29 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) override;
30 30
31 size_t GetAndResetAckCount(); 31 size_t GetAndResetAckCount();
32 32
33 void set_input_router(InputRouter* input_router) { 33 void set_input_router(InputRouter* input_router) {
34 input_router_ = input_router; 34 input_router_ = input_router;
35 } 35 }
36 36
37 void set_followup_touch_event(scoped_ptr<GestureEventWithLatencyInfo> event) { 37 void set_followup_touch_event(scoped_ptr<GestureEventWithLatencyInfo> event) {
38 gesture_followup_event_ = event.Pass(); 38 gesture_followup_event_ = event.Pass();
39 } 39 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 TouchEventWithLatencyInfo acked_touch_event_; 77 TouchEventWithLatencyInfo acked_touch_event_;
78 blink::WebGestureEvent acked_gesture_event_; 78 blink::WebGestureEvent acked_gesture_event_;
79 79
80 scoped_ptr<GestureEventWithLatencyInfo> gesture_followup_event_; 80 scoped_ptr<GestureEventWithLatencyInfo> gesture_followup_event_;
81 scoped_ptr<TouchEventWithLatencyInfo> touch_followup_event_; 81 scoped_ptr<TouchEventWithLatencyInfo> touch_followup_event_;
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ 86 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698